View Full Version : How to isolate something to just one forum
Thr33
03-15-2010, 02:57 AM
Ok im trying to add something into the postbit_legacy but i only want it to show in one forum. In the PHP it would look like:
if ($foruminfo[forumid]==1)
but how would i add that in template mod code? Ive unsuccessfully tried:
<vb:if ($foruminfo[forumid]==1>
<vb:if condition="$foruminfo['forumid'] == 1">
Thr33
03-16-2010, 02:00 PM
Thanx, it dosnt seem to have worked though :(
Heres the actual code im using and the mod in with it..
<vb:if condition="$foruminfo['forumid']==2">//I want it to only show in forumID 2
<vb:if condition="$post['field5']">//Profile field where member enters their gamertag in userCP
<a class="postuseravatar">
<iframe src="http://gamercard.xbox.com/{vb:raw post.field5}.card" scrolling="no" frameBorder="0" height="140" width="204">{vb:raw post.field5}</iframe>//The gamertag frame
</a>
</vb:if></vb:if>
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.