Back to vBulletin 3.8 Template Modifications

Set Avatar Link
Mod Version: 1.00, by cono1717

vB Version: 3.8.x Rating: (0 vote - 0 average) Installs: 7
Released: 15 May 2009 Last Update: Never Downloads: 52
Not Supported Template Edits Additional Files Re-usable Code Translations  

This small change will automatically add a "Set Avatar" link under a users avatar area when no avatar is detected.

In this you have two options A link or a noavatar image.

No Avatar Image
Demo can be found http://cc-designs.co.uk/index.php?styleid=1 just view the main forum post "Welcome".

Firstly Download the ZIP file below. Upload the contents to your forums root directory (or your image directory) basically you want to upload the picture to YOURBOARD/images/misc

Now in ACP > Style Manager > Edit Templates > postbit OR postbit_legacy find:

Code:
<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td>
BEFORE THE </if> add:

Code:
<else />
<td class="alt2">
<img src="images/misc/noavatar.jpg" /><a href="./profile.php?do=editavatar"><br />Set Avatar</a>
</td>
Simple Link

Demo can be found http://cc-designs.co.uk/index.php?styleid=16 just view the main forum post.

Here is what you have to do, there is no need to download any files.

Go to ACP > Style Manger and choose either postbit or postbit_legacy (whichever you are using).

Next find this

Code:
<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td>
BEFORE THE </if> add:
Code:
<td class="alt2">
<a href="./profile.php?do=editavatar">Set Avatar</a>
</td>
</if>
Job Done Save and view your posts and click install

As you can see this is only a simple edit but I saw it on a forum once and I thought that it would be a nice edition to those that want it.

A PSD has also been included in the ZIP file,

Thanks,

Connor

Download

File Type: %1$s Set Avatar.zip (80.2 KB, 56 downloads)

Similar Mods

Forum Display Enhancements If User Hasn't Got An Avatar Show Default Avatar With Link To Set One Modification Graveyard

vblts.ru supports vBulletin®, 2022-2024