UBB.Dev
Hi Everyone.
This isn't really a hack, but a small modification to a previously released hack.

Homeonline hack allows you to list users who are browsing your board,
as well as users who are at the Main Page of your website
right on the main page through SSI.
(People visiting the Main Page of the website also
show up in the "Who's Online" section.)

I went just a little further to be able to track
visitors who are at any section of my website
(Calendar, Picture Gallery, About Us, anything..),
so they show up as
Guest #1
Viewing: Calendar

.. etc.

You can get the homeonline hack at
http://spawn1973.tripod.com/UBBhacks/homeonline.zip
(Curtesy of Spawn, hope he doesn't mind me putting
this link here, he has it posted publically on his site).

Follow the included instructions on getting it to
list visitors from your Main Website Page.
Then, create copies of the homeonline.cgi
files for every section of your website you want to track,
like online-calendar.cgi, online-pictures.cgi, so on.

Modify the newly created copies:

Change $thiswebhome to the URL of the section you want to track, i.e.:
Code
code:

Change &WriteUserSession to:
Code
code:


Then , being that you probably don't want the list of online users
to be printed at ever section of your website
go through the code and comment out a few print statements.


Find:
Code
code:

Replace with:
Code
code:
(commenting some print statements out, respecting the syntax)

Now place
Code
code:
at the footer of the pages at that particular section.

All those users will also show up at the "Who's Online" section of your UBB.
So in Ultimate.cgi I changed the caption of
"Currentely Browsing the Board" to "Currentely Browsing the Site"

All done.
Enjoy.
Nice job. One thing though...if you are tracking users at your site, you will get a ton of Guest #1, Guest #2, etc. because not everyone that goes to your site will register at the boards (or maybe they will [Linked Image]).

------------------
Can't get this to work with 5.47.
Any thoughts?

BB

------------------
The MyDivX ;-) Forums
http://www.mydivx.com/cgi-bin/Ultimate.cgi
In my opinion this would be more efficient if it was made so that there was only one cgi file and the ssi tag was like:

Code
code:

and then modify the cgi so it parses the viewing data. Alot simpler and takes up less server space if you ask me. Just an idea for a future version maybe.
Didnt I create the same hack and called it the same name awhile ago? [Linked Image]

fix = spelling error

- https://www.ubbdev.com/ubb/Forum3/HTML/000107.html

------------------


Liquid FX Design.com | Ghoste.com | AuctionVilleUSA.com
GamingRC.com | ThrillKillClan.com


This message has been edited by Ghoste on January 10, 2001 at 12:58 AM
I am having a problem getting this to show up in whos online in my BB which is where I wanted it to post anyway. I have the exec. in the footer on the page im tracking but here is what displays on the bottom.
Cannot #EXEC 'path/to/cgi/online-this-section.cgi' due to lack of EXECUTE permission. I have read write and execute on these files. this is on a win 2000 server,It is also remote I dont upload. anybody got any ideas. This is in my side menu bar.
website URL www.esteroumc.com
Click on the link above my sig. to go to my board.
GOT IT FIXED I had to remove
.
Everything seems to work without it.
It displays wrong on my homepage.
It takes up to much room.
any Ideas how to get it inline like it displays in whos online
THIS DOES NOT WORK IN WIN 2000 I THINK IT CAN BE ALTERED TO WORK.
It now displays a new frendly message on the bottom of the page and its not a IIS error


Failed to execute script 'path/to/cgi/online-this-section.cgi': Win32 Error Code = 3


------------------
I Got It Fixed Thanks

This message has been edited by speed on January 12, 2001 at 08:22 AM
© UBB.Developers