![]() |
Last post avatar
We have this mod.
https://vborg.vbsupport.ru/showthread.php?t=240021 Can you help us to display the avatar of last post in forumhome ? something like IPB http://community.invisionpower.com/ |
Quote:
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']"> 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;"/> 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 :cool:. 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;"/> |
Thanks brother ^_^ you are the best
I modified the template but nothing appear? :( This is my template: Code:
<vb:if condition="$show['lastpostinfo']"> Nothing changed after refresh the page ! Appreciate your support |
Quote:
If so try: 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;"/> |
Strange, yes brother I am using RTL and nothing appeared in both CODES
Also, I tried to use EN-LTR and nothing appeared for both codes Hmmm I opened the page source in Firefox5, have a look Code:
<div class="forumlastpost td"> Even I copy the direct link for avatar: http://www.domain.com/forum/image.ph...mp;quality=100 OR http://www.domain.com/forum/image.php?u=9379 It is not working ! Maybe because I am using files system to save the avatars in a folder not in database? for example, this is a link for an exist avatar http://www.domain.com/forum/avatar/c...avatar9115.gif Thank you very very much =) |
Any idea? =)
|
Quote:
|
Hey @TheLastSuperman
Can you help me in fixing ths size of the avatars ?? They all in different sizes. I would like to have them in one single size. Please see the image & thanks in advance for ur help. http://img15.imageshack.us/img15/638/bpn1.png |
Quote:
How to change blank space to default avatar. I really need this. Please share code |
|
All times are GMT. The time now is 08:44 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|