View Full Version : Avatar Opacity for online / offline
Zachery
04 May 2004, 04:00
http://www.vbulletin.org/forum/showthread.php?t=64606
Another template edit turned hack.
So here is the idea, when a user is online the avatar would be just like a regular avatar when they are offline the avatar would be faded
Well for the postbit its very simple as the online varible is already there
youll need to find
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
and replace it with
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Feel free to change the code in red, this is the level of opacitiy
Next will be the online / offline avatar for the memberslist :)
well sadly i forgot somthing because from time to time i need to remember im not a php coder, at this time i have not figured out how to get this to work in the memberlist yet, however i will keep working at it ^^
hmmm I was doing this myself on vB 2 but it required a hack iirc, its a cool trick.
Zachery
04 May 2004, 04:27
Yea well the postbit status is not the hardone, but now that i think & look at it, i dont think there is a way to get it to work on the memberlist sadly :(
Is indeed a cool trick.
Doesn't matter about the memberlist, doesn't have to show online/offline status for a person. They can look in the postbit. :p
Zachery
04 May 2004, 09:50
ME and boofo were talking about it at vB.org :) however (moves) its in the right place now :)
This works great except ... all avatars opacity is reduced, not just those that are offline. How can I screw up one line of text pasting? :D
??
I'm finding the same ... and doing some debugging, it looks like the variable $onlinestatus does not exist in postbit - it's there in the postbit_onlinestatus, but not in postbit (I tested this by adding
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
to the postbit, and it rendered
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Any ideas ?
Zachery
04 May 2004, 19:58
Well, that is odd O.o it should work by all means, ill go and see why its not
<wonders off>
Tradjick
09 May 2004, 16:06
Itīs not working for me either. Should it also work on vB 3.01 ?
Ryan Ashbrook
09 May 2004, 17:30
I'll test it out, I've been looking for this anyway. :)
Indeed, it's not working...
Zachery
09 May 2004, 20:55
Yes i know, ive thought of a way to redo it so it all works, sadly the varible gets unset during the process and isnt avabile to the postbit template :(
Ryan Ashbrook
09 May 2004, 20:59
What about putting the avatar in the Online / Offline template and replacing the avatar code with the Online / Offline code?
Zachery
09 May 2004, 21:00
Youll see, i just need some time to work on it :)
Ryan Ashbrook
09 May 2004, 21:04
Ok, I can't wait. :)
masterstanf2k
15 Jun 2004, 06:59
hack didn't work for me :(
GamerzWorld
23 Jun 2004, 21:14
Bah didnt work :(
Grounds_Network
05 Jul 2004, 04:09
Use an else statement
Basically say
if condition = online Then
show avatar ful
else
show avatar with opacity
End if
^^ that is VB(Visual Basic) sayntax :P but try doing it with php.
Zachery
05 Jul 2004, 06:56
I need to recode part of it, ill update this tomorow
Grounds_Network
05 Jul 2004, 07:18
Well, i kind of re-did your hack...and using it for my site.
http://www.pixelgrounds.com/Forum
Zachery
05 Jul 2004, 07:43
the varible i was trying to use is just not avaible in the postbit(_legacy) template.
Chanrith
10 Jul 2004, 05:48
Well, i kind of re-did your hack...and using it for my site.
http://www.pixelgrounds.com/Forum
How did you go about doing this?
arcadian_girl
19 Mar 2006, 00:49
*bump*
is there a way to do this-has it been figured out? :)
VPREATR
18 Nov 2006, 14:16
Any updates?
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.