Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
Thread Tools
Avatar's opacity according to user's status (online/offline) Details »»
Avatar's opacity according to user's status (online/offline)
Version: 1.00, by VBDev VBDev is offline
Developer Last Online: Dec 2021 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 04-30-2004 Last Update: Never Installs: 97
 
No support by the author.

Avatar's opacity according to user's status (online/offline)

Total hack's description : http://www.vbulletindev.net/forums/h...hack&hackid=72

http://www.vbulletindev.net

Please click if you like this hack


Requested here, some people said it could be found on vBT, but it requires code modification to work, it was requested on our forum too, that's why I created it and release it here

With this small hack, in postbit, if the user is connected, his avatar will be displayed normally, else it will be less visible

New modifications :
- Avaible in memberlist too
- Browser detection (mozilla)


SC (still can't attach them)





Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #62  
Old 07-10-2004, 12:29 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Interesting addition.

So we completely un-install the original hack and do this, right? Will this show invisible users as online of offline? I would like to see invisble users as online for those that are supposed to be able to see them and not online for those that aren't.
Reply With Quote
  #63  
Old 07-10-2004, 02:07 PM
buro9 buro9 is offline
 
Join Date: Feb 2002
Location: London, UK
Posts: 585
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo
Interesting addition.

So we completely un-install the original hack and do this, right? Will this show invisible users as online of offline? I would like to see invisble users as online for those that are supposed to be able to see them and not online for those that aren't.
That's precisely what it does.

vBulletin already works that stuff out, showing invisible people to those who should see the, and hiding them from those who shouldn't.

All I've done is add a switch to retain that information in the user object/array so that we can access it. We're not bothered about whether they are invisible or not... just whether we have permission to see that they are online or not... hence the true|false indicator for IsOnline.

Then we can simply access IsOnline and know how to handle it in the conditional in the template.

If you wanted to use my way of doing it, then yes you'd need to uninstall the original.

However I should reiterate that my way doesn't cater for the memberlist fading... mainly because I'm not using it. But it shouldn't take anyone too long to figure out the few changes needed to get that working.

Cheers

David K

PS: Why quote the whole thing? You've made thread twice as long
Reply With Quote
  #64  
Old 07-10-2004, 02:14 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is that better?

We could use his version for the memberlist, I suppose and use yours for the other areas. Unless you know a way to do it maybe?
Reply With Quote
  #65  
Old 07-10-2004, 03:47 PM
msimplay's Avatar
msimplay msimplay is offline
 
Join Date: Aug 2002
Location: UK
Posts: 1,059
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for the update on the opacity the invisible is now fixed and i don't show avatars on memberlist anyway so i like the new way
Reply With Quote
  #66  
Old 07-18-2004, 01:30 PM
The Keeper The Keeper is offline
 
Join Date: Mar 2002
Posts: 123
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't seem to get this to work. Invisible users still show up as online.
Reply With Quote
  #67  
Old 07-18-2004, 02:05 PM
buro9 buro9 is offline
 
Join Date: Feb 2002
Location: London, UK
Posts: 585
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by The Keeper
I can't seem to get this to work. Invisible users still show up as online.
Which version are you using?

If you're using mine, then if you have permission to see invisible users you will see them online, else you won't. That can't be wrong, as it's vBulletins own logic.

If you're using the original version, then you may indeed be seeing it incorrectly... I didn't look too closely at the logic of that and a few people did complain about it.
Reply With Quote
  #68  
Old 07-18-2004, 03:31 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by buro9
Which version are you using?

If you're using mine, then if you have permission to see invisible users you will see them online, else you won't. That can't be wrong, as it's vBulletins own logic.

If you're using the original version, then you may indeed be seeing it incorrectly... I didn't look too closely at the logic of that and a few people did complain about it.
David, I got your version working in the memberlist now too. Next is the profile.
Reply With Quote
  #69  
Old 07-18-2004, 08:09 PM
buro9 buro9 is offline
 
Join Date: Feb 2002
Location: London, UK
Posts: 585
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo
David, I got your version working in the memberlist now too. Next is the profile.
Boofo, could you post back your changes so that others can benefit?

I'm not running either version, but it'd be nice to roll up the best bits into a single post that we can point people at
Reply With Quote
  #70  
Old 07-18-2004, 08:54 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by buro9
Boofo, could you post back your changes so that others can benefit?

I'm not running either version, but it'd be nice to roll up the best bits into a single post that we can point people at
Sure, since you did all of the hard work.

For the memberlist:

In the memberlist_resultsbit template

Find:

HTML Code:
<if condition="$show['avatar']">
<img src="$avatarurl" border="0" alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" hspace="4" vspace="4" /><else />&nbsp;</if>
REPLACE it with:

HTML Code:
<if condition="$userinfo[IsOnline] == true">
<if condition="$show['avatar']"><img src="$avatarurl" border="0" alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" " border="0" hspace="4" vspace="4" /><else />&nbsp;</if>
<else />
<if condition="$show['avatar']"><img src="$avatarurl" border="0" alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" " border="0" hspace="4" vspace="4" style="filter:alpha(opacity=30);-moz-opacity:0.3;opacity: 0.3;" /><else />&nbsp;</if>
</if>
For the profile:

In the MEMBERINFO template

Find:

HTML Code:
<img src="$userinfo[avatarurl]" alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" />
REPLACE it with:

HTML Code:
<if condition="$userinfo[IsOnline] == true">
<img src="$userinfo[avatarurl]" alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none;" />
<else />
<img src="$userinfo[avatarurl]" alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none; filter:alpha(opacity=30);-moz-opacity:0.3;opacity: 0.3;" />
</if>
Since the pm's are already covered by the postbit, this catches them all, I think.

And it works excellent, I might add. Thanks, David.
Reply With Quote
  #71  
Old 07-26-2004, 06:06 PM
Wifey Wifey is offline
 
Join Date: Mar 2004
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for the newer version since the older version refuses to work even though I've tried installing it twice Will re-install later this evening.

[high]* Wifey says thanks!
[/high]

edit: It's working perfectly with the more elegant version - thanks!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:48 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04782 seconds
  • Memory Usage 2,321KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_html
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete