The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#51
|
||||
|
||||
Another problem, the avatar to members don't show :surprised:
|
#52
|
||||
|
||||
odd, I was testing w/ a local user, worked fine for me.
|
#53
|
||||
|
||||
Do you have same code to me ? (post top)
can you put your code here which I compare ? |
#54
|
||||
|
||||
it's pretty much like what slappy posted, except I don't have an extra space after the groupid # like he does:
Code:
<if condition="$post[usergroupid]==X "> |
#55
|
|||
|
|||
Oops. That space was just because I took out a groupid number and replaced it with an "X". The space should not be there. The original was:
<if condition="$post[usergroupid]==6"> I'll fix my example code now. Regards, |
#56
|
||||
|
||||
Quote:
Same problem, avatar members don't show Quote:
One was missing an <else /> at the end, before no usergroup :banana: |
#57
|
|||
|
|||
What is it that you guys are trying to do? Posting a background image per usergroup is already a hack :bunny:
|
#58
|
|||
|
|||
Reading from the top would enlighten you that this thread is about using the vbulletin staff avatar, with the cutout for a photo or private avatar image added, or with just the staff title of the appropriate usergroup, at the choice of the staff member.
Various options and code to accomplish placement and alignment of the staff avatars, as used here with inserts, were discussed, as was custom vbulletin staff avatars and the code to display them correctly by usergroup. Regards, |
#59
|
||||
|
||||
so, does anyone have any improvements to make on this?
|
#60
|
|||
|
|||
This is the version that I have working on my site. It's still done with tables, but it works perfectly and each staff member has their own badge too.
I made a couple of adjustments to get the alignment right with my badges though. If anyone needs a plain PSD template to work with these instructions, then just let me know and I'll fix it up for you. Code:
<if condition="$show['avatar']"> <!-- check for staff --> <if condition="in_array($post[usergroupid], array(5,6,7))"> <!-- I am staff so do this --> <td class="alt2"> <table cellpadding="4" cellspacing="0" border="0" width="124" height="82" align="center" background="images/$post[username]_avatar.gif" nowrap="nowrap" no-repeat> <tr> <td width="48%"> </td> <td><img src="$post[avatarurl]" height="56" width="56" align="center"></td> </tr> </table> </td> <else /> <!-- I am not staff so do this --> <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> |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|