View Full Version : How do you display templates under specific forum ids?
NeroObsedian
02-05-2009, 07:44 AM
What code would I use if I wanted to display a template or piece of information within a single forum?
ie: Subject _Links _Bar01 = Forum01, Subject _Links _Bar02 = Forum02 etc.
Would I use a conditional for that?
bananalive
02-05-2009, 11:34 AM
<if condition="$foruminfo[forumid]==26">
your code here
</if>
NeroObsedian
02-05-2009, 02:02 PM
<if condition="$foruminfo[forumid]==26">
your code here
</if>
Thanks bro! I appreciate the help.
*clicks the imaginary Thanks button*
Prince
02-09-2009, 07:32 PM
<if condition="$foruminfo[forumid]==26">
your code here
</if>
In postbit how could you exclude certain forum (multiple), and also have the ad appear at after the last post in the thread?
thanks!
bananalive
02-15-2009, 10:32 AM
In postbit how could you exclude certain forum (multiple), and also have the ad appear at after the last post in the thread?
thanks!
<if condition="$thread['forumid'] && !in_array($thread['forumid'], array(26,27))">
your code here
</if>
I think there is hook location for last post in thread, but I'm not sure.
Dismounted
02-15-2009, 11:08 AM
You can edit the SHOWTHREAD template, placing the code just after the postbits.
Prince
02-15-2009, 03:50 PM
thanks guys. :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.