Cool, good job! Going straight into my board. By looking at the code, though, I think it also shows online state for invisible users, which don't want to appear online... you might try (untested)
Code:
if($r->{$uniq}->{login}->[1] == 1) {
before the last part of online.cgi.
_________________________ My Hacks Page (will be back with UBB 7!) UBBDev - We put the class into UBB.classic!
Just installed... and it works I think it'd be cool though that if the user is online it'd say "Online" or something like that when you hover the image, and if they're offline it'd say "Offline/Invisible". I'm not sure if it's possible in JS, but I think just instead of "src" you should put "alt".
_________________________ My Hacks Page (will be back with UBB 7!) UBBDev - We put the class into UBB.classic!
I am working in mozilla 1.6, and the .alt did work, but it didn't mouseover anything. .title does tho. jic, i left both alt and title in, since they both don't have any errors. Figuring 2 is better than 1, maybe there's a browser who will only accept alt, i dunno.
#202783 - 04/07/0410:13 AMRe: [6.7] [beta] User Online
Gizmo
Wizard
Registered: 01/10/00
Posts: 5092
Loc: Portland, OR, USA
Oh BTW, feel free to use my images, I give you complete rights to do so (at least i think I'm the one who made them, I've been so busy that I don't even recall lol, i've been using them for like 2 years now, and their crappy, so i'm pretty sure i made them)...
user_online.gif and user_offline.gif are located in the noncgi directory of the zip and should be uploaded into the respective directory on your webserver.
did you have to change the location of vars_config.cgi in your ultimatebb.cgi and cp.cgi? Also you can't do url path to your config file, it's gotta be the full path. e.g. /usr/bin/local/path/file/ubbcgi/vars_config.cgi.
Quote:
Originally posted by Gizzy:
shh, brett is sleeping... :x...
No, i wish. I work from 2 to 11 on thursday, had a very important project due today, couldn't mess around. :x
Ok, so I did that, and then I got the Error for the lext line of code, where it looks for vars_pntf. So I went and replaced it also. Now I get this if I try and run online.cgi by itself...
Code:
var AllImgs = document.body.getElementsByTagName("img"); function ChangeAll(img) { for(var i=0;
i <= AllImgs.length; i++) { if(AllImgs[i] && AllImgs[i].id == img) { AllImgs[i].src = '/user_online.gif';
AllImgs[i].alt = 'Online'; AllImgs[i].title = 'Online'; } // end if } // end for }
And the image doesn't change.
_________________________ United Devices Points: [img]http://www.ubbdev.com/ud/?u=phillip.burum&s=1[/img]