PDA

View Full Version : Designate Banners for certain forums


ScienceOfMuscle
12-05-2008, 11:53 PM
So I am a novice at VBulletin and jumping head first. I am wanting to designate certain banners for certain forums.

Here is my thinking at the moment.

I should edit the FORUMDISPLAY template and use a condition:

<if condition="$forumid == xxx">
???????????
</if>

Now my brain stops here. I obviously want to place this at the top of a certain forum, but am lost from there.

How would I format it for so many different forums, and how would I make it display at the top of the forum, above where the threads start.

--------------- Added 1228535885 at 1228535885 ---------------

Ah here we go... I want to do the banner just like this website. Each forum sponsor has their own banner at the top of their own forum

http://anabolicminds.com/forum/true-protein/

Lynne
12-07-2008, 03:01 AM
I would name my banners after the forums:

banner1.jpg for forumid 1
banner2.jpg for forumid 2
etc.
banner34.jpg for forumid 34

Then, you can just use something like this:

<img src="http://www.yoursite.com/images/bannerfolder/banner$forumid.jpg">

Mahar
12-07-2008, 04:07 AM
How much stress does this put on your website though?

Lynne
12-07-2008, 04:14 AM
I have no idea. If you make sure your banners are all created for the web, and there aren't too many, it may be just fine - especially since they'll get cached after they are first downloaded. It really depends on the server and so many other factors. (We have a style with user created banners that rotate and we must have about 100 banners in there and we have no problems with it - but it really depends on the site.)