Set Avatar Link
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> Code:
<else /> <td class="alt2"> <img src="images/misc/noavatar.jpg" /><a href="./profile.php?do=editavatar"><br />Set Avatar</a> </td> 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> Code:
<td class="alt2"> <a href="./profile.php?do=editavatar">Set Avatar</a> </td> </if> 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
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 |