The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
Sometimes I think they should use different colors in the vb4 forums and vb3 forums so I don't goof like that!
|
#13
|
|||
|
|||
hate to resurrect this but can someone help me with the code here:
basically - if NONE of the Above then my google code should be used...right now the google code is always being called: should I just be writing some php code and evaluating the variables here instead? Code:
<if condition="$foruminfo['forumid'] == 221"> <img src="images/ocean-navigator/contributing-publishers.gif" /> </if> <else /> <if condition="$foruminfo['forumid'] == 222"> <img src="images/ocean-navigator/ocean-navigator.gif" /> </if> <else /> <if condition="$foruminfo['forumid'] == 223"> <img src="images/ocean-navigator/good-old-boat.gif" /> </if> <else /> <if condition="$foruminfo['forumid'] == 224"> <img src="images/ocean-navigator/practical-sailor.gif" /> </if> <else /> <if condition="$foruminfo['forumid'] == 225"> <img src="images/ocean-navigator/cruising-world.gif" /> </if> <else /> <if condition="$foruminfo['forumid'] == 184"> <br /><img src="images/ocean-navigator/latts.gif" /><br /> </if> <else /> <div id='div-gpt-ad-1337810311805-0' style='width:728px; height:90px;'> <script type='text/javascript'> googletag.cmd.push(function() { googletag.display('div-gpt-ad-1337810311805-0'); }); </script> </div> |
#14
|
||||
|
||||
Like this
HTML Code:
<if condition="$foruminfo['forumid'] == 221"> <img src="images/ocean-navigator/contributing-publishers.gif" /> </if> <else /> <if condition="$foruminfo['forumid'] == 222"> <img src="images/ocean-navigator/ocean-navigator.gif" /> </if> <else /> <if condition="$foruminfo['forumid'] == 223"> <img src="images/ocean-navigator/good-old-boat.gif" /> </if> <else /> <if condition="$foruminfo['forumid'] == 224"> <img src="images/ocean-navigator/practical-sailor.gif" /> </if> <else /> <if condition="$foruminfo['forumid'] == 225"> <img src="images/ocean-navigator/cruising-world.gif" /> </if> <else /> <if condition="$foruminfo['forumid'] == 184"> <br /><img src="images/ocean-navigator/latts.gif" /><br /> </if> <else /> <if condition="!in_array($forum['forumid'], array(221,222,223,,224,225,184))"> <div id='div-gpt-ad-1337810311805-0' style='width:728px; height:90px;'> <script type='text/javascript'> googletag.cmd.push(function() { googletag.display('div-gpt-ad-1337810311805-0'); }); </script> </div></if> |
#15
|
||||
|
||||
Actually, you don't </if> right before the <else />, so wouldn't it be something more like this?
HTML Code:
<if condition="$foruminfo['forumid'] == 221"> <img src="images/ocean-navigator/contributing-publishers.gif" /> <else /> <if condition="$foruminfo['forumid'] == 222"> <img src="images/ocean-navigator/ocean-navigator.gif" /> <else /> <if condition="$foruminfo['forumid'] == 223"> <img src="images/ocean-navigator/good-old-boat.gif" /> <else /> <if condition="$foruminfo['forumid'] == 224"> <img src="images/ocean-navigator/practical-sailor.gif" /> <else /> <if condition="$foruminfo['forumid'] == 225"> <img src="images/ocean-navigator/cruising-world.gif" /> <else /> <if condition="$foruminfo['forumid'] == 184"> <br /><img src="images/ocean-navigator/latts.gif" /><br /> <else /> <if condition="!in_array($forum['forumid'], array(221,222,223,,224,225,184))"> <div id='div-gpt-ad-1337810311805-0' style='width:728px; height:90px;'> <script type='text/javascript'> googletag.cmd.push(function() { googletag.display('div-gpt-ad-1337810311805-0'); }); </script></div> </if> </if> </if> </if> </if> </if> </if> |
#17
|
||||
|
||||
Actually, I never write vB3.8 template conditions anymore so I'm not totally sure that is what he wants.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|