Custom individual forum banners

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MariahMan
    New Member
    • May 2007
    • 23

    Custom individual forum banners

    I know the info on doing this is out there, but just can't seem to find it. I have a banner right now for my main forum that is seen on every forum. What i'd like to do is alter the banner for each individual forum.

    So if my site was about cars, my main banner has my site logo and name in the top left but when you go to the "Mustang" thread, the banner is upadated with pictures of ford mustangs. To do this i would create a ford mustang banner and call that file when the user is in the mustang forum i think but i just don't know how to go about doing this. I will need to do this for a whole bunch of forums.

    I read somewhere about creating conditionals but i have no idea what that means and/or how to do it.

    Any ideas? Could someone point me in the direction on how to do this.

    Thanks!
  • Floris
    Senior Member
    • Dec 2001
    • 37767

    #2
    Hello,

    Thank you for contacting vBulletin Support.

    You are right, you can use template conditionals to control some elements of what should appear on a forum. Using available variables you can display or hide content. For example, in your case, check against the forumid, and if it matches, display a certain image.

    On the index.php page you can use $forumid, but I believe on showthread you would have to use $foruminfo[forumid]. For specifics you're best of asking over at vBulletin.org, the add-on community.

    Code:
    <if condition="$foruminfo['forumid'] == '5'">
       <a href="banner-link.html">
            <img border="0" src="banner-image.gif" alt="click our banner" />
       </a>
    </if>
    The above code (untested!) reads: If the forum information, specifically the forum id number, equals 5 (change this to your specific forum) then display a link (the banner image).

    Resource:

    This is a discussion forum powered by vBulletin. To find out about vBulletin, go to http://www.vbulletin.com/ .


    I hope this is what you're looking for, and if you have any further questions feel free to ask.


    All the best,

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...