Log in

View Full Version : Forum specific banner ads?


vidmarc
06-14-2008, 10:54 AM
I asked if this was possible over at vBulletin and was told:

"You would have to use template conditions or other means to restrict a banner to a specific forum."

Can anybody advise how to go about setting this up? I'm using an amazon widget it the template header. Ideally I'd like these to be aimed directly at readers of each forum, so I'll need about 6 different options.

Dismounted
06-14-2008, 12:52 PM
<if condition="$forum['forumid'] == X">CODE</if>

vidmarc
06-14-2008, 01:05 PM
Many thanks for that - but how do I implement it? I'm new to all this.

I just tried this but it didn't work:

<if condition="$forum['24'] == X">

CODE

</if>

I tried this too, but also it didn't work:

<if condition="$forum['forumid'] == 24">

CODE

</if>

veenuisthebest
06-14-2008, 01:41 PM
try this as well..

<if condition="$foruminfo['forumid'] == X"></if>

OR this

<if condition="$forumid == X"></if>

vidmarc
06-14-2008, 02:55 PM
Many thanks kind sir! A heads up - this one works:

<if condition="$foruminfo['forumid'] == X"></if>

where X is the number of the forum