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-10-2011 04:57 AM

Quote:

Originally Posted by Mostjolly (Post 2255354)
Thanks that was easy,

Also are you planning to integrate the exact functionality for the "Forumhome" page listing? (see attachment)

Hmmm.. and for a more advanced developments, I was thinking you could use this same feature for the "Quote" functionality, so basically when I quoted you.. you'd see a little avatar of me at the top bottom right of your avatar.. it's pretty sweet knowing who you're/they're directly communicating to ;)

Nhat

No, there are no plans to do something similar to the forumhome page or add avatars to quotes.

Skyrider 10-10-2011 05:12 AM

Quote:

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

While I really appreciate you adding the code, would have been great if you copy/paste the code so I can be sure I'm doing it right rather than typing it all over. So far, I've done this:

Code:

if ($vbulletin->userinfo['field28'] == 'yes') $show['hide_thread_avatars'] = true;
However, this doesn't seem to work. I've set it to NO in the options menu (on my profile) and yet it still shows up. And yes, I've updated the product. And yes, the field is also correct. Also, I selected the cache_templates. I've done everything and copied everything from your images above, still doesn't work.

digitalpoint 10-10-2011 07:10 AM

THat *should* be it assuming field28 is being set to 'Yes' for your account.

You can double check by going into phpmyadmin (if you have it installed), going into the userfield table, and checking the record for your userid. Make sure there are no leading/trailing spaces in there.

MrD 10-10-2011 07:28 AM

Hi,
works fine in FF but in IE 8 there is no transparency :(

digitalpoint 10-10-2011 07:55 AM

The opacity will work in the latest version of IE, but for old versions, if you want it to work, you can go into your dpta.css template and change this:

Code:

.threadbit .icon {
        opacity:0.6;
}

.threadbit.new .icon {
        opacity:1;
}

to this:
Code:

.threadbit .icon {
        opacity:0.6;
        filter:alpha(opacity=60);
}

.threadbit.new .icon {
        opacity:1;
        filter:alpha(opacity=100);
}

I stopped writing code for old versions of IE. If the user doesn't want to (or can't upgrade to IE), and they also don't want to use a browser that works properly with CSS standards, then ultimately it's their choice.

That being said, if you (personally) want to support old versions of IE, that code will do it. :)

MrD 10-10-2011 08:24 AM

1 Attachment(s)
Hi,
thanks.
But what is the Definition of older IE Version ?
I mean, IE 8 is not Old :D

But i have one thing.
If DPTA is activ there displayed me one Thread in Searchresults wit no entry ?

Attachment 133650

Maybe a Idee for Future updates.
If the Icon Legend under the Threadlist would be updatet with Threadavatars it shows Great :D
Maybe as Example with the no Avatar icon :D

digitalpoint 10-10-2011 08:36 AM

Quote:

Originally Posted by MrD (Post 2255477)
Hi,
thanks.
But what is the Definition of older IE Version ?
I mean, IE 8 is not Old :D

But i have one thing.
If DPTA is activ there displayed me one Thread in Searchresults wit no entry ?

Attachment 133650

As far as IE goes, anything older than IE9 is what I consider "old". Not necessarily because of it's age, but because it's a terrible browser. The way I figure it is this... if I code something and it works perfect in Firefox, Chrome, Safari and Opera, but not perfectly in IE, then the issue is most likely a problem with IE (in this case old versions of IE not supporting standard CSS), not my code. That being said... IE9 is a pretty good browser. My logic is this... If a user makes the choice to use a browser that sucks, it's ultimately up to them. I'm not going to force a good browsing experience upon them when they consciously choose to not have one. :) At least that's my logic for digitalpoint.com. But since other people may not share my logic, I rolled the extra CSS into 1.0.4 for you.

As far as search results go, it looks like you may have hit this issue (also fixed in 1.0.4 already in the source)... When a thread was created by a user that no longer exists in the user table (the fix is here).

digitalpoint 10-10-2011 08:55 AM

Updated the download to 1.0.4... the only changes are the CSS for old versions of Internet Explorer, and the issue when search returns a thread created by a non-existant user.

abdobasha2004 10-10-2011 10:18 AM

nice idea
and welcome back Shawn...

smaacom 10-10-2011 12:10 PM

great product ... thanks .

for rtl language forum you have to change from "left" to "right" : ( in red )

Code:

.threadbit img.self {
        max-width:14px;
        max-height:14px;
        background-color:#ddd;
        border:1px solid #555;
        padding:1px;
        border-radius:2px;
        position:absolute;
        top:{vb:math {vb:stylevar threadbit_iconsize.width}-14}px;
        right:{vb:math {vb:stylevar threadbit_iconsize.width}-8}px;
        box-shadow:0 0 1px #eee;
        -webkit-box-shadow:0 0 1px #eee;
}


Code:

.threadbit.lock .lockicon {
        position:absolute;
        top:2px;
        right:7px;
        width:20px;
        height:20px;


Code:

.threadbit .threadstatus.avatars div.overlay {
        position:absolute;
        top:2px;
        right:2px;
        width:32px;
        height:32px;



All times are GMT. The time now is 01:10 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.01486 seconds
  • Memory Usage 1,752KB
  • 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_code_printable
  • (3)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