The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I'm looking around to add an avatars to my members group ( 1 for guest, 1 for members, 1 for smod) but i cant find a place to do it. Please help me, appreciate that.
|
#2
|
|||
|
|||
![]()
Do you mean as a default avatar, or in addition to their personal avatars?
|
#3
|
|||
|
|||
![]()
the default please, thanks
|
#4
|
|||
|
|||
![]()
ok, you need to upload an avatar for each usergroup that you have in the format x.gif where x is the usergroupid number for that usergroup (eg for admins you would use 6.gif)
Then in your postbit FIND Code:
<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>
Code:
<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>
<else />
<td class="alt2"><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></td>
</if>
FIND Code:
<if condition="$show['avatar']">
<td><img src="$userinfo[avatarurl]" $userinfo[avatarsize] alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" /></td>
<else />
<td> </td>
</if>
Code:
<if condition="$show['avatar']">
<td><img src="$userinfo[avatarurl]" $userinfo[avatarsize] alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" /></td>
<else />
<td><img src="$stylevar[imgdir_misc]/$userinfo[usergroupid].gif" alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></td>
</if>
|
#5
|
|||
|
|||
![]()
for the code
Code:
<if condition="$show['avatar']">
<td><img src="$userinfo[avatarurl]" $userinfo[avatarsize] alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" /></td>
<else />
<td><img src="$stylevar[imgdir_misc]/$userinfo[usergroupid].gif" alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></td>
</if>
Code:
<else /> <td><img src="http://www.myimgagelink/2.gif" alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></td> </if> |
#6
|
|||
|
|||
![]()
Yes you can link to images on another host. Just use
Code:
<img src="[high]FULL URL TO IMAGES FOLDER[/high]/$post[usergroupid].gif" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /> Code:
<img src="[high]FULL URL TO IMAGES FOLDER[/high]/$userinfo[usergroupid].gif" alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" border="0" /> so if your images are at http://www.mysite.com/files/graphics/avatars then this will be what you place where it has [high]FULL URL TO IMAGES FOLDER[/high] Please can you also put your code in the above post into [ code][ /code] tags. Thanks. |
#7
|
|||
|
|||
![]()
I have tried and tried I cannot get this to work
|
#8
|
|||
|
|||
![]()
Where are your images located and what are they called?
What code exactly are you using? Are you getting broken images, or something else? |
#9
|
|||
|
|||
![]()
I used the above code (minus the </td> since that was adding an extra column).
The files are in the avatars directory and called 10.gif and 31.gif to represent the 2 usergroups i want to have default avatars. All I get is the Alt Text message 'Username's Avatar' with the link for people with no avatars, normal avatars for people outside those 2 groups, and nothing new for the people in the 10 & 31 usergroups... I have tried with the code you have and then I also tried with hard coding the url to the avatars to make sure that wasnt the problem. |
#10
|
|||
|
|||
![]()
Any continued support on this would be greatly appreciated.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|