Announcement
Collapse
No announcement yet.
Variable to identify the home page
Collapse
X
-
This is in a template, so the bottom code worked. Thank you, I never paid much attention to those script definition variables before, but now they make a lot of sense.
-
At the top of the php file is a line like this:
PHP Code:define('THIS_SCRIPT', 'vbcms');
PHP Code:if (THIS_SCRIPT == 'vbcms') do something on content.php page only....
HTML Code:<vb:if condition="THIS_SCRIPT == 'vbcms'">do something on content.php page only.... </vb:if>
Leave a comment:
-
CMS home page. For that matter the forums home page would be nice too. The idea being that I want to be able to use the VBulletin Ad system to display a banner in the global below nav bar position, but not on the home page of the site. There is no option to exclude the home page, so I will just have to make it part of the code. I could do this in javascript I suppose, but I have bumped into this page awareness variable issue enough times now that I would love to get a server side code solution to the problem.
Leave a comment:
-
Variable to identify the home page
I need some sort of variable similar to $GLOBALS[forumid] that will allow me to identify the home page of the site in my templates.
I know that VB has never published a list of variables, however if someone there ever put together a short list of what is available to the $GLOBALS variable that would be a step in the right direction.Tags: None
Related Topics
Collapse
-
by AdsyHi all,
I have just installed and started configuring my forum. Reading the manual to set the home page and I came across this:
The Page Manager controls the creation and organization...-
Channel: Support Issues & Questions
Tue 15 Apr '14, 5:17pm -
-
Here at vbulletin.com you will notice HOME tab in the navbar that takes you to this URL: https://www.vbulletin.com/
Can we build this type of static landing page with SiteBuilder??-
Channel: Support Issues & Questions
Sat 1 Mar '14, 11:27am -
-
by GRAYTechI was able to create a custom home page or 'landing Page'. How do I make it my default home page instead of the forums? Like when I click on the vBulletin logo it takes me to Forums instead of the...
-
Channel: Support Issues & Questions
Sun 20 Dec '15, 1:01pm -
Leave a comment: