UBB.Dev
Posted By: Metallifukinca Who's viewing the whole site ? - 11/06/2001 2:30 AM
I tried searching the forums for the anwser but I had no luck.
I wanna know how I can setup who's viewing all my webpages(my other html pages) with the who's online hack.
I'm using 5.47e
I know it has something to do with:



but I dunno how to make it work with plain html pages

Thanks

(edited by Vipermad to format page properly...the #exec line above is ONE line. smile )

[ 11-07-2001: Message edited by: Vipermad ]
Posted By: Lord Dexter Re: Who's viewing the whole site ? - 11/06/2001 4:03 AM
You need to add the SSI line to the pages you want WOL to trace. For the SSI to work the pages need to be have a .shtml format. What I don't know how to do is make the UBB write all the HTML pages into .shtml pages. As for your site I'm not sure what the SSI line is supposed to be. Is it in the readme?
Posted By: Metallifukinca Re: Who's viewing the whole site ? - 11/06/2001 5:30 AM
How would a go about turning my .html to shtml ?
I would really like to add this feature to my site, any and all help would be great.
Posted By: Lord Dexter Re: Who's viewing the whole site ? - 11/06/2001 7:30 AM
Well I don't know how to do that. But I would really like to find out.
Posted By: Metallifukinca Re: Who's viewing the whole site ? - 11/06/2001 12:20 PM
ugh, anyone one else?
Posted By: p2k Re: Who's viewing the whole site ? - 11/06/2001 9:51 PM
YYYYYOOOOOOOOO!!!!!!!!!!

peetwokewl4u is here once again to help you get the job done! Smack down in the middle!

First, rename all your .htm or .html pages to .shtml. Make sure you change all the links on all your pages to point to the .shtml files. NOTE: If your web provider does not support SSI this will NOT WORK! Time for a real provider!

Second, make sure you have Who's Online installed on your UBB Message Forum.

Third, make sure you have this line in all your .shtml pages that you want to show the number of viewers on your site.

Code
code:

Fourth, copy and paste the below code into an editor and save it as mainon.cgi.

Code
code:

Fifth, search the code for SITENAME and replace it with your site name. Also make sure all the wink faces you see in the code are fixed. Dumb ubb code feature still puts smiles in them.

Once again I'm just peetwokewl4u!

[ 11-06-2001: Message edited by: p2k ]

[ 11-06-2001: Message edited by: p2k ]
Posted By: NBAustin Re: Who's viewing the whole site ? - 11/06/2001 10:40 PM
There IS an HTML to SHTML hack in the database for 5.xx versions.
Posted By: BassTeQ Re: Who's viewing the whole site ? - 11/07/2001 12:06 AM
Code
quote:</font><hr>Originally posted by p2k:

Third, make sure you have this line in all your .shtml pages that you want to show the number of viewers on your site.

<blockquote><font size="1" face="Verdana, Helvetica, Arial">code:

Fourth, copy and paste the below code into an editor and save it as mainon.cgi.



What you dont need all that code in that cgi file just to show a person is on a web page. There are only like 3 lines of code needed. Ive got a script I wrote on my server, Ill post it when I get home.
Posted By: Metallifukinca Re: Who's viewing the whole site ? - 11/07/2001 5:06 AM
Thanks BassTeQ
Posted By: p2k Re: Who's viewing the whole site ? - 11/07/2001 8:27 PM
youre welcome

peetwokewl4u!
Posted By: Lord Dexter Re: Who's viewing the whole site ? - 11/08/2001 8:03 AM
Quote
quote:
Cool, Must have missed that in the database. Anyway, Metallifukinca use that hack and add the SSI it says in the readme file so the WOL will track people reading threads.
Posted By: BassTeQ Re: Who's viewing the whole site ? - 11/09/2001 12:04 AM
Sorry man Ive been flat stick, Ill post the code tonight for you!
Posted By: Metallifukinca Re: Who's viewing the whole site ? - 11/09/2001 10:29 AM
Thanks again dude smile
Posted By: Metallifukinca Re: Who's viewing the whole site ? - 11/11/2001 12:22 AM
BassTeQ ?
Posted By: BassTeQ Re: Who's viewing the whole site ? - 11/11/2001 10:43 AM
Sorry mate here you go, this is an example of what I use

Code
code:
Posted By: Metallifukinca Re: Who's viewing the whole site ? - 11/12/2001 12:42 AM
where's that go ?

and whats this ?
&WriteUserSession("On Contacts Page");

do i have to have the shtml hack for this to work ?
Posted By: BassTeQ Re: Who's viewing the whole site ? - 11/12/2001 7:44 AM
Sorry I should have explained.

All that code goes into a file, save it as CGI and upload it to your server.

I then call this file using SSI in a SHTML page, so what the SSI basically does it set the new cookie for the user so it shows up as them browing the contacts.shtml page for example.

The &WriteUserSession but sets the cookies link. So if someone if looking at the whos online table they can click a link in the table an go to the same page another user is looking at. Same as how it says, Viewing Forum: whatever
and it gives you a clickable link. But yo dont have to make it clickable if you wish not to.

No you dont have to install the shtml hack, BUT the page where you are calling this script from my be called .SHTML, otherwise it will not parse the ssi directive in the file.

If you have any probs let me know.
Posted By: Metallifukinca Re: Who's viewing the whole site ? - 11/13/2001 12:26 AM
I'm lost frown
ok how do I view what threads people are reading then ?
My is setup to see what forum, posting, editing threads.
I need what threads people are reading, I think I'll pass on who's viewing the whole site and the SHTML thingy for now.

Thanks
Posted By: BassTeQ Re: Who's viewing the whole site ? - 11/13/2001 1:30 AM
That script can be used for pages outside of your UBB, pages that arent tracked by who's online can now be, if you use my script.
Posted By: Metallifukinca Re: Who's viewing the whole site ? - 11/13/2001 2:49 AM
Ohhhhhhhhhh , I get it now
So I save that bit of code as a .cgi on my cgi-folder (viewing.cgi) and rename all my html files to shtml ?
What I do get is what code do I put in those html/shtml pages frown

Also, how do I make the who's online track what people are reading ?
I mean what and were do I place the code ?

Thanks dude you been a BIG help smile
Posted By: Lord Dexter Re: Who's viewing the whole site ? - 11/13/2001 8:11 AM
Thanks for the code BassTeQ. I appreciate it. smile
Posted By: Ian_W Re: Who's viewing the whole site ? - 11/13/2001 11:13 AM
Just as a side not to this.

Be aware that if you just change all your pages to .shtml anyone going to a directory ie /yoursite.com/dir/ will get a list of files and not the index page - why because by default your site & server will have been set up to server .htm or .html as the index page.

If you want .shtml to show automatically you will need to add an .htaccess file.

The only snag now is that if you include it in the root - ALL sub directories will be affected - including any you want to stay as .html.

It is possible for you web host to change the indel page to include .shtml but they are unlilely to ever do this - as it means work!!

You can however include an .htaccess file to every directory, and this will get round the problem.

In the .htaccess file, you will need to include the line

DirectoryIndex index.shtml

Regards,

Canvey.
Posted By: BassTeQ Re: Who's viewing the whole site ? - 11/14/2001 6:10 AM
Metallifukinca
What you need to do is then in your shtml file just incude the SSI directive commend, something like
Now I cant remember the exact syntax off the top off my head.

Canvey
Most web servers will be setup to parse shtml, as for the index.html issue, I got around that by just putting a instant redirect in my index.html file to my index.shtml file. That way you dont havew to bother with adding stuff to the .htaccess file.
© UBB.Developers