The Arcive of vBulletin Modifications Site. |
|
Default Avatar For Members Without Details »»
|
|||||||||||||||||||||||||
This mod will add a default avatar for members who have not selected an avatar. I haven't seen it released for vB3 Gold yet, so here it is
![]() Some styles code in the postbit and postbit_legacy templates are different. If you are having trouble, just attach your postbit code to a post and I'll sort it out for you. The only bug I could see is if a member chooses not to view avatars, he will see the default avatar for everyone. Live demo at pCn Forums Please click install ![]() Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
Hi .LuTioN.! I've been looking for this hack.
I tried it and the only problem is that if there is no avatar the username goes below the noavatar.gif. Here is the code I used (the postbit is different from the p-legacy: Code:
<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a> PS: I'm using VB3G |
|
#3
|
||||
|
||||
|
Add a div around his code for the second one.
|
|
#4
|
||||
|
||||
|
Hmmm... I dont think I understand where to put the <div>. I tried this and nothing happened:
Code:
<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</td><else /><div class="smallfont"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="images/avatars/noavatar.gif" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></div>
</if>
|
|
#5
|
|||
|
|||
|
Sorry, fixing code now. Will update in a few minutes.
|
|
#6
|
|||
|
|||
|
@Diva
Attachment updated, but it's working on my forum and I'm using the same code. Try this if you can't get the code to work: Find: Code:
<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurl" 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="images/avatars/noavatar.gif" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if> And make sure your option to view avatars is checked in your userCP. If anymore problems, please attach your postbit code to a post. |
|
#7
|
||||
|
||||
|
Yay! It works.
Thank you two so much. *clicks install*
|
|
#8
|
|||
|
|||
|
Your welcome
![]() Which option did you choose to fix it? |
|
#9
|
||||
|
||||
|
The one that you posted that you said also worked in your forum. This is a big help. Thanks again.
|
|
#10
|
|||
|
|||
|
Your welcome.
|
![]() |
|
|