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: 2007
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:	10183
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

  #46  
Old 08 Oct 2011, 16:35
alfanexus alfanexus is offline
 
Join Date: Dec 2008
Originally Posted by digitalpoint View Post
If you don't want the icon/avatars to be 60% opacity when there is nothing new to read, just remove the "opacity:0.6" line from the dpta.css template.

But by default, that's the intended behavior. 100% when there's new posts to read in the thread, 60% when there is not.
I would like to set it to 100% all the time, but I could not find the "opacity:0.6" in the dpta.css template. Has this been changed?
Reply With Quote
  #47  
Old 08 Oct 2011, 20:34
digitalpoint's Avatar
digitalpoint digitalpoint is offline
 
Join Date: Mar 2004
Real name: Shawn
Originally Posted by FF|Skyrider View Post
Quite a shame actually. Would be great if it would be on by default, but the user given the ability to disable it.
I had thought about making it a per user setting, but then I decided to go a more flexible route (which I haven't implemented quite yet). I'm going to have the system read a $show variable for it. That way a site owner could make a simple plug-in to hide it based on any logic they want (could be a setting they have via a custom profile field... or maybe by user group, or per style, etc.)

Originally Posted by MrEyes View Post
Looks good, one question though:

Does this mod respect the usercp option to disable viewing avatars?

i.e. If the user has chosen to disable avatars for their account, does this mod still display the avatars or something else?
It does because the system does not really consider it an avatar at that point, there would need to be a setting to disable thread icons for something like that to work. But that being said, see response above, because you will be able to disable it based on any logic you see fit (such as the user setting to disable avatars).

Originally Posted by alfanexus View Post
I would like to set it to 100% all the time, but I could not find the "opacity:0.6" in the dpta.css template. Has this been changed?
Ick... My apologies, I thought I had moved that to the CSS, but after checking, it's still in the template_compile plug-in. As a quick fix, go into that plug-in, and there are two places that "opacity:0.6" exist... just change them to "opacity:1". Then go to AdminCP -> Maintenance -> Update Counters -> Compile Thread Avatar Templates

I've since moved that styling to the CSS file (for real this time), so it will be there for the next version.
Reply With Quote
  #48  
Old 09 Oct 2011, 03:00
digitalpoint's Avatar
digitalpoint digitalpoint is offline
 
Join Date: Mar 2004
Real name: Shawn
Changed for 1.03...
  • Moved opacity CSS to dpta.css template
  • Overlayed lock icon spills out of thread icon a bit
  • Added $template_hook['thread_avatars'] so you can add custom things to the thread icon
  • Added ability to disable add-on on a per page generation basis via $show['hide_thread_avatars'] variable
Reply With Quote
  #49  
Old 09 Oct 2011, 03:29
digitalpoint's Avatar
digitalpoint digitalpoint is offline
 
Join Date: Mar 2004
Real name: Shawn
Since I'm sure someone will ask how to make a custom setting that users can use to disable Thread Avatars just for themselves, you can go to AdminCP -> User Profile Fields -> Add New User Profile Field

Choose the "Single Selection Radio Buttons" option. These are the settings I use for digitalpoint.com:



An important thing to note is what the internal field ID is for your new setting. In my case it's 21... so in the plug-in, we are reading field21.

Create a new plug-in like so (do NOT pick the Thread Avatars as the product since it would get overwritten on an update):



You now should have a setting that users can set in their UserCP settings that allows them to toggle Thread Avatars on/off.

You can use a similar plug-in to set the $show['hide_thread_avatars'] variable to "true" for other things if you want (per style, per usergroup, etc.)
Reply With Quote
  #50  
Old 09 Oct 2011, 07:50
digitalpoint's Avatar
digitalpoint digitalpoint is offline
 
Join Date: Mar 2004
Real name: Shawn
An example of the sort of thing you could do with the new hook location...

On digitalpoint.com, premium members can see the "true country" of a poster... I extended it a bit so premium members show the flag of the country the thread starter is in. I made it so the flag only shows when you mouseover the thread (that way it's normally hidden so it's not too obnoxious).

Reply With Quote
  #51  
Old 09 Oct 2011, 08:38
Juggernaut's Avatar
Juggernaut Juggernaut is offline
 
Join Date: Dec 2009
Originally Posted by digitalpoint View Post
An example of the sort of thing you could do with the new hook location...

On digitalpoint.com, premium members can see the "true country" of a poster... I extended it a bit so premium members show the flag of the country the thread starter is in. I made it so the flag only shows when you mouseover the thread (that way it's normally hidden so it's not too obnoxious).

That's awesome
Reply With Quote
  #52  
Old 09 Oct 2011, 08:56
alfanexus alfanexus is offline
 
Join Date: Dec 2008
Possible error

When this plugin is enabled it sometimes courses an error on search results. To make sure that its not just on my test site it happens, I testet this on digitalpoint.

http://forums.digitalpoint.com/searc...4927464&page=3 searched for "service" and got the following error on page 3:
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in [path]/packages/vbforum/search/result/thread.php(194) : eval()'d code on line 10

Another search for "rebel" page 14 (http://forums.digitalpoint.com/searc...927528&page=14)


It dosent happen that often on your site, its more frequent on my internal testsite.

Last edited by alfanexus; 09 Oct 2011 at 09:05.
Reply With Quote
  #53  
Old 09 Oct 2011, 09:03
digitalpoint's Avatar
digitalpoint digitalpoint is offline
 
Join Date: Mar 2004
Real name: Shawn
Hmmm... yeah, that could happen if search results returns a thread that was created by a user that no longer exists. If you open the plug-in at the search_results_threadbit location, change this:


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

to this:

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

I made the change to our dev version, so will be part of next version.
Reply With Quote
  #54  
Old 09 Oct 2011, 09:13
alfanexus alfanexus is offline
 
Join Date: Dec 2008
wow you are fast works perfectly, thanks!
Reply With Quote
  #55  
Old 09 Oct 2011, 12:33
nacaruncr nacaruncr is offline
 
Join Date: Nov 2010
Who I can change in the mini-avatar the title say "Thread description...." for the username of the mini-avatar??

excuse me my english :S

Last edited by nacaruncr; 11 Oct 2011 at 18:39.
Reply With Quote
  #56  
Old 09 Oct 2011, 13:16
cykelmyggen's Avatar
cykelmyggen cykelmyggen is offline
 
Join Date: Oct 2006
Installed - working perfect - nominated for MOTM
__________________
boggnasker.dk
Reply With Quote
  #57  
Old 09 Oct 2011, 14:50
grey_goose grey_goose is offline
 
Join Date: Jun 2009
This is beautiful and amazing -- thank you so much. Nom'd.
Reply With Quote
  #58  
Old 10 Oct 2011, 03:22
Mostjolly's Avatar
Mostjolly Mostjolly is offline
 
Join Date: Apr 2008
Real name: Nhat
Thumbs up Postbit Avatar Effect..

Hey Shawn,

Thanks for sharing this fantastic hack, is it possible you can add the rounded border effect avatar for "Postbit" template, I've attached the attachment, hopefully it'll give you an idea of what I'm talking about.

Nhat
Attached Images
File Type: png 10.png (47.6 KB, 50 views)
__________________
.
Reply With Quote
  #59  
Old 10 Oct 2011, 03:30
digitalpoint's Avatar
digitalpoint digitalpoint is offline
 
Join Date: Mar 2004
Real name: Shawn
That would really just be a CSS entry. Add this to your additional.css template and it should work...


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

Obviously replace the blue color with whatever you want.
Reply With Quote
  #60  
Old 10 Oct 2011, 03:48
Mostjolly's Avatar
Mostjolly Mostjolly is offline
 
Join Date: Apr 2008
Real name: Nhat
Thanks that was easy,

Also are you planning to integrate the exact functionality for the "Forumhome" page listing? (see attachment)

Hmmm.. and for a more advanced developments, I was thinking you could use this same feature for the "Quote" functionality, so basically when I quoted you.. you'd see a little avatar of me at the top bottom right of your avatar.. it's pretty sweet knowing who you're/they're directly communicating to

Nhat
Attached Images
File Type: jpg 12.jpg (98.4 KB, 65 views)
__________________
.

Last edited by Mostjolly; 10 Oct 2011 at 04:10.
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 09:22.

Layout Options | Width: Wide Color: