The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Xenforo Like User Avatars Details »» | |||||||||||||||||||||||||||
Download vB 4.x.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. Screenshots Installation Instructions This plugin requires you to manually edit templates. Import the xml file as product into vBulletin. 1. Edit threadbit template as follows Find HTML Code:
$thread[title_editable] And add the following code before. HTML Code:
<a href="member.php?$session[sessionurl]u=$thread[postuserid]" rel="nofollow"><img height="32px" style="float:left;margin-right:4px" src="$thread[avatarurl]" border="0" /></a> Find HTML Code:
<td class="alt2" title="<phrase 1="$thread[replycount]" 2="$thread[views]">$vbphrase[replies_x_views_y]</phrase>">
HTML Code:
<a href="member.php?$session[sessionurl]find=lastposter&t=$thread[threadid]" rel="nofollow"><img height="32px" style="float:left;margin-right:4px" src="$thread[lastposteravatarurl]" border="0" /></a> Optionally you can edit the username to be left aligned rather than right aligned. Find HTML Code:
<div class="smallfont" style="text-align:$stylevar[right]; white-space:nowrap">
Replace with HTML Code:
<div class="smallfont" style="text-align:$stylevar[left]; white-space:nowrap;padding-left:32px;">
2. Edit forumhome_forumbit_level1_post and forumhome_forumbit_level2_post as follows Find HTML Code:
<td class="alt2">$forum[lastpostinfo]</td> Replace with HTML Code:
<td class="alt2"><a href="member.php?find=lastposter&f=$forum[forumid]" rel="nofollow"><img height="32px" style="float:left;margin-right:4px" src="$forum[avatarurl]" border="0" /></a><div style="padding-left:36px;">$forum[lastpostinfo]</div></td> 3. Edit Search_result_postbit template as follows Find HTML Code:
<if condition="$show['moderated']"> <td class="alt2"> <else /> <td class="alt1"> </if> HTML Code:
<a href="member.php?$session[sessionurl]u=$post[userid]" rel="nofollow"><img height="32px" style="float:left;margin-right:4px" src="$post[avatarurl]" border="0" /></a> 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 See the plugin in action at MBA Forum Enjoy the plugin and do share your views, comments or feedback in comments below. Download Now
Show Your Support
|
Comments |
#22
|
||||
|
||||
Quote:
Quote:
Not sure how else we could fetch the avatars because adding a join to the avatar table with threads/posts table is much more costlier operation for large forums anyway. |
#23
|
|||
|
|||
I'm not liking how each avatar size is different, depending on the user's avatar. Can we make it so that they're all one fixed size?
|
#24
|
||||
|
||||
Yeah query wise it is intensive.. though I have xenforo and haven't seen how they must have reduced it. I'm know for sure XF does not have too many queries.. pretty optimized.
|
#25
|
|||
|
|||
Looks great, but my forums seems to be all piled...
|
#26
|
|||
|
|||
Anything?
|
#27
|
||||
|
||||
|
#28
|
||||
|
||||
To make it the same as XenForo you need to add a image-crop tool:
http://keithics.com/blog/jquery/ajax...-php-crop-tool http://woork.blogspot.com/2009/02/be...o-use-for.html If you add that, then all avatars will show as equal dimensions, without distortion. |
#29
|
||||
|
||||
That would mean we have to add jQuery as well and vBulletin does not use jQuery and s I have no plans to add it.
|
#30
|
||||
|
||||
vbulletin has this directory for jquery: clientscript/jquery/
vbulletin is moving away from YUI and implementing jquery more and more. They intent to drop YUI completely. |
#31
|
|||
|
|||
thanks works fine
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|