dcuellar
11-08-2010, 01:33 AM
Is there a way I can change the image on the recent blog posts to show the person's avatar instead of the profile picture?
--------------- Added 1289188902 at 1289188902 ---------------
Got it. Here is what I did for those interested.
Find in blog_entry template:
<vb:if condition="$show['profilepic']">
<img src="{vb:raw blog.profilepicurl}" width="{vb:stylevar vbblog_bloglist_avatar_width}" alt="{vb:rawphrase xs_profilepic, {vb:raw blog.postedby_username}}" />
<vb:elseif condition="$show['avatar']" />
<img src="{vb:raw blog.avatarurl}" width="{vb:stylevar vbblog_bloglist_avatar_width}" alt="{vb:rawphrase xs_avatar, {vb:raw blog.postedby_username}}" />
<vb:else />
<img src="{vb:stylevar imgdir_misc}/unknown.gif" width="{vb:stylevar vbblog_bloglist_avatar_width}" alt="" />
</vb:if>
Replace with:
<vb:if condition="$show['avatar']">
<img src="{vb:raw blog.avatarurl}" width="{vb:stylevar vbblog_bloglist_avatar_width}" alt="{vb:rawphrase xs_avatar, {vb:raw blog.postedby_username}}" />
<vb:else />
<img src="{vb:stylevar imgdir_misc}/unknown.gif" width="{vb:stylevar vbblog_bloglist_avatar_width}" alt="" />
</vb:if>
--------------- Added 1289188902 at 1289188902 ---------------
Got it. Here is what I did for those interested.
Find in blog_entry template:
<vb:if condition="$show['profilepic']">
<img src="{vb:raw blog.profilepicurl}" width="{vb:stylevar vbblog_bloglist_avatar_width}" alt="{vb:rawphrase xs_profilepic, {vb:raw blog.postedby_username}}" />
<vb:elseif condition="$show['avatar']" />
<img src="{vb:raw blog.avatarurl}" width="{vb:stylevar vbblog_bloglist_avatar_width}" alt="{vb:rawphrase xs_avatar, {vb:raw blog.postedby_username}}" />
<vb:else />
<img src="{vb:stylevar imgdir_misc}/unknown.gif" width="{vb:stylevar vbblog_bloglist_avatar_width}" alt="" />
</vb:if>
Replace with:
<vb:if condition="$show['avatar']">
<img src="{vb:raw blog.avatarurl}" width="{vb:stylevar vbblog_bloglist_avatar_width}" alt="{vb:rawphrase xs_avatar, {vb:raw blog.postedby_username}}" />
<vb:else />
<img src="{vb:stylevar imgdir_misc}/unknown.gif" width="{vb:stylevar vbblog_bloglist_avatar_width}" alt="" />
</vb:if>