Firefox PHP

User-Tracking on whole site

Posted by Sunbringer 
User-Tracking on whole site
October 31, 2007 01:24PM
HI together,

I'm searching for a hack, that tracks user-activity over the whole page.

At our site Phorum is embedded into a sort of community-page with much more content, than just the Phorum. Now, i want to track the user-activity, also if a user doesn't uses the forum. Anyone know a snipped for this case?

Thank you
Sun
Re: User-Tracking on whole site
October 31, 2007 01:57PM
Process the server's access logs?
Use the google site statistics?


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: User-Tracking on whole site
October 31, 2007 02:20PM
hehe, sorry, i dont need another statistic-site ^^ my fault ;)

$PHORUM['track_user_activity'] is the key for me.

The background is, that the Forum shows with the Mod Online Users, whos currently ... well... online ^^. Unfortunatly this data is only tracked in the Phorum, but i want to integrate this tracking into the whole site.
Re: User-Tracking on whole site
October 31, 2007 03:37PM
Either make custom code or include common.php on every page like:
$pwd = getcwd();
chdir("/phorum/dir");
include_once "./common.php";
chdir($pwd);
unset($pwd);

Brian - Cowboy Ninja Coder - Personal Blog - Twitter
Re: User-Tracking on whole site
November 02, 2007 11:15AM
Quote
brianlmoon
Either make custom code
Thank you brianlmoon. But this is my problem. I am a designer, no Coder. Thats, why i asked for a hack or hint. Im not familiar enough with the Phorumcode to make this custom code.

Quote
brianlmoon
or include common.php on every page like:
$pwd = getcwd();
chdir("/phorum/dir");
include_once "./common.php";
chdir($pwd);
unset($pwd);

Thanks for this code, it is included now. But Perhaps there is anyone, who has already a slim version for me?

Thanks @all
Sun
Re: User-Tracking on whole site
November 02, 2007 05:55PM
There isn't any, but it would be a combination of the quick authentication code that Brian posted somewhere else and an update to the database. But if your server is good enough then why not simple go for this version? It's not less slim than the rest of the Phorum pages. It does load some extra stuff, but maybe at a later point in time you will be needing it anyway for further integration.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: User-Tracking on whole site
November 04, 2007 11:42AM
Quote
mmakaay
It does load some extra stuff, but maybe at a later point in time you will be needing it anyway for further integration.
yes, you're right. good point.

Quote
mmakaay
but it would be a combination of the quick authentication code that Brian posted somewhere else and an update to the database.
Doesn't the common.php update the database, when i simply include is the way brian postet it? sorry... perhaps i'm too stupid, but as i said, im not a coder ;)

Tanks
Sun



Edited 1 time(s). Last edit at 11/04/2007 11:43AM by Sunbringer.
Re: User-Tracking on whole site
November 04, 2007 12:41PM
common.php does update the database and if you use that, then you are done. Quick auth + database update would be what was needed for implementing it without loading the Phorum common.php script.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: User-Tracking on whole site
November 05, 2007 03:39PM
alright, thank you for your help and patience ;)
Sorry, only registered users may post in this forum.

Click here to login