View Full Version : Editing headers and footer comparison
cronin
Wed 4th Aug '04, 3:42pm
i was testing out the admin demo because i am looking for something that has a way to edit forum's the way you can with proboards in the edinting headers and footers section, such as when you go into one of the forum pages, it plays a different music in everyone of them. Can you do those kind of things with vBulletin? Thanks
Floris
Wed 4th Aug '04, 3:43pm
You can use conditionals to display a different element in the header/footer templates.
For example:
<if condition="$forumid == '5'">sound1.wav</if>
Would only display this sound if the forum had forumid 5.
cronin
Wed 4th Aug '04, 3:51pm
this will work for every different forum under the same category?
Floris
Wed 4th Aug '04, 4:08pm
Yep, any unique forumid, and .. they are unique :)
You can even make a default code for when the forumid is unknown.
<if condition="$forumid == '1'">
Code for when the forumid is 1
<else />
<if condition="$forumid == '5'">
Code for when the forumid is 5
<else />
Code for every other forumid
</if>
</if>
cronin
Wed 4th Aug '04, 4:10pm
do these codes work only for vBulletin?
Steve Machol
Wed 4th Aug '04, 4:12pm
Yes, these are specific to vB's template system.
cronin
Wed 4th Aug '04, 4:12pm
cool thanks
hilary
Wed 1st Feb '06, 10:08pm
I've used this idea to put a banner ad at the top of section of my forum...
this is the code that I've used,
<if condition="$forumid == '205'">
<center>
<a href="http://www.linkcounter.com/go.php?linkid=274092" target="new"><img src="http://www.bubhub.com.au/images/zkindermusikbanner.gif" alt="Kindermusik" border=none></a><br>
</center><br>
<else />
</if>
The target=new code is ignored and instead of a new browser window opening, the viewer is taken from our site to the advertisers site. Is there any code that I could use to clicking on the ad open a new browser window?
Thanks
(Oops, just noticed this is in a version 3.0 section of the forum - I am using 3.5.3 if that makes a difference to the reply)
harmor
Thu 2nd Feb '06, 11:35am
target="_blank"
Steve Machol
Thu 2nd Feb '06, 1:10pm
This is the Pre-Sales forum. Please post in the appropriate forum for support.
harmor
Thu 2nd Feb '06, 1:14pm
I thought it be ok to answer since the it's more of a HTML question than vbulletin.
hilary
Thu 2nd Feb '06, 7:22pm
Hi harmor
Thanks for the response, that worked!
I think the 'post in the correct section' comment from Steve was aimed at me rather than you!
Sorry Steve, I only realised after I'd made the post that it was in an inappropriate section - I know how annoying this is and promise not to do it again!:)
vBulletin® v3.8.0 Beta 3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.