PDA

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


macc
06 Mar 2009, 17:14
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
06 Mar 2009, 17:55
Excellent, well done Macc :D

macc
06 Mar 2009, 20:18
Excellent, well done Macc :D

Thanks UK!

regards

macc

Sweeks
07 Mar 2009, 01:08
Site timed out loading
________
Creampie bbw (http://www.++++tube.com/categories/450/bbw/videos/1)

macc
07 Mar 2009, 01:45
Site timed out loading

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


regards

macc

Jasem
07 Mar 2009, 12:33
Site timed out loading

Internet Explorer cannot display the webpage :(

macc
07 Mar 2009, 13:36
Internet Explorer cannot display the webpage :(

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


reg

macc

Dr. Bantham
08 Mar 2009, 15:05
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
08 Mar 2009, 15:52
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
03 Aug 2009, 05:33
Installed...

Thank you...working fine on vB 3.8.3.