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)

alfanexus 10-08-2011 09:06 AM

very nice :) Thanks!

digitalpoint 10-08-2011 09:25 AM

Quote:

Originally Posted by FF|Skyrider (Post 2254599)
Can this be disabled by the user if the user doesn't like the new changes?

No, sorry.. it's not a per user thing. It's either on or off for the site.

Skyrider 10-08-2011 09:51 AM

Quote:

Originally Posted by digitalpoint (Post 2254612)
No, sorry.. it's not a per user thing. It's either on or off for the site.

Quite a shame actually. Would be great if it would be on by default, but the user given the ability to disable it.

sdebank 10-08-2011 11:08 AM

Lovely mod.

MrEyes 10-08-2011 12:10 PM

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?

alfanexus 10-08-2011 02:35 PM

Quote:

Originally Posted by digitalpoint (Post 2254102)
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?

digitalpoint 10-08-2011 06:34 PM

Quote:

Originally Posted by FF|Skyrider (Post 2254631)
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.)

Quote:

Originally Posted by MrEyes (Post 2254662)
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).

Quote:

Originally Posted by alfanexus (Post 2254723)
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.

digitalpoint 10-09-2011 01:00 AM

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

digitalpoint 10-09-2011 01:29 AM

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:

https://vborg.vbsupport.ru/external/2011/10/60.png

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

https://vborg.vbsupport.ru/external/2011/10/61.png

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

digitalpoint 10-09-2011 05:50 AM

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

https://vborg.vbsupport.ru/external/2011/10/66.png


All times are GMT. The time now is 10:47 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.01496 seconds
  • Memory Usage 1,745KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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