View Full Version : Different Images based on forum
Odoin
05-20-2004, 07:47 PM
Greetings,
What I want to do is have a different top logo display on a few forums only. I know I can do this with by making a new style and forcing that style on that forum, but my problem is when I upgrade the main style I would also have to upgrade the style used for only a few forums... this is a pain in the butt... so I am hoping there is someway to just have the main style pull a different image based on forum ID...
Does anyone have any ideas?
VB 3.0.1.
Thank you for your time.
Mark Laudenbach
bigtime
05-20-2004, 09:00 PM
You can use something like this:
<if condition="$forumid==8">
<center><a href=http://online-personal-trainer.com/index.php?refer=defend target=blank><img src=http://online-personal-trainer.com/images/banner.gif width="468" height="60" border="0"></a></center>
</if>
<if condition="$forumid==7">
<center><a href="http://martialartsbusiness.com/index.php?zid=F112901&page=home" target=blank>
<img src="http://martialartsbusiness.com/img/ban/banner1.gif" width="468" height="60" border="0"></a></center>
</if>
Insert the conditions in the template where you want the images to appear.
Hope that example helps.
Odoin
05-20-2004, 09:18 PM
So I can put that in the header template? Also what about the rest of the forums? Would I have to define them? So say forum 7 and 8 were the ones I wanted a different logo... how would that be done?
Thank you for your time and quick reply.
Mark Laudenbach
Odoin
05-21-2004, 11:53 PM
Can I use a exclude some how?
bigtime
05-22-2004, 04:59 AM
So I can put that in the header template? Also what about the rest of the forums? Would I have to define them? So say forum 7 and 8 were the ones I wanted a different logo... how would that be done?
Thank you for your time and quick reply.
Mark Laudenbach
Yes, you can place that in your header template.
You can use the code above for as many forums as you want. Just be sure to refer to the correct forum by changing the numbers.
If you want to exclude a forum, just don't put the if statement there for that numbered forum.
Hope that helps.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.