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.
how do I proceed to make these changes, sorry but I do not understand.
Quote:
Originally Posted by digitalpoint
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.
I'm a big fan of your work and wanted to first of all say thank you for releasing this mod. It works really well and looks great on my site, so thank you very much for that.
My question was whether you foresee yourself adding the picture for the last poster to a thread some point in the future or not? I know a lot of people would love that added functionality and would be more inclined to use it.
I have seen some other plugins on here that add an avatar for the last post by date but they require a lot of template edits and are by no means as neat of a solution as yours is. Would really love it if you could comment on whether you could add the last poster avatar at some point.
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).
Hi, I do take note of the quoted explanation, but I have all pre-defined avatars in the same square 80x80 dimension.
I just want to insert style="width:34px; height:34px;" for the all pre-defined avatar image icons instead of empty style="". Where should I edit the code to insert the fixed width and height inline-style for pre-defined avatars (probably the code under plugin manager)?
Installed with thanks for testing under 4.1.3pl5 ....
Avatars within posts disappeared and the avatars that appeared in the forum listing turned generic white version, even for people who had set personal custom avatars.
Uninstalled ...
Even after uninstalling, normal forum listing avatars re-appeared, but the personal custom avatars for members that used to appear in postbit have not returned ...
I installed this MOD to see how it looked. Worked fine, and looks nice. But, the Icon Legend icons aren't changed to reflect what this MOD shows. Was that an oversight, or did I missing something?