Quote:
Originally Posted by sadiq6210
|
You don't need a mod for this
Edit Template: forumhome_lastpostby
Find this code (it's the very first snippet of code at the top of the template fyi):
Code:
<vb:if condition="$show['lastpostinfo']">
Add below:
Code:
<img src="{vb:raw vboptions.bburl}/image.php?{vb:raw session.sessionurl}u={vb:raw lastpostinfo.lastposterid}&type=thumb&quality=100" alt="Avatar" class="post_avatar" style="float:left;margin-right:10px;"/>
And save, refresh to view the users Avatar to the left of the lastpostinfo on forumhome

.
Feel free to adjust the style= part or create your own custom CSS definition to replace the class etc

.
If you want to add the users avatar to your CMS you can use a similar code so show the users Avatars on the CMS main for the article previews and then in the actual articles themselves too and that does not require a plugin either, I have seen these plugins but if you reference the correct variables you can do it w/o

.
Edit: For RTL Language Users please use:
Code:
<img src="{vb:raw vboptions.bburl}/image.php?{vb:raw session.sessionurl}u={vb:raw lastpostinfo.lastposterid}&type=thumb&quality=100" alt="Avatar" class="post_avatar" style="float:<vb:if condition="$stylevar['textdirection'] == 'rtl'">right<vb:else />left</vb:if>;margin-<vb:if condition="$stylevar['textdirection'] == 'rtl'">left<vb:else />right</vb:if>:10px;"/>