Log in

View Full Version : Template Variable for Specific Forums


mokonzi
07-07-2009, 08:08 PM
Is there a variable I can throw into a template that will allow me to create a condition for when something should be included?

If so, how would it work with multiple forums?

PS, is there a list of variables anywhere?

HMBeaty
07-07-2009, 08:17 PM
<a href="https://vborg.vbsupport.ru/showthread.php?t=179930&highlight=variables" target="_blank">https://vborg.vbsupport.ru/showt...ight=variables</a>

mokonzi
07-08-2009, 05:19 AM
The list is really useful... bookmarking that.

I'm still trying to find out the one for specific forums though... any ideas?

Lynne
07-08-2009, 02:30 PM
The list is really useful... bookmarking that.

I'm still trying to find out the one for specific forums though... any ideas?
Forums are identified by their forumid. So, if you want to do something just for one forum, you would write a condition based on the forumid. Something like (you didn't say the template):
<if condition="$forumid == 5">
stuff just for forumid 5
</if>

mokonzi
07-08-2009, 02:55 PM
That's just what I needed. I'm wanting to add ads for a specific forum only in the forumdisplay. Will give this a shot and see if I can get it working.

Thanks everyone. :)