The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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. |
#2
|
|||
|
|||
This could easily be done with only template changes.
|
#3
|
|||
|
|||
What template changes would that be?
|
#4
|
|||
|
|||
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']"> <td><img src="$userinfo[avatarurl]" $userinfo[avatarsize] alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" /></td> <else /> <td> </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> Edited: For a default signature, do the following. In template "postbit" or "postbit_legacy," Find: Code:
<if condition="$post['signature']"> <!-- sig --> <div> __________________<br /> $post[signature] </div> <!-- / sig --> </if> Code:
<!-- sig --> <div> __________________<br /> <if condition="$post['signature']">$post[signature]<else />Default Signature Here</if> </div> <!-- / sig --> </if> Find: Code:
<if condition="$show['signature']"> <!-- signature row --> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="thead">$vbphrase[signature]</td> </tr> <tr> <td class="alt1" title="$vbphrase[signature]">$userinfo[signature]</td> </tr> </table> <!-- / signature row --> <br /> </if> Code:
<!-- signature row --> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="thead">$vbphrase[signature]</td> </tr> <tr> <td class="alt1" title="$vbphrase[signature]"><if condition="$show['signature']">$userinfo[signature]<else />Default Signature Here</td> </tr> </table> <!-- / signature row --> <br /> |
#5
|
|||
|
|||
Thanks! Once I create a default sig and avatar I will do it! Thanks a lot! Saving your post
|
#6
|
|||
|
|||
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> |
#7
|
||||
|
||||
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?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|