The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Variable Access in ad_navbar_below Template (forumid)
I am banging my head against a wall here. The code below is simply not working in the ad_navbar_below. I am a little new to VB4, but I suspect that for some reason the variable $forum[forumid] is not available in the ad_navbar_below template. If someone can answer this question for me it would be greatly appreciated, and I suspect it will be the "ah ha" moment I need for a bunch of other style / skin issues I am having.
HTML Code:
<vb:if condition="$forum[forumid] != 9">adsense code</vb:if> |
#2
|
|||
|
|||
Untested but add this plugin to the parse_templates hook:
Code:
global $foruminfo; Code:
<vb:if condition="$foruminfo['forumid'] != 9">adsense code</vb:if> |
#3
|
|||
|
|||
This did not work. It tried several variations, and I tried adding it to global_start as well. I can't seem to access this variable.
--------------- Added [DATE]1292728475[/DATE] at [TIME]1292728475[/TIME] --------------- OK, got it. The variable needed was HTML Code:
$GLOBALS[forumid] |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|