21-09-13, 02:16 am
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.
- 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
- icons are cropped (but never not 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).
- 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
- 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.