The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
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 [DATE]1289188902[/DATE] at [TIME]1289188902[/TIME] --------------- Got it. Here is what I did for those interested. Find in blog_entry template: Code:
<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>
Code:
<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>
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|