The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Conditional Help Needed
In posts I want all avatars to show as normal unless you are in certain groups. If you are in certain groups I want defaul avatars to show instead of the ones the member may have picked...For some reason my code keeps getting rejected. Any help as to why?
Code:
<if condition="$show['avatar']"> <if condition="$post[usergroupid] == 10"> <br><center><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="http://www.sportscardhaven.com/forums/images/avatars/10.gif" border="0" /></center> <else /> <if condition="$post[usergroupid] == 11"> <br><center><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="http://www.sportscardhaven.com/forums/images/avatars/11.gif" border="0" /></center> <else /> <if condition="$post[usergroupid] == 32"> <br><center><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="http://www.sportscardhaven.com/forums/images/avatars/32.gif" border="0" /></center> <else /> <if condition="$post[usergroupid] == 33"> <br><center><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="http://www.sportscardhaven.com/forums/images/avatars/33.gif" border="0" /></center> <else /> <br><center><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] border="0" /></a></center> </if> </if> |
#2
|
||||
|
||||
Code:
<if condition="$show['avatar']"> <if condition="$post['usergroupid'] == 10"> <br><center><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="http://www.sportscardhaven.com/forums/images/avatars/10.gif" border="0" /></center> <else /> <if condition="$post['usergroupid'] == 11"> <br><center><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="http://www.sportscardhaven.com/forums/images/avatars/11.gif" border="0" /></center> <else /> <if condition="$post['usergroupid'] == 32"> <br><center><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="http://www.sportscardhaven.com/forums/images/avatars/32.gif" border="0" /></center> <else /> <if condition="$post['usergroupid'] == 33"> <br><center><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="http://www.sportscardhaven.com/forums/images/avatars/33.gif" border="0" /></center> <else /> <br><center><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] border="0" /></a></center> </if> </if> </if> </if> </if> |
#3
|
|||
|
|||
GREAT thank you - I didnt realize I had to put </if> for each one - thanks a million!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|