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: Oct 2019 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: 1195
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.
  #76  
Old 18 Aug 2011, 15:48
shabbirbhimani's Avatar
shabbirbhimani shabbirbhimani is offline
 
Join Date: Nov 2004
Originally Posted by DjEddie View Post
what bug was on the subforums? .. mine look ok without doing this update .. unless I missed something?
The bug was that the avatar was being fetched of the forums last post and not of the sub forums but the vBulletin last post had the data about the sub forums last post.

So for example forum 1 contains last post which is 3 days old and forum 2 which is sub forum of forum 1 contains last post of 2 days old then vBulletin would show data from forum 2 where as my plugin was showing the avatar of forum 1's last poster. This has been now fixed.
Reply With Quote
  #77  
Old 18 Aug 2011, 15:55
nCODE nCODE is offline
 
Join Date: Aug 2011
hey man, found a problem

you know, all the avatars are not "square"... so sometimes, the avatars get stretched... and the best way to get rid of it is to remove
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

as if only the height is set, the width will automatically be scaled
Reply With Quote
  #78  
Old 18 Aug 2011, 16:47
duketxboy duketxboy is offline
 
Join Date: Apr 2011
if we installed and just needed updated... do we just reupload the file?
Reply With Quote
  #79  
Old 18 Aug 2011, 17:40
FReeSTER FReeSTER is offline
 
Join Date: Jun 2006
Originally Posted by nCODE View Post
hey man, found a problem

you know, all the avatars are not "square"... so sometimes, the avatars get stretched... and the best way to get rid of it is to remove
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

as if only the height is set, the width will automatically be scaled
Good to know
thanks
Reply With Quote
  #80  
Old 19 Aug 2011, 02:51
shabbirbhimani's Avatar
shabbirbhimani shabbirbhimani is offline
 
Join Date: Nov 2004
Originally Posted by nCODE View Post
hey man, found a problem

you know, all the avatars are not "square"... so sometimes, the avatars get stretched... and the best way to get rid of it is to remove
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

as if only the height is set, the width will automatically be scaled
Great tip.

Originally Posted by duketxboy View Post
if we installed and just needed updated... do we just reupload the file?
Yes re-upload the file as well as edit templates once again to have the new code in the templates.
Reply With Quote
  #81  
Old 19 Aug 2011, 03:48
nacaruncr nacaruncr is offline
 
Join Date: Nov 2010
Originally Posted by shabbirbhimani View Post
No this is not the feature of this mod and probably some other mod.
ok.. I'll wait for it.. thanks
Reply With Quote
  #82  
Old 19 Aug 2011, 07:20
nCODE nCODE is offline
 
Join Date: Aug 2011
Originally Posted by nacaruncr View Post
ok.. I'll wait for it.. thanks
no.. no... shabbir meant that its another mod the forum owner is using...
Reply With Quote
  #83  
Old 19 Aug 2011, 09:44
nacaruncr nacaruncr is offline
 
Join Date: Nov 2010
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?
Reply With Quote
  #84  
Old 19 Aug 2011, 11:24
nCODE nCODE is offline
 
Join Date: Aug 2011
Wink Fetch Avatar in Search Result

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_threadbit
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.

And add the following just above it

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

Note: Some custom templates have the above code as

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

Attached Images
File Type: png avatar in search result.PNG (8.4 KB, 54 views)
Attached Files
File Type: xml product-xfstyleavatars-1.02.1.xml (3.2 KB, 6 views)

Last edited by nCODE; 20 Aug 2011 at 06:57. Reason: had an error in the code...
Reply With Quote
  #85  
Old 19 Aug 2011, 20:13
FReeSTER FReeSTER is offline
 
Join Date: Jun 2006
Originally Posted by nCODE View Post
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_threadbit
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.

And add the following just above it

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

Note: Some custom templates have the above code as

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
Thank you for this, but did you asked the creator before posting?
anyway, the code

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

is NOT on my search_threadbit
Reply With Quote
  #86  
Old 19 Aug 2011, 21:48
FReeSTER FReeSTER is offline
 
Join Date: Jun 2006
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)



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


below is an image explaining what I mean

Reply With Quote
  #87  
Old 20 Aug 2011, 04:35
shabbirbhimani's Avatar
shabbirbhimani shabbirbhimani is offline
 
Join Date: Nov 2004
Post

Originally Posted by nCODE View Post
and shabbirbhimani,
did some modifications, if you dont mind.
added the functionality to show the avatar in search results.
No I am fine with it.

Originally Posted by FReeSTER View Post
Thank you for this, but did you asked the creator before posting?
Nope but I am fine with it but for those code support will be provided by him.

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.
Reply With Quote
  #88  
Old 20 Aug 2011, 05:10
FReeSTER FReeSTER is offline
 
Join Date: Jun 2006
Originally Posted by shabbirbhimani View Post
No I am fine with it.

Nope but I am fine with it but for those code support will be provided by him.

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.
Thank you bro, I have made it to work fine but the avatars from the thread creator on the new post searchbits are not centered. other then that is good
Reply With Quote
  #89  
Old 20 Aug 2011, 06:55
nCODE nCODE is offline
 
Join Date: Aug 2011
Originally Posted by FReeSTER View Post
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)



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

below is an image explaining what I mean
Sorry man, for the inconvenience...
Look for:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and add this above the line:

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

It SHOULD work cuz its working for me...
Originally Posted by shabbirbhimani View Post
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.
Yes, and thats why the avatar will only be shown if the search results are in "thread" like...

Originally Posted by FReeSTER View Post
Thank you bro, I have made it to work fine but the avatars from the thread creator on the new post searchbits are not centered. other then that is good
It has been taken care of...

[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" ]
Reply With Quote
  #90  
Old 20 Aug 2011, 16:07
shabbirbhimani's Avatar
shabbirbhimani shabbirbhimani is offline
 
Join Date: Nov 2004
Red face

Originally Posted by nCODE View Post
[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" ]
Perfectly fine with me and I am ready with the vB3 version of it and will be releasing it tomorrow. You can see it action here as of now for testing.
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 16:01.

Layout Options | Width: Wide Color: