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 |
#82
|
|||
|
|||
ok.. I'll wait for it.. thanks
|
#83
|
|||
|
|||
no.. no... shabbir meant that its another mod the forum owner is using...
|
#84
|
|||
|
|||
And may I know the code?, I say, since we already are several who have sought this and not give in yet. Could you give me a hand?
|
#85
|
|||
|
|||
sorry, I dunno, try PMing the owner of the picture
and shabbirbhimani, did some modifications, if you dont mind. added the functionality to show the avatar in search results. Instructions 1) Import the product and allow overwrite... 2) Now you have to edit one template: Search Templates --> search_threadbitFind Code:
<!-- title / author block --> Code:
<a href="{vb:link member, {vb:raw thread}, null, 'postuserid', 'postusername'}"><img height="32px" width="32px" style="float:left;margin-right:4px; padding-top:6px" src="{vb:raw thread.avatarurl}" border="0" /></a> Code:
<dt>{vb:rawphrase last_post_by}</dt> 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> Code:
<dt class="lastpostby hidden">{vb:rawphrase last_post_by}</dt> |
#86
|
|||
|
|||
Quote:
anyway, the code PHP Code:
|
#87
|
|||
|
|||
Ok, I have put the first code on the search_threadbit template everywhere is possible to be for the first avatar to shown.
The problem I have is or neither the avatar only show half of the avatar or if I put the code somewhere else it will not center the avatar in the threadbit.. My code for the first avatar looks like below, the code in green is the one posted here above... I have put on the code places I have tried putting the code but is not working out for me.. Check the tag <------------- I tried here --------> (blah blah blah blah) Code:
<li class="imodselector threadbit {vb:if !$thread['del_username'], $thread['statusstring']}" id="thread_{vb:raw thread.realthreadid}" title="{vb:raw thread.preview}"> <------------- I tried here --------> (shows the avatar before the threadicon) <div class="icon{vb:raw thread.threadiconid} rating{vb:raw thread.rating}<vb:if condition="$thread['sticky']"> sticky<vb:else /> nonsticky</vb:if>{vb:if $thread['del_username'], ' deleted'}"> <div class="threadinfo thread"> <!-- status icon block --> <a class="threadstatus" rel="vB::AJAX" <vb:if condition="$show['threadcount']">title="{vb:rawphrase have_x_posts_in_thread_last_y, {vb:raw thread.dot_count}, {vb:raw thread.dot_lastpost}}"</vb:if>></a> <------------- I tried here --------> (Only shows half of the avatar) <!-- title / author block --> <div class="inner"> <h3 class="searchtitle"> <------------- I tried here --------> (Only shows half of the avatar) <vb:if condition="$show['gotonewpost']"><a href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_newpost}, 'threadid', 'threadtitle'}" id="thread_gotonew_{vb:raw thread.realthreadid}"><img class="gotonewpost" src="{vb:stylevar imgdir_button}/firstnew.png" alt="{vb:rawphrase go_to_first_new_post}" /></a> </vb:if> <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> <vb:if condition="$thread['sticky']"> <img src="{vb:stylevar imgdir_misc}/sticky.gif" alt="{vb:rawphrase sticky_thread}" /> </vb:if> <vb:if condition="$thread['movedprefix'] OR $thread['typeprefix'] OR $thread['moderatedprefix'] OR $thread['prefix_rich']"> <span class="prefix understate"> {vb:raw thread.movedprefix} {vb:raw thread.typeprefix} {vb:raw thread.moderatedprefix} {vb:raw thread.prefix_rich} </span> </vb:if> <a class="title<vb:if condition="$show['gotonewpost']"> threadtitle_unread</vb:if>" href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo}, 'threadid', 'threadtitle'}" id="thread_title_{vb:raw thread.realthreadid}" title="{vb:raw thread.preview}">{vb:raw thread.threadtitle}</a> </h3> <------------- I tried here --------> (It shows the avatar but is not centered) <div class="threadmeta"> <div class="author"> {vb:rawphrase started_by_x_y_z_a, {vb:link member, {vb:raw thread}, null, 'postuserid', 'postusername'}, {vb:raw thread.postusername}, {vb:raw thread.startdate}, {vb:raw thread.starttime}, {vb:stylevar dirmark}} below is an image explaining what I mean |
#88
|
||||
|
||||
Quote:
Quote:
I will also update the plugin to support search as well but it is some distance because as of now I am working on 3.7 support. @nCode Each bits (forumbits/threadbit) and now search bit is lot different. In search bits you have the options of showing only the posts and not as threads and so when doing we have to take that into account as well. |
#89
|
|||
|
|||
Quote:
|
#90
|
|||
|
|||
Quote:
Look for: Code:
<!-- title / author block --> Code:
<a href="{vb:link member, {vb:raw thread}, null, 'postuserid', 'postusername'}"><img height="32px" width="32px" style="float:left;margin-right:4px; padding-top:6px" src="{vb:raw thread.avatarurl}" border="0" /></a> Quote:
Quote:
[P.S. I didn't take the authors permission in the first place because its a re-usable code, so I had the impression that one can update it to further... but I haven't named it "mine" ] |
#91
|
||||
|
||||
Quote:
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|