Announcement

Collapse
No announcement yet.

How to set guest avatar?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [Forum] How to set guest avatar?

    At the moment if a guest posts, they do not have an avatar at all.

    Does anyone know how I can set one?

  • #2
    This is untested however..

    Edit your "postbit" template..
    Find these lines
    HTML Code:
    <vb:if condition="$post.avatarurl">
    	<img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
    <vb:else />
    	<img src="{vb:stylevar imgdir_misc}/unknown.gif" />
    </vb:if>
    Modify it into
    HTML Code:
    <vb:if condition="$post['usergroupid'] == 1">
    	<img src="http://something/guestavatar.jpg" />
    <vb:else />
    	<vb:if condition="$post.avatarurl">
    		<img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
    	<vb:else />
    		<img src="{vb:stylevar imgdir_misc}/unknown.gif" />
    	</vb:if>
    </vb:if>
    I use vbulletin.

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    X