Helpful Information
 
 
Category: vBulletin 3.8 Template Modifications
Add-On Releases - Add default avatar picture on ministats block

Hello! With this modification you can add default avatar picture to users mini statistics block for those who did not select avatars!

Open memberinfo template - found memberinfo_block_ministats templete and find this code <if condition="$prepared['avatarurl']">
<td><img src="$prepared[avatarurl]" alt="<phrase 1="$prepared[username]">$vbphrase[xs_avatar]</phrase>" $prepared[avatarsize] class="alt2" id="user_avatar" />

and after this add this code below

<else />
<if condition="$bbuserinfo[showavatars]">
<td class="alt2"><a href="profile.php?$session[sessionurl]do=editavatar"><img src="$stylevar[imgdir_misc]/noavatar.gif" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a><br /><a href="profile.php?$session[sessionurl]do=editavatar"><b>Set Avatar</b></a></td>
</if>

Done!

Upload novatar.gif in "your template"/images/misc folder.

Want to see this in action? Welcome - http://libar-libar.com

Regards,

macc

Excellent, well done Macc :D

Excellent, well done Macc :D

Thanks UK!

regards

macc

Site timed out loading
________
Creampie bbw (http://www.++++tube.com/categories/450/bbw/videos/1)

Site timed out loading

yes - that was problem with hostage - (server upgrade) - but now works fine!


regards

macc

Site timed out loading

Internet Explorer cannot display the webpage :(

Internet Explorer cannot display the webpage :(

site works fine now and i myself use IE and no problems ...


reg

macc

I like this concept, but I am experiencing the following issues:

The rollover text does not display the username ('s avatar).
Cilicking on the avatar creates the following link and corresponding error message:
http://www.xxxxxxx.xxx/member.php?u=
This user has not registered and therefore does not have a profile to view.
The "Set Avatar" link appears to everyone, which implies that you can select an avatar for the user, but instead takes you to perform your own avatar selection.


I believe it would be ideal if the "Set Avatar" link were removed and the avatar link was only active if the user is viewing their own profile, whereby the link would take them to:
http://www.xxxxxxx.xxx/profile.php?do=editavatar

I like this concept, but I am experiencing the following issues:
The rollover text does not display the username ('s avatar).
Cilicking on the avatar creates the following link and corresponding error message:
http://www.xxxxxxx.xxx/member.php?u=
This user has not registered and therefore does not have a profile to view.
The "Set Avatar" link appears to everyone, which implies that you can select an avatar for the user, but instead takes you to perform your own avatar selection.I believe it would be ideal if the "Set Avatar" link were removed and the avatar link was only active if the user is viewing their own profile, whereby the link would take them to:
http://www.xxxxxxx.xxx/profile.php?do=editavatar

YES - you can make like this and that is point that one user can not change avatar for another user!

<td class="alt2"><a href="profile.php?$session[sessionurl]do=editavatar"><img src="$stylevar[imgdir_misc]/noavatar.gif" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a><br /><a href="profile.php?$session[sessionurl]do=editavatar"><b>Set Avatar</b></a></td>

regards

macc

updated first post!

Installed...

Thank you...working fine on vB 3.8.3.










privacy (GDPR)