|
Joined: Aug 2000
Posts: 569
Member
|
Member
Joined: Aug 2000
Posts: 569 |
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. ) [ 11-07-2001: Message edited by: Vipermad ]
|
|
|
|
Joined: May 2001
Posts: 6,708
Member
|
Member
Joined: May 2001
Posts: 6,708 |
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?
|
|
|
|
Joined: Aug 2000
Posts: 569
Member
|
Member
Joined: Aug 2000
Posts: 569 |
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.
|
|
|
|
Joined: May 2001
Posts: 6,708
Member
|
Member
Joined: May 2001
Posts: 6,708 |
Well I don't know how to do that. But I would really like to find out.
|
|
|
|
Joined: Aug 2000
Posts: 569
Member
|
Member
Joined: Aug 2000
Posts: 569 |
|
|
|
|
Joined: Feb 2001
Posts: 108
Member
|
Member
Joined: Feb 2001
Posts: 108 |
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. Fourth, copy and paste the below code into an editor and save it as mainon.cgi. 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 ]
|
|
|
|
Joined: Jan 2000
Posts: 395
Member
|
Member
Joined: Jan 2000
Posts: 395 |
There IS an HTML to SHTML hack in the database for 5.xx versions.
|
|
|
|
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
|
Moderator / Code Fixer
Joined: Oct 2000
Posts: 743 |
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.
I can't afford a good signature editor
|
|
|
|
Joined: Aug 2000
Posts: 569
Member
|
Member
Joined: Aug 2000
Posts: 569 |
|
|
|
|
Joined: Feb 2001
Posts: 108
Member
|
Member
Joined: Feb 2001
Posts: 108 |
youre welcome
peetwokewl4u!
|
|
|
|
Joined: May 2001
Posts: 6,708
Member
|
Member
Joined: May 2001
Posts: 6,708 |
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.
|
|
|
|
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
|
Moderator / Code Fixer
Joined: Oct 2000
Posts: 743 |
Sorry man Ive been flat stick, Ill post the code tonight for you!
I can't afford a good signature editor
|
|
|
|
Joined: Aug 2000
Posts: 569
Member
|
Member
Joined: Aug 2000
Posts: 569 |
Thanks again dude
|
|
|
|
Joined: Aug 2000
Posts: 569
Member
|
Member
Joined: Aug 2000
Posts: 569 |
|
|
|
|
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
|
Moderator / Code Fixer
Joined: Oct 2000
Posts: 743 |
Sorry mate here you go, this is an example of what I use
I can't afford a good signature editor
|
|
|
|
Joined: Aug 2000
Posts: 569
Member
|
Member
Joined: Aug 2000
Posts: 569 |
where's that go ? and whats this ? &WriteUserSession(" On Contacts Page"); do i have to have the shtml hack for this to work ?
|
|
|
|
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
|
Moderator / Code Fixer
Joined: Oct 2000
Posts: 743 |
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.
I can't afford a good signature editor
|
|
|
|
Joined: Aug 2000
Posts: 569
Member
|
Member
Joined: Aug 2000
Posts: 569 |
I'm lost 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
|
|
|
|
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
|
Moderator / Code Fixer
Joined: Oct 2000
Posts: 743 |
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.
I can't afford a good signature editor
|
|
|
|
Joined: Aug 2000
Posts: 569
Member
|
Member
Joined: Aug 2000
Posts: 569 |
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 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
|
|
|
|
Joined: May 2001
Posts: 6,708
Member
|
Member
Joined: May 2001
Posts: 6,708 |
Thanks for the code BassTeQ. I appreciate it.
|
|
|
|
Joined: Feb 2002
Posts: 2,286
Veteran
|
Veteran
Joined: Feb 2002
Posts: 2,286 |
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.
Fans Focus - Focusing on Fans of Sport (Okay - mainly football (the British variety at the moment - but expanding all the time....)
|
|
|
|
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
|
Moderator / Code Fixer
Joined: Oct 2000
Posts: 743 |
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.
I can't afford a good signature editor
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 70
Joined: January 2007
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|