new mod/hack: logging of frontend user activity

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
Post Reply

How do you consider the idea behind mod_frontendlog?

really important
10
67%
fine
3
20%
could be worse
0
No votes
not so useful
1
7%
totally unnecessary
1
7%
 
Total votes: 15

andreas12345
Posts: 16
Joined: Thu 15. Apr 2004, 11:47
Location: Berlin, Germany
Contact:

new mod/hack: logging of frontend user activity

Post 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!!!
Last edited by andreas12345 on Sat 24. Apr 2004, 15:36, edited 1 time in total.
User avatar
pSouper
Posts: 1552
Joined: Tue 11. Nov 2003, 15:45
Location: London
Contact:

Post 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. :)
cmslover
Posts: 86
Joined: Wed 18. Feb 2004, 16:17
Location: USA, Georgia, Atlanta
Contact:

Post by cmslover »

Cool! Does it work with RC3?

Thanks!
gfailure
Posts: 7
Joined: Wed 7. Jul 2004, 06:31
Contact:

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

Post 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.
Pappnase

Post by Pappnase »

hello

maybe it don`t work with RC4!? :?
gfailure
Posts: 7
Joined: Wed 7. Jul 2004, 06:31
Contact:

another thing....

Post 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??????
andreas12345
Posts: 16
Joined: Thu 15. Apr 2004, 11:47
Location: Berlin, Germany
Contact:

That MySQL-error

Post 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
gfailure
Posts: 7
Joined: Wed 7. Jul 2004, 06:31
Contact:

....

Post 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.
Post Reply