The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
![]()
Can you post your code here please.
|
#12
|
|||
|
|||
![]()
As you want it for just 2 usergroups then your code will always cause broken images.
If you can post further details of exactly which usergroups you want it to work for, how exactly you want it to work, and if it is postbit or postbit legacy then I'll have a look at it for you. |
#13
|
|||
|
|||
![]()
This is the code im using - the only thing changed are the <td> parts - I removed these so a new column was not created.
Code:
<if condition="$show['avatar']"><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>
<else />
<a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$stylevar[imgdir_misc]/$post[usergroupid].gif" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</if>
I have 2 gif files setup 10.gif and 33.gif (was 31 in 1st post but groups changed) - the members in these 2 groups only show the 'Username's Avatar' link or the regular avatar if they have selected one. Maybe I misunderstood the point of this code - now that I have reread the 1st post - maybe this isnt for me...I want members to be able to use regular avatars, but members that I put into certain groups (banned, suspended, etc) I want default avatars to show instead of ones they may have selected. |
#14
|
|||
|
|||
![]()
Well if you want usergroup 1/2/default code then you need something like this:
HTML Code:
<if condition="$show['avatar']"> <if condition="$post['usergroupid'] == X"> Usergroup X code here <else /> <if condition="$post['usergroupid'] == Y"> Usergroup Y code here <else /> <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> </if> </if> </if> |
#15
|
|||
|
|||
![]()
Ok I had to alter the code a little - I couldnt figure out why it wasnt working until I realized that the way it was setup anyone not having an avatar was being skipped - I changed the code to this and it worked great.
Code:
<if condition="$post['usergroupid'] == 10">
<br><center><img src="http://www.site.com/forums/images/avatars/10.gif" border="0" /></center>
<else />
<if condition="$post['usergroupid'] == 33">
<br><center><img src="http://www.site.com/forums/images/avatars/33.gif" border="0" /></center>
</if>
<if condition="$show['avatar']">
<br><center><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></center>
</if>
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|