![]() |
Default Avatar + Signature
I seem to be gliding by posters that post something but do not have an avatar or sig. Their post seems meaningless and unimportant.
Perhaps there should be a mod that gives a default avatar and signature to new users who sign up but do not define one. |
This could easily be done with only template changes.
|
What template changes would that be?
|
In template "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></if> Code:
<td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="<if condition="$show['avatar']">$post[avatarurl]<else />images/avatars/default.gif</if>" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td> Find: Code:
<if condition="$show['avatar']"> Code:
<td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="<if condition="$show['avatar']">$post[avatarurl]<else />images/avatars/default.gif</if>" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td> Edited: For a default signature, do the following. In template "postbit" or "postbit_legacy," Find: Code:
<if condition="$post['signature']"> Code:
<!-- sig --> Find: Code:
<if condition="$show['signature']"> Code:
<!-- signature row --> |
Thanks! Once I create a default sig and avatar I will do it! Thanks a lot! Saving your post :D
|
Quote:
I had success with this instead: Code:
<div class="smallfont"> <br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="<if condition="$show['avatar']">$post[avatarurl]<else />images/avatars/default.gif</if>" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></div> |
Very nice, I have been asking this very question for a long time...With the template edits above, is there a way to to have many default avatars & sigs...Then a member without avatars & sigs can pick from the few default ones to use or upload their own?
|
All times are GMT. The time now is 06:31 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|