UBB.Dev
Posted By: BassTeQ Online script - 04/24/2001 1:39 AM
Im trying to modify the output of the home online hack.
Currently it outputs the usernames and Guest #1, Guest #2 etc... which if fine. But Id like to get it to not output the Guest #1, Guest #2 etc... and only say usernames, and 3 guests for example.

Ive had a play with the code and managed to get it to not display the guest #1, Guest #2 etc.. but it still writes guest as a username.

Ive tried
next if($username =~ /Guest/);
and putting that right after
if ($username =~ /.inv/ && !$adminstatus) { next; }
but it didnt work.

Any ideas? Thanks

Code
code:
Posted By: Lionel Re: Online script - 04/24/2001 2:18 AM
I am usine online.cgi. I made a copy and named it onlinessi.cgi, then in the variales I set it for SSI.
The output reads:
Username, there are x members and x guests on the forums within the last 10 minutes.
or Username, there are no members and x guests etc...
or whatever the current conditions are.
Posted By: BassTeQ Re: Online script - 04/24/2001 2:27 AM
Yeah I can manage to get it to display like that but Id like to list all the members names if they are members and if they are guests it increments the $guest_counter variable and then says X number of guests.

If I cant get this to work I may just they way you said.
© UBB.Developers