The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Avatar's opacity according to user's status (online/offline) Details »» | |||||||||||||||||||||||||||
Avatar's opacity according to user's status (online/offline)
Developer Last Online: Dec 2021
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
|
Comments |
#62
|
||||
|
||||
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. |
#63
|
|||
|
|||
Quote:
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 |
#64
|
||||
|
||||
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? |
#65
|
||||
|
||||
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
|
#66
|
|||
|
|||
I can't seem to get this to work. Invisible users still show up as online.
|
#67
|
|||
|
|||
Quote:
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. |
#68
|
||||
|
||||
Quote:
|
#69
|
|||
|
|||
Quote:
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 |
#70
|
||||
|
||||
Quote:
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 /> </if> 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 /> </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 /> </if> </if> 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" />
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> And it works excellent, I might add. Thanks, David. |
#71
|
|||
|
|||
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! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|