![]() |
Quote:
|
|
Does the mod for opacity used for IE works with Opera ?!
If yes, I'll have to modify the code (only 1 thing to replace 3times), and Pseudomizer will be happy :p |
Good one, I'll use this
|
i have a problem with invisible users opacity being 100%
even for normal users and yes i installed the hack correctly can someone else confirm this please i just checked this also happens on bearfacts |
Ok so I'll look for it too, perhaps my conditions are wrong ;)
Can someone answer my question for Opera ?! |
Hi VBDEV...
Great hack, installed it, and it doesn't work with Opera... C. |
Quote:
|
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. |
i have reported this before but i had this confirmed but vbdevs not done anything since
i'm still waiting :( |
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?
|
Never mind, I realized you have to set the forums to use the legacy settings. Problem solved.
|
If user chooses to be hidden, it still shows opacity 100%.
Basically pointless until this is fixed. |
Quote:
EDIT: // Works ok on mine ? maybe I have some other mods included ? |
Quote:
This is only mod installed for showthread, and I'm taking it down. |
Quote:
|
Quote:
|
awesome! looks great on my forum!
;) thanks! *hits install! |
installed on vb 3.0.0 and vb 3.0.3 and working great on both.
|
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: PHP Code:
PHP Code:
$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: Code:
//avatar opacity grog6 - vbulletindev.net Now, all we have to do is find the avatar line in the postbit template and add a conditional to it: Code:
<if condition="$post[IsOnline] == true"> 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 |
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. |
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 ;) |
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? ;) |
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 :D
|
I can't seem to get this to work. Invisible users still show up as online.
|
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. |
Quote:
|
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 :) |
Quote:
For the memberlist: In the memberlist_resultsbit template Find: HTML Code:
<if condition="$show['avatar']"> HTML Code:
<if condition="$userinfo[IsOnline] == true"> 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"> And it works excellent, I might add. Thanks, David. ;) |
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! |
Cool hack.
To clarify, the code posted above doesn't do anything for the actual posts being made right? So am I to disregard the original hack on the first page and use what's posted above instead or do I use both? |
Thanks guys, install was a piece of cake...... great feature
Install is clicked |
It is quite hard to install that hack - I will tell you that.
|
i installed the version the second two guys thought of
/me thumbs up |
I couldn't get the memberlist to show non-opaque avatars, so I didn't even try the memberinfo.
But the second version of postbit works great. Installed -- thanks! |
A little less code.
PHP Code:
|
Actually, there is no need for the code in functions_bigthree.php in MEMBERINFO. There is probably some already existing value in the others to check too.
MEMBERINFO use the existing info in $userinfo['action'] like this PHP Code:
|
You can get rid of the switch in bigthree by just difining in the existing code.
PHP Code:
|
very cool hack! I just discovered this and it installed fine in 3.0.6, in less than 3 minutes... thanks much!
|
Neat little hack .. thanks
Clicked install |
All times are GMT. The time now is 01:01 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|