Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Digital Point Thread Avatars Details »
Digital Point Thread Avatars
Mod Version: 1.0.4, by digitalpoint (Coder) digitalpoint is offline
Developer Last Online: May 2016 I like it Show Printable Version Email this Page

vB Version: 4.x.x Rating: (44 votes - 4.93 average) Installs: 336
Released: 06 Oct 2011 Last Update: 10 Oct 2011 Downloads: 2008
Not Supported Uses Plugins Auto-Template Additional Files  

Unfortunately, I don't have the time to maintain and support this add-on in two locations. The newest version (and support) can always be found here: https://marketplace.digitalpoint.com...atars.886/item

About
This changes thread icons to be the avatar of the thread starter. It applies to thread listings on forumdisplay, search results and subscribed threads in the UserCP.

Installation
  • Upload the cssrollup_digitalpoint_threadavatars.xml file to includes/xml (this is really only needed if you store CSS as files in the file system)
  • Install the product-dp_thread_avatars.xml product under AdminCP -> Plugins & Products -> Manage Products -> Add/Import Product

Notes
  • Icons are cropped (but never stretched) to be square for display.
  • Threads with no new posts have the avatar slightly greyed out.
  • Locked threads will have a lock image overlayed.
  • Soft-deleted threads will have a red X image overlayed.
  • If the user posted in the thread, they will see a mini version of their avatar overlayed.
  • If a thread is "hot", the shadow of the icon will change color.
  • ZERO SQL queries are added.
  • Overlay images are encoded as CSS data (no extra HTTP requests needed for images or the CSS files themselves).
  • If your site uses pre-defined avatars, they are not scaled down for use as the icon since vBulletin does not store the dimensions (instead, the upper/left potion is cropped for the icon).

Settings
  • You can disable the mini-avatars under AdminCP -> Settings -> Options -> Forum Display Options (forumdisplay) -> Highlight Threads in Which User Has Posted
  • You can disable the hot thread highlight under AdminCP -> Settings -> Options -> Forum Display Options (forumdisplay) -> Hot Threads Enabled
  • You can change the color of the hot thread shadow under AdminCP -> Styles & Templates -> Style Manager -> StyleVars -> dpta_shadow_hot_color
  • You can change the size of the avatar under AdminCP -> Styles & Templates -> Style Manager -> StyleVars -> threadbit_iconsize (since they are square, it keys only on width)
  • If your site uses pre-defined avatars, you should use the AdminCP -> Settings -> Options -> User Picture Options -> Site Uses Pre-Defined Avatars option

Screenshots


Advanced
  • If you want to add your own mini-icon overlays, you can utilize the $template_hook['thread_avatars'] variable to do so.
  • If you want to selectively disable thread avatars, you can set the $show['hide_thread_avatars'] to true. This would allow you to create a custom profile field for users and set the $show['hide_thread_avatars'] based on the user's setting. Alternately you could enable the addon for certain usergroups or just for specific styles.

Download Now

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

Screenshots

Click image for larger version

Name:	threadavatars.png
Views:	10186
Size:	271.3 KB
ID:	133555  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Miscellaneous Hacks Digital Point Spy digitalpoint vBulletin 4.x Add-ons 446 30 Dec 2016 15:40
Statistics Modifications Digital Point Better Analytics digitalpoint vBulletin 4.x Add-ons 99 06 Oct 2015 10:48
Board Optimization Digital Point Better CSS digitalpoint vBulletin 4.x Add-ons 80 06 Jun 2013 09:42

  #16  
Old 07 Oct 2011, 00:31
monkeyboy1916's Avatar
monkeyboy1916 monkeyboy1916 is offline
 
Join Date: Nov 2006
Works great so far, except..

Just one small problem. It doesn't seem to support pre-defined avatars. The members that use a pre-defined avatar from my selection, it doesn't show their avatar, and instead shows the "unknown.gif".
__________________
Blame it on the girls.. or blame it on the boys~?
Reply With Quote
  #17  
Old 07 Oct 2011, 00:39
digitalpoint's Avatar
digitalpoint digitalpoint is offline
 
Join Date: Mar 2004
Real name: Shawn
Originally Posted by monkeyboy1916 View Post
Works great so far, except..

Just one small problem. It doesn't seem to support pre-defined avatars. The members that use a pre-defined avatar from my selection, it doesn't show their avatar, and instead shows the "unknown.gif".
Yeah... it was semi-intentional. The code to do it is actually in there, but the query to get the data is commented out.

If you look at the "forumdisplay_query" plug-in, at the end of both the lines, there is a part that is commented out. If you add those back to the uncommented part of the query, it should work.

I've been trying to figure out a way to determine if the site uses pre-defined avatars without adding an extra SQL query to figure it out.

I left all the other logic in there, just commented out the part that adds a JOIN to the existing query for now.

If it turns out there is nothing in options or the datastore that can be read to make the determination, I'll probably add it as a yes/no option you can set. I just didn't want to always add the extra overhead of an extra JOIN if it wasn't necessary (and I'd guess most sites don't use pre-defined avatars).
Reply With Quote
  #18  
Old 07 Oct 2011, 00:48
solohdes solohdes is offline
 
Join Date: Feb 2011
Originally Posted by digitalpoint View Post
You have an overridding CSS definition within your CSS files...


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

That is going to kill all box-shadows on Safari, Chrome and Firefox.

Looks like it's in your additional.css CSS template.
Now works perfect, I love it, I nominate you to MOTM, this hack worth it. I change the line to this:


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

Reply With Quote
  #19  
Old 07 Oct 2011, 01:29
digitalpoint's Avatar
digitalpoint digitalpoint is offline
 
Join Date: Mar 2004
Real name: Shawn
I went ahead and updated it to 1.01... the only change is there is an option for "Site Uses Pre-Defined Avatars" and internally it alters the SQL as necessary. If your site does not use pre-defined avatars, the 1.01 version will be of no use to you.
Reply With Quote
  #20  
Old 07 Oct 2011, 02:01
thecore762 thecore762 is offline
 
Join Date: Jul 2008
Sweet dp, excellent work!
__________________
www.47r-squad.com BF3|CS:S|TF2|L4D2 Gaming community
Reply With Quote
  #21  
Old 07 Oct 2011, 02:03
twitch's Avatar
twitch twitch is offline
 
Join Date: Apr 2005
awesome! Thanks.
Reply With Quote
  #22  
Old 07 Oct 2011, 02:46
monkeyboy1916's Avatar
monkeyboy1916 monkeyboy1916 is offline
 
Join Date: Nov 2006
Anybody else having problems with this after upgrading to 4.1.7?

It was working perfectly fine on 4.1.4, and after just upgrading to 4.1.7 it doesn't seem to work anymore.

Thanks.

Edit: Works fine again after rebuilding the CSS as files =)
__________________
Blame it on the girls.. or blame it on the boys~?

Last edited by monkeyboy1916; 07 Oct 2011 at 03:22.
Reply With Quote
  #23  
Old 07 Oct 2011, 03:55
Mr_Running Mr_Running is offline
 
Join Date: May 2010
Awesome mod digtialpoint !
If a thread is "hot", the shadow of the icon will change color
It would be even better if it change the Icon Legend
Reply With Quote
  #24  
Old 07 Oct 2011, 03:59
digitalpoint's Avatar
digitalpoint digitalpoint is offline
 
Join Date: Mar 2004
Real name: Shawn
Originally Posted by Mr_Running View Post
Awesome mod digtialpoint !

It would be even better if it change the Icon Legend
Yeah, I had thought about it actually... but then it doesn't really make sense since all the thread icons are different (at least from a base).

Then I thought some more, and was like... "When was the last time anyone bothered to go look at the legend in order to figure out what icons meant?" And then I removed the legend from digitalpoint.com (and not a single user has even noticed).
Reply With Quote
  #25  
Old 07 Oct 2011, 04:08
Mr_Running Mr_Running is offline
 
Join Date: May 2010
Yeah just notice that they have been removed with this mod...thanks will see how it goes Edit: oh wait wait it still there...
It looks like vB changed StyleVars to Style Variable Editor in 4.1.7 ? hmm

Last edited by Mr_Running; 07 Oct 2011 at 04:17.
Reply With Quote
  #26  
Old 07 Oct 2011, 04:28
digitalpoint's Avatar
digitalpoint digitalpoint is offline
 
Join Date: Mar 2004
Real name: Shawn
Originally Posted by Mr_Running View Post
Yeah just notice that they have been removed with this mod...thanks will see how it goes Edit: oh wait wait it still there...
Yeah, addon doesn't remove it... I just did it myself for digitalpoint.com
Reply With Quote
  #27  
Old 07 Oct 2011, 07:01
eTiKeT™'s Avatar
eTiKeT™ eTiKeT™ is offline
 
Join Date: Aug 2008
Real name: Serhat
Thanks Very Nice

There is a problem - What's New
Attached Images
File Type: jpg whatnew.jpg (57.8 KB, 112 views)
Reply With Quote
  #28  
Old 07 Oct 2011, 07:08
digitalpoint's Avatar
digitalpoint digitalpoint is offline
 
Join Date: Mar 2004
Real name: Shawn
Originally Posted by eTiKeT™ View Post
Thanks Very Nice

There is a problem - What's New
What's the URL of your site? I'll take a look...
Reply With Quote
  #29  
Old 07 Oct 2011, 07:39
Trevor Hannant's Avatar
Trevor Hannant Trevor Hannant is offline
 
Join Date: May 2003
Real name: Trevor
Thanks Shawn!
Reply With Quote
  #30  
Old 07 Oct 2011, 09:08
PitchouneN64ngc's Avatar
PitchouneN64ngc PitchouneN64ngc is offline
 
Join Date: Aug 2002
Real name: Yves
Originally Posted by digitalpoint View Post
What's the URL of your site? I'll take a look...
I have the same issue. Tried it on http://forum.vbulletin-fr.org/search...e=vBForum_Post

Edit: your template 'dpta.css' is not present in source code.
__________________
Administrator of http://forum.vbulletin-fr.org/

vBulletin QA Engineer / Lead Project Tools Developer

Last edited by PitchouneN64ngc; 07 Oct 2011 at 09:18.
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 21:43.

Layout Options | Width: Wide Color: