Page 1 of 1

new mod/hack: logging of frontend user activity

Posted: Sat 24. Apr 2004, 10:28
by andreas12345
I've created this one over the last few days - it's in... let's say alpha-stadium. How do you consider it?

Download here

The first and main feature of this mod is to implement a logging of frontend-user activity within phpwcms - or in other words: Giving answers to questions like: "What articles and categories are visited by the surfers?", "What browser is used more often than others?", "Which native language may my visitors have?".

Apart from that, the mod also includes a small administration menu into your frontend. You have to logon to the backend, and with this session open (not logging off) you can now visit your frontend (I've included a link to the index.php on the backend's startpage.).

On the upper left corner you'll now find ">>" if you move your mouse towards the left edge there will appear a menu with the entries "edit category" (only if not home), "edit article", "go to backend" and "logoff"... try it, it's handy!

Image

BTW: Created under 1.1 RC2 2004-04-04 w/ patch 2004-04-12!!!

Posted: Sat 24. Apr 2004, 10:49
by pSouper
I view this mod in as two seperate mods really: webstats and front/back end admin mode.
  • There is a very nice webstats mod already that logs all this stuff.
  • the fronrend in backend mode is a nice idea.
I would like to see a user list in your 'red box' displaying the logged on users that are viewing that particlular font endpage currently.
but also an interger displaying the number of non-logged on users viewing the current page too. :)

Posted: Sat 24. Apr 2004, 15:51
by cmslover
Cool! Does it work with RC3?

Thanks!

Re: new mod/hack: logging of frontend user activity

Posted: Sat 10. Jul 2004, 21:03
by gfailure
andreas12345 wrote:I've created this one over the last few days - it's in... let's say alpha-stadium. How do you consider it?

Download here

The first and main feature of this mod is to implement a logging of frontend-user activity within phpwcms - or in other words: Giving answers to questions like: "What articles and categories are visited by the surfers?", "What browser is used more often than others?", "Which native language may my visitors have?".

Apart from that, the mod also includes a small administration menu into your frontend. You have to logon to the backend, and with this session open (not logging off) you can now visit your frontend (I've included a link to the index.php on the backend's startpage.).

On the upper left corner you'll now find ">>" if you move your mouse towards the left edge there will appear a menu with the entries "edit category" (only if not home), "edit article", "go to backend" and "logoff"... try it, it's handy!
Hello Andreas,
I tried to install mod_frontendlog....but I have a little question...

Code: Select all

case "modules":	//modules
						$wcsnav["modules"] = "<strong class="navtexta">".$wcsnav["modules"]."</strong>";
						if($phpwcms["gt_mod"]) { //enabled/disable GT MOD
							$subnav .= subnavtext($BL['be_subnav_graphicaltext_mod'], "phpwcms.php?do=modules&p=2", $p, "2", 0);
							$subnav .= subnavtext($BL['be_subnav_frontendlog_mod'], "phpwcms.php?do=modules&p=9", $p, "9", 0); #mod_frontendlog
						     }
case "9":              //frontendlog    include_once "./include/inc_module/mod_frontendlog/main.inc.php";
is this OK?? I have the graphical text mod already installed.

My admin area on MODULES looks like this:

Graphical Text ->
Frontend Logging ->

But when I click Frontend Logging nothing happens ....

what did I do wrong?

thanks,
G.

Posted: Sat 10. Jul 2004, 21:41
by Pappnase
hello

maybe it don`t work with RC4!? :?

another thing....

Posted: Sat 10. Jul 2004, 22:33
by gfailure
I figured out somehow....
Once it appeared on my INDEX....but that's all
after one refresh it dissapeared.

I tried to install it again from the start....
and it gives me an error in the MODULES menu when I click on Frontend Logging:

Code: Select all

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /www/htdocs/clan/include/inc_module/mod_frontendlog/main.inc.php on line 5
and I opened main.inc.php and the line 5 looks like this:

Code: Select all

if(mysql_num_rows($res)>0) {
WHAT'S WRONG??????

That MySQL-error

Posted: Sun 11. Jul 2004, 00:25
by andreas12345
Hi gfailure!

Did you run the sql-code with create table that came along in the package?! It's reason number one for these probs...

Regards... Andreas

....

Posted: Sun 11. Jul 2004, 01:10
by gfailure
Finnaly Andreas,
yes I've ran all the SQL code...
the only problem is that all the PHPWCMS SQL structure is installed with the "re_" prefix...like re_phpwcms_users etc...
and I've ran your SQL as it was default...and I've tried to change every table variable in your code so it fits my isntallation.

I saw now that it is working but that >> thing appears only when I'm logged in as admin....
I still have that MySQL error in the MODULES section though

HOW CAN I INCLUDE A LOGIN SECTION TO ONE OF MY ARTICLES>....?
Whitch are the files that should be changed to modify BACKEND's look?

thanx,
G.