The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
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/ |
|
#2
|
||||
|
||||
|
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 .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;"/>
|
|
#3
|
|||
|
|||
|
Thanks brother ^_^ you are the best
I modified the template but nothing appear? ![]() This is my template: Code:
<vb:if condition="$show['lastpostinfo']">
<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;"/>
<p class="lastposttitle">
<vb:if condition="$show['icon']"><img src="{vb:raw icon.iconpath}" alt="{vb:raw icon.title}" border="0" /></vb:if>
<vb:if condition="$lastpostinfo['prefix']">{vb:raw lastpostinfo.prefix}</vb:if>
<a href="{vb:link thread, {vb:raw threadinfo}, {vb:raw pageinfo_newpost}}" class="threadtitle" title="{vb:rawphrase go_first_unread_in_thread_x, {vb:raw lastpostinfo.lastthread}}">{vb:raw lastpostinfo.trimthread}</a>
<a href="{vb:link thread, {vb:raw threadinfo}, {vb:raw pageinfo_lastpost}}#post{vb:raw lastpostinfo.lastpostid}"><img src="{vb:stylevar imgdir_button}/lastpost-{vb:stylevar right}.png" alt="{vb:rawphrase go_to_last_post}" /></a>
</p>
<div class="lastpostby">
<vb:if condition="$lastpostinfo['lastposterid']">
{vb:rawphrase by_x_memberaction, {vb:raw memberaction_dropdown}}
<vb:else />
{vb:rawphrase by_x_guest, {vb:raw lastpostinfo.lastposter}}
</vb:if>
</div>
<p class="lastpostdate">{vb:raw lastpostinfo.lastpostdate}<vb:if condition="!$show['detailedtime']">, <span class="time">{vb:raw lastpostinfo.lastposttime}</span></vb:if></p>
<vb:else />
<span class="lastpostdate">{vb:raw lastpostinfo.lastpostdate} <vb:if condition="!$show['detailedtime']"><span class="time">{vb:raw lastpostinfo.lastposttime}</span></vb:if></span>
<a href="{vb:link thread, {vb:raw threadinfo}, {vb:raw pageinfo_lastpost}}#post{vb:raw lastpostinfo.lastpostid}"><img src="{vb:stylevar imgdir_button}/lastpost-{vb:stylevar right}.png" alt="{vb:rawphrase go_to_last_post}" /></a>
</vb:if>
Nothing changed after refresh the page ! Appreciate your support |
|
#4
|
||||
|
||||
|
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;"/>
|
|
#5
|
|||
|
|||
|
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"> <h4 class="lastpostlabel">Last Post:</h4> <div> <img src="http://www.domain.com/forum/image.php?u=9379&type=thumb&quality=100" alt="Avatar" class="post_avatar" style="float:left;margin-right:10px;"/> <p class="lastposttitle"> 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 =) |
|
#6
|
|||
|
|||
|
Any idea? =)
|
|
#7
|
||||
|
||||
|
Quote:
|
|
#8
|
|||
|
|||
|
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.
|
|
#9
|
|||
|
|||
|
Quote:
How to change blank space to default avatar. I really need this. Please share code |
|
#10
|
||||
|
||||
|
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|