Log in

View Full Version : Add-On Releases - Add default avatar picture on ministats block


macc
03-05-2009, 10:00 PM
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

UKBusinessLive
03-06-2009, 03:55 PM
Excellent, well done Macc :D

macc
03-06-2009, 06:18 PM
Excellent, well done Macc :D

Thanks UK!

regards

macc

Sweeks
03-06-2009, 11:08 PM
Site timed out loading
________
Creampie bbw (http://www.++++tube.com/categories/450/bbw/videos/1)

macc
03-06-2009, 11:45 PM
Site timed out loading

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


regards

macc

Jasem
03-07-2009, 10:33 AM
Site timed out loading

Internet Explorer cannot display the webpage :(

macc
03-07-2009, 11:36 AM
Internet Explorer cannot display the webpage :(

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


reg

macc

Dr. Bantham
03-08-2009, 01:05 PM
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

macc
03-08-2009, 01:52 PM
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!

Saviour
08-03-2009, 03:33 AM
Installed...

Thank you...working fine on vB 3.8.3.