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).

digitalpoint 10-06-2011 09:56 PM

Quote:

Originally Posted by pete_brady (Post 2254103)
Looks very nice indeed, but when I installed things looked very odd in Chrome so had to uninstall (for now).

Hmmm... if you have a test site I could take a look at it for you. Chrome is what I use normally and it looks fine for me.

solohdes 10-06-2011 10:11 PM

The shadow doesn't work on Firefox 7.0.1. Firefox:

https://vborg.vbsupport.ru/

But works on Internet explorer:

https://vborg.vbsupport.ru/

Another bug that appears in Internet Explorer is that the avatar is framed, no transparency. Is this because of internet explorer?

pete_brady 10-06-2011 10:14 PM

Quote:

Originally Posted by digitalpoint (Post 2254104)
Hmmm... if you have a test site I could take a look at it for you. Chrome is what I use normally and it looks fine for me.

oh i've no doubt it's a problem on my side... will take a look over the weekend.

digitalpoint 10-06-2011 10:14 PM

Quote:

Originally Posted by solohdes (Post 2254110)
The shadow doesn't work on Firefox 7.0.1. Firefox:

https://vborg.vbsupport.ru/

But works on Internet explorer:

https://vborg.vbsupport.ru/

Another bug that appears in Internet Explorer is that the avatar is framed, no transparency. Is this because of internet explorer?

What is the URL to your site? Testing it on mine with Firefox 7 and it seems to work fine.

Quote:

Originally Posted by pete_brady (Post 2254112)
oh i've no doubt it's a problem on my side... will take a look over the weekend.

Strange though... if you post a screenshot of what you see/saw, I could probably figure out what's going on.

digitalpoint 10-06-2011 10:30 PM

Quote:

Originally Posted by solohdes (Post 2254110)
The shadow doesn't work on Firefox 7.0.1. Firefox:

http://img694.imageshack.us/img694/4821/firefoxoj.png

But works on Internet explorer:

http://img442.imageshack.us/img442/6170/iexplorer.png

Another bug that appears in Internet Explorer is that the avatar is framed, no transparency. Is this because of internet explorer?

You have an overridding CSS definition within your CSS files...

Code:

*{ -moz-box-shadow: none !important; -webkit-box-shadow: none !important; }
That is going to kill all box-shadows on Safari, Chrome and Firefox.

Looks like it's in your additional.css CSS template.

monkeyboy1916 10-06-2011 10:31 PM

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".

digitalpoint 10-06-2011 10:39 PM

Quote:

Originally Posted by monkeyboy1916 (Post 2254122)
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).

solohdes 10-06-2011 10:48 PM

Quote:

Originally Posted by digitalpoint (Post 2254121)
You have an overridding CSS definition within your CSS files...

Code:

*{ -moz-box-shadow: none !important; -webkit-box-shadow: none !important; }
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:

Code:

*{ -moz-box-shadow: all !important; -webkit-box-shadow: all !important; }

digitalpoint 10-06-2011 11:29 PM

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.

thecore762 10-07-2011 12:01 AM

Sweet dp, excellent work!

twitch 10-07-2011 12:03 AM

awesome! Thanks.

monkeyboy1916 10-07-2011 12:46 AM

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 =)

Mr_Running 10-07-2011 01:55 AM

Awesome mod digtialpoint !
Quote:

If a thread is "hot", the shadow of the icon will change color
It would be even better if it change the Icon Legend

digitalpoint 10-07-2011 01:59 AM

Quote:

Originally Posted by Mr_Running (Post 2254189)
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).

Mr_Running 10-07-2011 02:08 AM

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

digitalpoint 10-07-2011 02:28 AM

Quote:

Originally Posted by Mr_Running (Post 2254201)
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

eTiKeT? 10-07-2011 05:01 AM

1 Attachment(s)
Thanks Very Nice

There is a problem - What's New

digitalpoint 10-07-2011 05:08 AM

Quote:

Originally Posted by eTiKeT? (Post 2254240)
Thanks Very Nice

There is a problem - What's New

What's the URL of your site? I'll take a look...

Trevor Hannant 10-07-2011 05:39 AM

Thanks Shawn!

PitchouneN64ngc 10-07-2011 07:08 AM

Quote:

Originally Posted by digitalpoint (Post 2254242)
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.

snowlion 10-07-2011 07:18 AM

I got problems in search member's thread, tag search, and What new?

digitalpoint 10-07-2011 07:34 AM

Just posted version 1.02, which should fix the CSS weirdness for some people on search results.

PitchouneN64ngc 10-07-2011 07:37 AM

Quote:

Originally Posted by digitalpoint (Post 2254267)
Just posted version 1.02, which should fix the CSS weirdness for some people on search results.

Fixed, thanks :)

snowlion 10-07-2011 07:40 AM

Nice mod. Thanks :D

socialteenz 10-07-2011 03:28 PM

Saw this feature in your forum last week!! Now it's here, awesome!!

Installed & ratted *****

Dr.osamA 10-07-2011 04:03 PM

Hood work thank you bro

installed + 5 stars

strudinox 10-07-2011 04:20 PM

How do you uninstall this? Great concept for a mod, but I believe it is incompatible with my theme as it's a CSS nightmare when I install it.

When I uninstall it, It's like it's still partly there. I'm thinking it's because of the template changes? How do I reverse these??


EDIT: nvm, I figured it out. My fault. :p

digitalpoint 10-07-2011 05:27 PM

Quote:

Originally Posted by strudinox (Post 2254383)
How do you uninstall this? Great concept for a mod, but I believe it is incompatible with my theme as it's a CSS nightmare when I install it.

When I uninstall it, It's like it's still partly there. I'm thinking it's because of the template changes? How do I reverse these??


EDIT: nvm, I figured it out. My fault. :p

Yeah, it may not work with a major custom style since it keys on a few things in some templates. But it should uninstall itself just fine via the normal uninstall option for products.

bluered 10-07-2011 09:52 PM

Thanks :)

Skyrider 10-08-2011 08:38 AM

Can this be disabled by the user if the user doesn't like the new changes?


All times are GMT. The time now is 06:30 PM.

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.01743 seconds
  • Memory Usage 1,835KB
  • 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
  • (3)bbcode_code_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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