Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Avatar's opacity according to user's status (online/offline) Details »
Avatar's opacity according to user's status (online/offline)
Mod Version: 1.00, by VBDev (Coder) VBDev is offline
Developer Last Online: May 2015 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.0.0 Rating: (0 vote - 0 average) Installs: 97
Released: 01 May 2004 Last Update: Never Downloads: 57
Not Supported  

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)





Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Add-On Releases The new Online/Offline avatarīs opacity WarLion vBulletin 3.7 Add-ons 56 24 Dec 2011 03:32
Add-On Releases The new Online/Offline avatarīs opacity WarLion vBulletin 3.6 Add-ons 75 14 Feb 2010 21:38
Mini Mods The new Online/Offline avatarīs opacity WarLion vBulletin 3.6 Template Modifications 31 02 May 2008 10:52
Avatar Opacity for online / offline Zachery vBulletin 3.0 Template Modifications 22 18 Nov 2006 14:16
Online/Offline Status with Avatar Opacity Grendel602 vBulletin 2.x Full Releases 40 25 Aug 2003 21:39

  #46  
Old 04 May 2004, 21:21
VBDev's Avatar
VBDev VBDev is offline
 
Join Date: Jan 2004
Real name: Clément
Ok so I'll look for it too, perhaps my conditions are wrong

Can someone answer my question for Opera ?!
Reply With Quote
  #47  
Old 04 May 2004, 21:39
Chris-FH Chris-FH is offline
 
Join Date: Jun 2003
Hi VBDEV...

Great hack, installed it, and it doesn't work with Opera...

C.
Reply With Quote
  #48  
Old 04 May 2004, 21:46
msimplay's Avatar
msimplay msimplay is offline
 
Join Date: Aug 2002
Originally Posted by VBDev
Ok so I'll look for it too, perhaps my conditions are wrong

Can someone answer my question for Opera ?!
not too fussed with Opera coz it don't support dhtml but thats for looking into the conditionals thing
Reply With Quote
  #49  
Old 24 May 2004, 13:10
Detomah's Avatar
Detomah Detomah is offline
 
Join Date: Sep 2003
Real name: Tom
Is this hack supposed to work if users have their status as hidden?

I tried every possible combination to make it show as opaque for hidden users (with me logged in as normal user) but had no joy. Kind of ruins the hack and makes it unusable for me as I want to use it in conjunction with the online status icon.
__________________
Total Format - The Total Entertainment & Leisure Site, covering games and gaming, music and musicians, movies and celebrities. Discussion, reviews, galleries and much more.
Reply With Quote
  #50  
Old 25 May 2004, 23:19
msimplay's Avatar
msimplay msimplay is offline
 
Join Date: Aug 2002
i have reported this before but i had this confirmed but vbdevs not done anything since

i'm still waiting
Reply With Quote
  #51  
Old 26 May 2004, 02:52
bmckain bmckain is offline
 
Join Date: May 2003
I installed this twice and it doesn't work, the only thing I can think of is that I am running vB 3.0.1 and this is for Gold. Any reason other than that what the avatars wouldn't reduce opacity on either IE6 or Firefox?
Reply With Quote
  #52  
Old 26 May 2004, 03:05
bmckain bmckain is offline
 
Join Date: May 2003
Never mind, I realized you have to set the forums to use the legacy settings. Problem solved.
Reply With Quote
  #53  
Old 15 Jun 2004, 16:00
Karthick Karthick is offline
 
Join Date: Mar 2004
If user chooses to be hidden, it still shows opacity 100%.

Basically pointless until this is fixed.
Reply With Quote
  #54  
Old 15 Jun 2004, 16:22
Natch's Avatar
Natch Natch is offline
 
Join Date: Nov 2002
Originally Posted by Karthick
If user chooses to be hidden, it still shows opacity 100%.

Basically pointless until this is fixed.
For those that can see invisible users, yes ... otherwise no ...

EDIT: // Works ok on mine ? maybe I have some other mods included ?
__________________
Natcher00
... is the Admin @ MobileForces.org - Official Community for a cult Vehicle based FPS - the only place for support!
... also he's Penfold to Dark_Wizard's Danger Mouse in development of vBWar
http://www.mobileforces.org/sig.jpg
{DaniWeb: Learn HOW-TO mod_rewrite your vB board}
Reply With Quote
  #55  
Old 16 Jun 2004, 05:48
Karthick Karthick is offline
 
Join Date: Mar 2004
Originally Posted by Natch
For those that can see invisible users, yes ... otherwise no ...

EDIT: // Works ok on mine ? maybe I have some other mods included ?
I login as guest, can still see the avatar 100% opacity but the green light is not lit.

This is only mod installed for showthread, and I'm taking it down.
Reply With Quote
  #56  
Old 16 Jun 2004, 08:18
msimplay's Avatar
msimplay msimplay is offline
 
Join Date: Aug 2002
Originally Posted by Karthick
I login as guest, can still see the avatar 100% opacity but the green light is not lit.

This is only mod installed for showthread, and I'm taking it down.
i've highlighted this problem quite a bit but no one listens to me :disappointed:
Reply With Quote
  #57  
Old 16 Jun 2004, 08:23
Karthick Karthick is offline
 
Join Date: Mar 2004
Originally Posted by msimplay
i've highlighted this problem quite a bit but no one listens to me :disappointed:
Most people on my forum think the shading of the avatar doesn't look good anyway.
Reply With Quote
  #58  
Old 02 Jul 2004, 03:29
turbidblue's Avatar
turbidblue turbidblue is offline
 
Join Date: Apr 2004
Real name: John
Talking

awesome! looks great on my forum!



thanks!


*hits install!
Reply With Quote
  #59  
Old 08 Jul 2004, 20:46
chapsrulez chapsrulez is offline
 
Join Date: Mar 2004
installed on vb 3.0.0 and vb 3.0.3 and working great on both.
Reply With Quote
  #60  
Old 10 Jul 2004, 14:04
buro9 buro9 is offline
 
Join Date: Feb 2002
I hope no-one minds, but I wanted to highlight another way of doing this which requires less processing (fractionally) and is a little more elegant.

I should note that I'm not using avatars in the memberlist, so this isn't for that. But this does the showthread and private messaging ones

In includes/functions_bigthree.php there is already a function that finds out someones online status.

Within that file find:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

BEFORE that, put:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Now the $user object has an additional property in its array:

$user['IsOnline'] indicates that the user is online or not... or rather, should appear online to the current user... it takes into account invisibility and permissions, as the code above this already does all of this.

So we have less processing as none of this needs to be run:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And it's more elegant as it's a simple switch that uses all of vBulletins own logic, when their logic evolves, the switch will remain the same

Now, all we have to do is find the avatar line in the postbit template and add a conditional to it:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Notice that if it's online, it doesn't even have the style added... which is a good thing as why apply opacity when it's not required?

Secondly I apply both the IE and Mozilla and Opera opacity switches at the same time. Yes, I said Opera... Opera is currently using the CSS3 recommendation of 'opacity'... which is the best thing to do as that is also what Mozilla will be using in the future.

Styles set like this are ignored if not applicable... so it breaks nothing.

Anyhow... more elegant because of the simplicity of the code modification and the fact that we keep all of the presentation logic in templates rather than in code.

It shouldn't be hard for those who want to use this for the memberlist or memberprofile to add a call to the fetch_online_status() function in functions_bigthree.php and to add a conditional to their template.

But yeah... a different way of doing the same thing. Better? Hard to say... but I think a little more elegant.

Cheers

David K
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 22:49.

Layout Options | Width: Wide Color: