Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
User Avatars In Thread Listing Details »
User Avatars In Thread Listing
Mod Version: 1.03, by shabbirbhimani (Coder) shabbirbhimani is offline
Developer Last Online: Apr 2020 I like it Show Printable Version Email this Page

vB Version: 4.x.x Rating: (43 votes - 4.91 average) Installs: 261
Released: 16 Aug 2011 Last Update: 21 Aug 2011 Downloads: 1224
Not Supported Uses Plugins Template Edits Re-usable Code  

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


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And add the following just above it.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Find


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Please note: Some custom templates have the above code as
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.



And add the following just above it.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Edit forumhome_forumbit_level1_post and forumhome_forumbit_level2_post templates as follows.

Find


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And add the following code just above it.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Edit search_threadbit

Find the first occurrence of


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And add after that


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Then again find


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And add after that


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Edit search_results_postbit

Find


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And add after that


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Upgrading Instructions

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
  1. Last poster's avatar idea by James from VirtueScience

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
  1. Added support for avatars in search results.
  2. Fixed bug for thread started by guests.

Updated 18th August
  1. Avatar of sub forums last post bug fixed.

Updated 17th August
  1. Added Support for avatars in forumhome
  2. Avatars linked to member urls

Enjoy!!!

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
  #106  
Old 21 Aug 2011, 21:24
Erica1977's Avatar
Erica1977 Erica1977 is offline
 
Join Date: Nov 2009
Smile

Originally Posted by shabbirbhimani View Post
The plugin is updated to support avatars in search results thread bits as well as post bits.

Enjoy
Thanks for the update great job!
__________________
http://www.vbulletin.org/custompics/forum/signaturepics/sigpic360672_1.gif
Reply With Quote
  #107  
Old 22 Aug 2011, 03:26
shabbirbhimani's Avatar
shabbirbhimani shabbirbhimani is offline
 
Join Date: Nov 2004
Wink

Originally Posted by Mark.B View Post
You could do, (which is how I did it on my site), however if they do fix this bug then it will leave the mod broken for subsequent versions. It's a tricky one.
Yes a tricky one and so is not hurrying into doing that as of now.

Originally Posted by Sherif View Post
Threadbit avatar (file system one also) can be displayed without even adding a single sql query..
You will need to join tables of avatar in $thread array by using forumdisplay_query AND threabit_process plugin.
Yes I thought about that when I was writing the plugin but then decided against it because creating a join with threads and posts can be lot more resource heavy than executing the single query. Unless bottle neck we cannot say if one more query is faster or the join but I would assume a query. Share your views as well.
Reply With Quote
  #108  
Old 22 Aug 2011, 05:55
Badshah93's Avatar
Badshah93 Badshah93 is offline
 
Join Date: Jun 2010
Real name: Aayush Agrawal
Originally Posted by shabbirbhimani View Post
Yes a tricky one and so is not hurrying into doing that as of now.

Yes I thought about that when I was writing the plugin but then decided against it because creating a join with threads and posts can be lot more resource heavy than executing the single query. Unless bottle neck we cannot say if one more query is faster or the join but I would assume a query. Share your views as well.
Yes,

I have seen page having 80 queries executed in .5 sec and 12 queries in 1sec (in same site).

whether u join or make new query it will take around same time (.1 sec diiference).. but people like having 20 queries executed in page rather than 40 queries.
Reply With Quote
  #109  
Old 22 Aug 2011, 06:00
8thos's Avatar
8thos 8thos is offline
 
Join Date: Aug 2010
Real name: DRE
That search thingie ain't working so far. I'll investigate later.
__________________
www.8thos.com
www.qapla.com
Reply With Quote
  #110  
Old 22 Aug 2011, 07:08
mavigul mavigul is offline
 
Join Date: Sep 2008
wow that's look great
Reply With Quote
  #111  
Old 22 Aug 2011, 07:52
shabbirbhimani's Avatar
shabbirbhimani shabbirbhimani is offline
 
Join Date: Nov 2004
Originally Posted by Sherif View Post
whether u join or make new query it will take around same time (.1 sec diiference).. but people like having 20 queries executed in page rather than 40 queries.
Yes I will see how can I get that done from my end without depending on what vB team does

Originally Posted by Octavius. View Post
That search thingie ain't working so far. I'll investigate later.
Can you share what is not working?
Reply With Quote
  #112  
Old 23 Aug 2011, 09:43
Maccrob Maccrob is offline
 
Join Date: May 2011
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
Reply With Quote
  #113  
Old 25 Aug 2011, 11:15
shabbirbhimani's Avatar
shabbirbhimani shabbirbhimani is offline
 
Join Date: Nov 2004
Originally Posted by Mark.B View Post
One thing people may want to be aware of is that each avatar adds a query to the page.
Now it's worth noting that if you are on vb4, there's a "bug" in the search files whereby, for a "getnew/getdaily" search (New Posts or Today's Posts), the avatar of the thread starter is ALREADY called, (but not used), meaning if you have 20 results per page you are adding 20 queries. This hack then duplicates that, adding another 20.
I was working on improving the performance of the plugin and when debugging I could not find the ALREADY fetched avatars and can you tell me which variable has that so I can work on using that one instead of fetching it once again.
Reply With Quote
  #114  
Old 28 Aug 2011, 22:44
Mark.B Mark.B is offline
 
Join Date: Feb 2004
Originally Posted by shabbirbhimani View Post
I was working on improving the performance of the plugin and when debugging I could not find the ALREADY fetched avatars and can you tell me which variable has that so I can work on using that one instead of fetching it once again.
Looking at Andreas's diff file:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

That's from
packages/vbforum/search/result/thread.php
Reply With Quote
  #115  
Old 29 Aug 2011, 13:43
shabbirbhimani's Avatar
shabbirbhimani shabbirbhimani is offline
 
Join Date: Nov 2004
Originally Posted by Mark.B View Post
Looking at Andreas's diff file:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

That's from
packages/vbforum/search/result/thread.php
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?
Reply With Quote
  #116  
Old 29 Aug 2011, 14:57
Mark.B Mark.B is offline
 
Join Date: Feb 2004
Originally Posted by shabbirbhimani View Post
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?
I don't know...but if you look at my site, http://www.bowlandcentral.com/forum/...hp?do=getdaily, that's a getdaily search and those avatars down the left hand side are populated from the code in the search files that already exists.

Here's the code I use in search_threadbit:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #117  
Old 29 Aug 2011, 18:59
giorgino giorgino is offline
 
Join Date: Dec 2009
Hi Mark.B how you have done tooltips and only avatars like xenforo?
Reply With Quote
  #118  
Old 30 Aug 2011, 04:40
shabbirbhimani's Avatar
shabbirbhimani shabbirbhimani is offline
 
Join Date: Nov 2004
Originally Posted by Mark.B View Post
I don't know...but if you look at my site, http://www.bowlandcentral.com/forum/...hp?do=getdaily, that's a getdaily search and those avatars down the left hand side are populated from the code in the search files that already exists.

Here's the code I use in search_threadbit:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
I see that it is vB4.1.3 and I am developing it on vB4.1.2 and so that could be the factor. Will update my dev server and see if it is starting from vB4.1.3.
Reply With Quote
  #119  
Old 30 Aug 2011, 20:23
Mark.B Mark.B is offline
 
Join Date: Feb 2004
Originally Posted by shabbirbhimani View Post
I see that it is vB4.1.3 and I am developing it on vB4.1.2 and so that could be the factor. Will update my dev server and see if it is starting from vB4.1.3.
I'm pretty sure we had those avatars running like that on 4.0.8 before we jumped to 4.1.3....
Reply With Quote
  #120  
Old 31 Aug 2011, 10:37
shabbirbhimani's Avatar
shabbirbhimani shabbirbhimani is offline
 
Join Date: Nov 2004
Thumbs down

Originally Posted by Mark.B View Post
I'm pretty sure we had those avatars running like that on 4.0.8 before we jumped to 4.1.3....
When I print_r the thread variable on getdaily on my localhost I get the following


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I am using vB412 and vbCMS and vBBlog are active.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 05:21.

Layout Options | Width: Wide Color: