Gossamer Forum
Home : Products : DBMan : Customization :

logging question...

Quote Reply
logging question...
I'm running a membership db.. and would like to log users when they load the home/main page.. however.. I don't want it to log after doing an action.. but I do want it to log the user when the page is viewed (loaded)..

Reason for this is.. I want to be able to read in this logged file as a type of online (or last online) type thing.. showing the membername.. date and time the member last viewed thier homepage.. and then to display this information on the home/main page.. sort of like a last 5 or 10 online users..

can this be done?

------------------
-----------
millsie :)
Quote Reply
Re: logging question... In reply to
You may be able to use a third party logging program that logs hits on web pages within DBMAN. It may be complicated to do within DBMAN (plus the overhead on processing that information in DBMAN may be a lot)...But Carol might have some suggestions.

Try looking for a log program over at cgi-resources.com.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us

[This message has been edited by Eliot (edited September 01, 1999).]
Quote Reply
Re: logging question... In reply to
The problem isn't really with getting or saving the logging information. The problem is more with limiting the log files to the last 5 or 10 users.

First I need to know if you are allowing members to only view their own pages -- auth_view_own=1. That will help me to know how to proceed.



------------------
JPD





Quote Reply
Re: logging question... In reply to
Hi Smile
Quote:
First I need to know if you are allowing members to only view their own pages -- auth_view_own=1. That will help me to know how to proceed.

No carol.. **auth_view_own=0** in all of my db's
(currently running two db's - *profiles and mail* with an intention to add one or two more at a later date.. but **auth_view_own=0** will be in all of them..


------------------
-----------
millsie :)
Quote Reply
Re: logging question... In reply to
Okay, then, do you only want to log the action when a user views his own page or when others do?

Do you want just

"Fred viewed his page on 03-Sep-1999 at 10:43 a.m"

or do you want

"Wilma viewed Fred's page on 03-Sep-1999 at 10:43 a.m"


------------------
JPD





Quote Reply
Re: logging question... In reply to
Okay...

I would like to achieve the following goal..

just for info purposes.. I'm using the 'delete form' (in the dbmail db) as the main page.. (mainly because it was much easier to code what I needed to do for the mail database)

I only want to log views to own homepage..
as below..

"Fred viewed his page on 03-Sep-1999 at 10:43 a.m"

I wanted to be able to call in the last 10 users to be displayed on the homepage.. like below..


User Date Time
----------------------------
Fred 03-Sep-1999 10:43am
betty 03-Sep-1999 10:37am
matt 03-Sep-1999 10:31am

and so on...

also.. a last 100 users with the same format on a seperate page.. as above..

To get an idea of the homepage.. your more than welcome to check out the database..

http://egomaster.virtualave.net/cgi-bin/db.cgi?login_form=1

use..
username = 'butch'
pw = 'butch'


don't worry.. this is a dummy login that I use to test out the db Smile

Ignore the cosmetics.. that'll come later.. and hope you don't mind frames.. after 6 weeks of hairpulling (not that I have that much) I finally got frames to work in the db Smile Smile Smile Smile

thanks for taking the time to help me on this Smile



------------------
-----------
millsie :)
Quote Reply
Re: logging question... In reply to
This is one I'm going to have to think about a little more. Smile


------------------
JPD





Quote Reply
Re: logging question... In reply to
I wonder if duplicating the modify routine , hiding the fields and replacing the 'open' statement would work?

------------------
-----------
millsie :)