vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Forum Display Enhancements - Digital Point Thread Avatars (https://vborg.vbsupport.ru/showthread.php?t=271540)

digitalpoint 10-05-2011 10:00 PM

Digital Point Thread Avatars
 
1 Attachment(s)
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
https://vborg.vbsupport.ru/attachmen...5&d=1318125312

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.

Gemma 10-06-2011 09:05 PM

Very nice. Thank you.

solohdes 10-06-2011 09:19 PM

Installed, looks great, but I don't have those extra options in forumdisplay, only regular options. vB4.1.5

PitchouneN64ngc 10-06-2011 09:27 PM

Will see tomorrow to install it, loving it :)

Thanks :)

Alfa1 10-06-2011 09:28 PM

Would this work under vb3.8?

digitalpoint 10-06-2011 09:30 PM

Quote:

Originally Posted by solohdes (Post 2254094)
Installed, looks great, but I don't have those extra options in forumdisplay, only regular options. vB4.1.5

The settings it uses are built into vBulletin, they are nothing we added. So if they are missing, you may be missing part of your vB install somehow (or maybe you have something installed that hides them?)...

Quote:

Originally Posted by Alfa1 (Post 2254098)
Would this work under vb3.8?

No, sorry... vB 4 only. I haven't *tried* it on vB3, but I assume something wouldn't work... :)

TheLastSuperman 10-06-2011 09:36 PM

Thanks :cool:.

solohdes 10-06-2011 09:44 PM

My mistake, I have diferent language installed. I have another problem with avatars, the opacity is set to 60%, you can see here:

http://img37.imageshack.us/img37/3512/avatarpc.png

How can I set the opacity to 100%?

digitalpoint 10-06-2011 09:49 PM

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.

pete_brady 10-06-2011 09:51 PM

Looks very nice indeed, but when I installed things looked very odd in Chrome so had to uninstall (for now).


All times are GMT. The time now is 12:16 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01295 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete