Back to Modification Graveyard

If User Hasn't Got An Avatar Show Default Avatar With Link To Set One
Mod Version: 1.00, by 1Unreal

This thread is in the Modification Graveyard.
vB Version: 3.8.x Rating: (0 vote - 0 average) Installs: 3
Released: 03 Mar 2009 Last Update: Never Downloads: 0
Not Supported Template Edits Re-usable Code  


I think that when most of your users have custom avatars set it makes your forum look alot better as your user has shown some sort of commitment to it. Using this small template hack it will encourage your users to set an avatar and if they haven't give a nice alternative.

Also, its worth noting that the link to set a new avatar will only be shown to the user, not everyone using the forum.

Firstly, I will show you the one with the default avatar included. Then another version without it.

Ok, so open up the style manager and open the postbit for what ever style you are using. Then where you want your avatar to display paste this code:

HTML Code:
<if condition="$bbuserinfo[showavatars]">
<img src="DefaultAvatarURL" alt="" border="0" />
<br />
<if condition="$bbuserinfo['userid'] == $post[userid]">
<a href="profile.php?$session[sessionurl]do=editavatar">Set Avatar</a>
</if>
Remember to change this src="DefaultAvatarURL" to whatever your image URL is.

So, this will show the default avatar and a link below it to set their own custom avatar.

This version will not show the default avatar, just the link to set one. Do the same as the first step just paste in this code instead.

HTML Code:
<if condition="$bbuserinfo[showavatars]">
<if condition="$bbuserinfo['userid'] == $post[userid]">
<a href="profile.php?$session[sessionurl]do=editavatar">Set Avatar</a>
</if>

Download

No files for download.

Similar Mods

[Release -Gamma / RC1 / RC2]Default Avatar for users with no avatar :) vBulletin 3.0 Template Modifications
[Release -Gamma / RC1 / RC2]Default Avatar for users with no avatar :) vBulletin 3.0 Template Modifications

vblts.ru supports vBulletin®, 2022-2024