![]() |
Okies, I found the post I was talking about...
https://vborg.vbsupport.ru/showthrea...&postid=276405 But not working for diff subdomains. |
This hack won't do that, and I for one have never managed to hack it in so I can have more than one index.php.
|
hmm...
I wonder if there's a way to hack it so it stores the complete path to the file instead of just the filename, then just mod the online.php to go with full paths. |
I was able to get the Who's Online to track users across many of the main section pages of our site, but I had to hack the online.php myself to make it function the way I wanted. I couldn't find any pre-existing hack that would do it.
|
Well, that's what I'm tryin' to figure out how to do :)
So what hacks did you make to online.php? And does it work for complete URLs? Not just filenames & relative paths? |
The who's online code has a variable called strpos($userinfo[location]), what I did was modify the existing case structure logic to both look for additional filenames and use the above variable, under a default case statement, within a large if - elseif structure to also parse for URL paths. Then you set up additional $userinfo[activity] value tags. In another case structure in the online.php code, it uses these activity labels/tags to determine what to output on the who's online listing.
View the attached code that I am currently running and you'll see what I did. Just duplicate what I am doing, but with your own filenames or URL paths on your site. Then you just include the following SSI tag at the end of each HTML file on your site. For this to work correctly without having to change all your file extensions to .shtml, just edit your Apache config or your IIS script/ISAPI configuration to make it parse all .html files for SSI commands in addition to .shtml files. Code:
For Apache: |
how would i make it so anything in lets say: archive/ :would say in whos online like viewing archive?
|
I'm loving this hack - thanks Chen!
|
Class hack, saves a lot of work. :)
Thanks FireFly. :D |
[QUOTE]Originally posted by chad777
When I goto view who's online after adding about 6 locations. I get this error Fatal error: Call to a member function on a non-object in /home/snarfpro/public_html/forums/online.php on line 128 Any Ideas ? |
All times are GMT. The time now is 01:12 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|