![]() |
Log user ip every visit
Is ther a hack that could log the users ip every visit so we could see alle the ips there using like if they have more then one pc?
I think it would help when banning members. |
It's already built in. Admin CP > Users > 'find user' > Quick User Links (dropdown at the top of the user page) > View IP Addresses.
|
I think he means every visit, not just when people post.
|
Quote:
|
Bump?
|
ok one more bump then i give up Im sure a coder could figer this out eazaly
|
And what should it do, every IP used once? Or every single time time he visits complete with timestamp? Every pageload logged seperate?
|
the ip finder logges each ip a user logs in with, if u want how many time that may be a tiny hack but not needed
|
It could be done, but it would probably add 1 or 2 queries to every page load.
|
and in reality is pretty pointless
|
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.
|
a session logger is what we need
username, ip, date |
Quote:
|
Quote:
|
All times are GMT. The time now is 01:24 AM. |
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:
|