![]() |
Quote:
|
Hi
Just create a directory out of the server web root to store the log then just log ip's into that, then every hour run a cron to add them to the database if you want to do that or if you just want to log it into the database create a table and do it that way.... example.... log into the database! create a table... Code:
CREATE TABLE visitors ( Open global.php FIND THIS LINE... Code:
require_once('./includes/functions.php'); Code:
include_once ( './includes/functions_visitors.php' ); Go to ./includes/ Open functions.php FIND THIS LINE... Code:
$output = process_replacement_vars($vartext, $sendheader); RIGHT BELOW IT ADD Code:
log_write ( strlen ( $output ) ); In that same directory './includes/' create a file called... Code:
functions_visitors.php In that file paste the following code! Code:
<?php It will log UNIQUE VISITORS, total pages viewed, total bandwidth used and their last visit time! Note if your using a table PREFIX be sure to add the PREFIX to the CREATE table and the keys before creating the table! If you want to know how to add a simple viewer in the Admin Panel to view the log, just ask and I will show you how simple it is! It will have to be tomorrow evening as I have no time now, busy reading at the moment!!! Sonia |
"LOGIN LOG" mod does this already!!
search here for the keyword login log. |
Quote:
Sonia |
Cool :ermm:
|
thank you Sonia
Quote:
|
Quote:
|
Quote:
|
I could also use it. My site is a specific career orientated forum, and members post things like payscale comparisons & job problems.
I'd love to see a mod where it would show a log of all IP addresses that visited the site, not just the ones that logged in. If a user posts something about "ABC company", then I want to see if any IP addresses of "ABC company" have visited the forum, even as just a guest. |
Is there a way for this to log to a text file, maby comma seperated? This is exactly what I've been looking for.
|
All times are GMT. The time now is 07:07 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:
|