The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Only show Avatars in X forum/s!
I tried searching, and tried using conditionals, but I haven't fond anything that works. So if anyone could point me in the right direction or whip something up, I'd really appreciate it!
|
#2
|
||||
|
||||
What conditions have you already tried? You should be able to put one around the avatar in the postbit(_legacy) pretty easily.
|
#3
|
||||
|
||||
I'm trying at the moment:
Code:
<if condition="$foruminfo['forumid'] == 3"> <if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if> </if> |
#4
|
||||
|
||||
How about $threadinfo[forumid] instead (I don't think you need the single apostrophe's in there).
|
#5
|
||||
|
||||
I got it! I used this code here:
Code:
<if condition="$forum[forumid] == 3"> <if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if> </if> [EDIT] And in case anyone else needs it... To do it in multiple forums! These are both in the [postbit] template! Code:
<if condition="in_array($forum[forumid], array(x,x,x))"> <if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if> </if> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|