UBB.Dev
Posted By: Romq Addition to Who's Online - 04/22/2001 11:42 PM
I don't know if someone else has already posted this before. If so, sorry. shocked

I have made an extremely simple addition to the Who's Online hack that shows the link and number directly underneath the Registered Members. It seems a good place to put it.

To see what I mean, have a look here

It's just a few words of script added to Ultimate.cgi . If anyone is interested, let me know here and I'll post the details.
Posted By: BassTeQ Re: Addition to Who's Online - 04/23/2001 1:15 AM
Easy

$CurrentCount = $MemberCount + $GuestCount;

And then
print "$Currentcount";

Thats just to get the number of people online, the ofcourse you add the link to the online.cgi file via html, if you want.

Nice and easy to do, looks good.
Posted By: GoTorankusuKu Re: Addition to Who's Online - 04/23/2001 1:15 AM
That's pretty easy

in Ultimate.cgi

Find:
Code
code:

Replace with:
Code
code:
Posted By: Romq Re: Addition to Who's Online - 04/23/2001 11:29 AM
Yup, that's it, GoTorankusuKu. I did say it was "extremely simple" didn't I? wink

But I like the effect. Sometimes the simplest things are quite effective. Now I just wish I had more active members to make the number look more impressive! smile
Posted By: Metallifukinca Re: Addition to Who's Online - 04/23/2001 5:27 PM
This is the code I have

$MemberLine = "$AbsPosts Threads made by $TotalMembers Metallica fans. Welcome $LastReg back...";


and when I add this hack to it, I get a server error frown
Posted By: GoTorankusuKu Re: Addition to Who's Online - 04/23/2001 6:08 PM
Replace this:
Code
code:

With:
Code
code:
Posted By: Metallifukinca Re: Addition to Who's Online - 04/23/2001 6:58 PM
Ugh, thanks but I'm still getting an error frown
Posted By: BassTeQ Re: Addition to Who's Online - 04/24/2001 1:27 AM
Can you post the changed code, its probably just a syntax error. Also check your error log, it will tell you in which exact potision in the file the error occured, which makes it much easier to fix.
Posted By: Metallifukinca Re: Addition to Who's Online - 04/24/2001 2:50 AM
Code
quote:</font><HR>Originally posted by GoTorankusuKu:
Replace this:
<BLOCKQUOTE><font size="1" face="Verdana, Helvetica, Arial">code:
this is the code I used and I'm getting a misconfigation error
With:
Code
code:

Posted By: GoTorankusuKu Re: Addition to Who's Online - 04/24/2001 3:14 AM
OIC, I forgot something, here's the right code

Code
code:

It should work now.
Posted By: Romq Re: Addition to Who's Online - 04/24/2001 3:46 AM
Metallifukinca, you seem to be missing the backslash () before the final
Code
code:
Posted By: Metallifukinca Re: Addition to Who's Online - 04/24/2001 3:50 AM
Yep that did it GoTorankusuKu, thanks.
What about non-members, can we use this too ?
Posted By: indoe Re: Addition to Who's Online - 04/24/2001 5:30 AM
try this

Code
code:

[ April 23, 2001 10:33 PM: Message edited by: indoe ]
Posted By: BassTeQ Re: Addition to Who's Online - 04/30/2001 4:42 AM
Quote
quote:
When you say non members, do you mean people browsing your site as guests.
Like I have on my board in the who's online down the bottom, but you want to display it at the top? Is that what you are after?
© UBB.Developers