The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
User Avatars In Thread Listing Details »» | |||||||||||||||||||||||||||
Download vB 3.8.x Compatible Version Here
What does this plugin do? This plugin add user avatars to the thread listing in forum display page. See the sceenshot for sample. How to Install the plugin? This plugin requires you edit vBulletin templates. Import the xml file from the product manager.. Edit the threadbit template. Find HTML Code:
<vb:if condition="$show['threadicon']">
HTML Code:
<a href="{vb:link member, {vb:raw thread}, null, 'postuserid', 'postusername'}"><img height="32px" width="32px" style="float:left;margin-right:4px" src="{vb:raw thread.avatarurl}" border="0" /></a> HTML Code:
<dt>{vb:rawphrase last_post_by}</dt> Code:
<dt class="lastpostby hidden">{vb:rawphrase last_post_by}</dt> And add the following just above it. HTML Code:
<a href="{vb:link member, {vb:raw thread}, null, 'lastposterid', 'lastposter'}"><img height="32px" width="32px" style="float:left;margin-right:4px" src="{vb:raw thread.lastposteravatarurl}" border="0" /></a> Find HTML Code:
{vb:raw forum.lastpostinfo} HTML Code:
<a href="{vb:link member, {vb:raw forum}, null, 'real_lastposterid', 'real_lastposter'}"><img height="48px" width="48px" style="float:left;margin-right:4px" src="{vb:raw forum.avatarurl}" border="0" /></a> Find the first occurrence of HTML Code:
<div class="inner">
HTML Code:
<a href="{vb:link member, {vb:raw thread}, null, 'postuserid', 'postusername'}"><img height="32px" width="32px" style="float:left;margin:7px 4px 0 0" src="{vb:raw thread.avatarurl}" border="0" /></a> HTML Code:
<dl class="threadlastpost td">
HTML Code:
<a href="{vb:link member, {vb:raw thread}, null, 'lastposterid', 'lastposter'}"><img height="32px" width="32px" style="float:left;margin-right:4px" src="{vb:raw thread.lastposteravatarurl}" border="0" /></a> Find HTML Code:
<div class="contact">
HTML Code:
<a href="{vb:link member, {vb:raw post}, null, 'userid', 'username'}"><img height="32px" width="32px" style="float:left;margin-left:4px" src="{vb:raw post.avatarurl}" border="0" /></a> If you are upgrading the plugin, just import the new plugin file and overwrite the existing plugins. Once done make the necessary edits to the search templates. Credits
Support This plugin is supported, so you can post your issues and queries either on my blog or in comments below. If you would like to Optimize your vBulletin for Less Server Load & Better User Experience, read this post on Optimizing vBulletin History Updated 21st August
Updated 18th August
Updated 17th August
Enjoy!!! Download Now
Show Your Support
|
26 благодарности(ей) от: | ||
8thos, Abhik, alfanexus, BCP Hung, BlueCheri, Erica1977, eTiKeT?, evelynpriscilla, fleshy66, Gemma, iiioroh, K4GAP, lagrace, markoroots, nacaruncr, Nacho Vidal, nCODE, obglobal.net, puertoblack2003, RaYdeN.ADM, reddyink, S!p, sadiq6210, Scalemotorcars, Successfulsteps, tekram |
Comments |
#112
|
||||
|
||||
Quote:
Can you share what is not working? |
#113
|
|||
|
|||
Agree with Sherif, using fetch_avatar_url to get avatars is a really bad idea. If you have small board, e.g. with 10 simultaneously users online, 40-50 sql queries will be ok, but for larger board it will cause high impact on bd server
|
#114
|
||||
|
||||
Quote:
|
#115
|
|||
|
|||
Quote:
PHP Code:
packages/vbforum/search/result/thread.php |
#116
|
||||
|
||||
vBulletin 4.1.2 does not have that variable populated for thread lastpost_avatar and post_avatar when I did the vardump. Am I missing something?
|
#117
|
|||
|
|||
Quote:
Here's the code I use in search_threadbit: Code:
<img style="vertical-align:top;padding: 3px;background: #ffffff; border: {vb:stylevar light_border}; margin-bottom: 20px;" class="inlineimg rounded2" width="30" height="30" alt="Started by {vb:raw thread.postusername}" src="{vb:raw vboptions.bburl}/<vb:if condition="$thread['post_avatar']">{vb:raw thread.post_avatar.0}" {vb:raw thread.post_avatar.1}<vb:else />images/misc/unknown.gif"</vb:if> /></a> |
#118
|
|||
|
|||
Hi Mark.B how you have done tooltips and only avatars like xenforo?
|
#119
|
||||
|
||||
Quote:
|
#120
|
|||
|
|||
I'm pretty sure we had those avatars running like that on 4.0.8 before we jumped to 4.1.3....
|
#121
|
||||
|
||||
Quote:
Code:
Array ( [threadid] => 7 [title] => abcd1234 [prefixid] => [firstpostid] => 13 [lastpostid] => 24 [lastpost] => 1314786829 [forumid] => 2 [pollid] => 0 [open] => 1 [replycount] => 1 [hiddencount] => 0 [deletedcount] => 0 [postusername] => shabbir [postuserid] => 1 [lastposter] => shabbir [lastposterid] => 1 [dateline] => 1314684549 [views] => 2 [iconid] => 0 [notes] => [visible] => 1 [sticky] => 0 [votenum] => 0 [votetotal] => 0 [attach] => 0 [similar] => [taglist] => [keywords] => abcd1234abcd1234, abcd1234 [preview] => abcd1234abcd1234 [postid] => 7 [threadtitle] => abcd1234 [threadiconid] => 0 [postdateline] => 1314786829 [issubscribed] => 1 [threadread] => [highlight] => Array ( ) [checkbox_value] => 0 [title_editable] => 1 [openclose_editable] => 1 [forumtitle] => Main Forum [forumtitleclean] => Main Forum [prefix_plain_html] => [prefix_rich] => [lastpostdate] => Today [lastposttime] => 10:33 AM [postdate] => Today [posttime] => 10:33 AM [startdate] => Yesterday [starttime] => 06:09 AM [rating] => 0 [moderatedprefix] => [typeprefix] => [totalposts] => 2 [pagenav] => [threadiconpath] => [threadicontitle] => [status] => Array ( [dot] => dot ) [dot_count] => 2 [dot_lastpost] => Today [realthreadid] => 7 [statusstring] => dot ) |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|