How To Show A Default Avatar In Posts

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    How To Show A Default Avatar In Posts

    Admin CP -> Styles & Templates -> Style Manager -> « » -> Postbit Templates -> postbit or postbit_legacy (depending on which layout you use)

    For the postbit template, find this code and add the red code:

    Code:
    			<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td>[color=red]<else /><if condition="$bbuserinfo[showavatars]"><td class="alt2"><img src="URL OF BLANK AVATAR" alt="No Avatar" border="0" /></td></if>[/color]</if>
    Change the image URL appropriately.

    for the postbit_legacy template, find this code and add the red code:

    Code:
    			<if condition="$show['avatar']">
    				<div class="smallfont">
    					&nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
    				</div>
    			[color=red]<else />
    				<if condition="$bbuserinfo[showavatars]">
    					<div class="smallfont">
    						<img src="URL OF BLANK AVATAR" alt="No Avatar" border="0" />
    					</div>
    				</if>[/color]
    			</if>
    edit: fixed error in postbit code.
    Last edited by Jake Bunce; Wed 2 Mar '05, 9:01am.
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...