Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Oct 2001
Posts: 157
Member
Member
Offline
Joined: Oct 2001
Posts: 157
I suspect someone not authorised is reading the moderators forum (somehow). is there any way to log who all accessed a particular forum?


Yors Truly

Who? Me? Worry?
Sponsored Links
Joined: Nov 2002
Posts: 554
Code Monkey
Code Monkey
Offline
Joined: Nov 2002
Posts: 554
version?

Joined: Oct 2001
Posts: 157
Member
Member
Offline
Joined: Oct 2001
Posts: 157
6.2.3


Yors Truly

Who? Me? Worry?
Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
The only way I can think of is to put a small logger (file logger would do) using the error_log php function.

You create a file on your computer (empty text file) and you upload it on your site. You make the file writeable. Then in the showflat and showthreaded files you introduce the logging facility using as the output source the text file you have just uploaded (make sure the path and name of the file passed to the error_log function are correct.

You can collect any number of data and regarding the user that reads that forum. One of them would be their IP address, time etc. A simple if statement can restrict logging only to the board you are interested in.


Nikos
Joined: Nov 2002
Posts: 554
Code Monkey
Code Monkey
Offline
Joined: Nov 2002
Posts: 554
couldn't he also turn on a function within SQL to do this as well? I know that MySQL has different levels of logging as well as Apache but I am not as familiar with eithers functions.

Sponsored Links
Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
I haven't explored that but you will run to the following problems:
1- You need to have access to the MySQL installation and be able to increase/decrease logging and restart the service
2- The way UBBT is programmed is that only one user accesses the database and in the database other "virtual" users exist to access the board. If you introduce logging in the database then you will only get the user that connects to the database and not the users that log into the forum.


Nikos
Joined: Nov 2002
Posts: 554
Code Monkey
Code Monkey
Offline
Joined: Nov 2002
Posts: 554
He could create a dummy thread with a link to an unknown page in that particular forum. That would then generate an error message within Apache which would log IP address trying to access "page not found" (or whatever error) then he could compare IP addresses to users. Not sure if this is the long way to do it but it was an idea.

Joined: Oct 2001
Posts: 157
Member
Member
Offline
Joined: Oct 2001
Posts: 157
thanks guys, trying the 1st and 3rd options out as I am always nervous trying to touch SQL.


Yors Truly

Who? Me? Worry?
Joined: Nov 2002
Posts: 554
Code Monkey
Code Monkey
Offline
Joined: Nov 2002
Posts: 554
Let me know if it works as I am curious


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)