yes i did - but its all empty.
Announcement
Collapse
No announcement yet.
[RELEASE:all] Moderator Activity Logging
Collapse
X
-
Just curious if this script is going to have any further updates?
I have noticed a few bugs in it:
Moderators with custom titles do not list in the log, however their actions do.
Closed threads do not log which forum they were closed in.
Moved threads do not show the destination forum.
Deleted Threads do not show the forum they were deleted from.
I believe I am running vB 2.0.0 on a 2k machine with mySQL 3.23.32 and PHP4.0.5 .
If someone could help me with a fix for these bugs I would greatly appreciate it.
Comment
-
yeah I have the same problems as ShadowTech.. I tracked down the problem with nothing being filled in under the 'from' and 'to' columns... when a post is moved/deleted/copied, there are no values being filled in to the database under 'toforumid' and 'fromforumid'... I decided to fill these values in manually for a couple of database records, and whalla the correct forum names appear.... but how can I make the necessary changes in postings.php so that these values get filled in correctly? I just d/l'ed and installed the latest version today (overgrow's version - no other mods added)..
Comment
-
Here is what I did to fix this, hope I can explain it well. I haven't done the issue with the moderator with custom titles yet, but I'll work on it later.
Remeber : I'm by no means good at PHP
This is all in postings.php
Find (in the open /close thread block):
PHP Code:$DB_site->query("INSERT INTO modlog (type,userid,threadid,threadtitle,fromforumid,toforumid,timestamp)
VALUES ('$threadinfo[open]','$bbuserid','$threadid','".addslashes($threadinfo[title])."','$forumid','','".time()."')");
PHP Code:$DB_site->query("INSERT INTO modlog (type,userid,threadid,threadtitle,fromforumid,toforumid,timestamp)
VALUES ('$threadinfo[open]','$bbuserid','$threadid','".addslashes($threadinfo[title])."','$threadinfo[forumid]','','".time()."')");
PHP Code:$DB_site->query("INSERT INTO modlog (type,userid,threadid,threadtitle,fromforumid,toforumid,timestamp)
VALUES ('2','$bbuserid','$threadid','".addslashes($threadinfo[title])."','$forumid','','".time()."')");
PHP Code:$DB_site->query("INSERT INTO modlog (type,userid,threadid,threadtitle,fromforumid,toforumid,timestamp)
VALUES ('2','$bbuserid','$threadid','".addslashes($threadinfo[title])."','$threadinfo[forumid]','','".time()."')");
PHP Code:updateforumcount($threadinfo[forumid]);
PHP Code:$movefrom=$threadinfo[forumid];
PHP Code:updateforumcount($forumid);
PHP Code:$moveto=$forumid;
PHP Code:$DB_site->query("INSERT INTO modlog (type,userid,threadid,threadtitle,fromforumid,toforumid,timestamp)
VALUES ('3','$bbuserid','$threadid','".addslashes($threadinfo[title])."','$curforumid','$movetoforumid','".time()."')");
PHP Code:$DB_site->query("INSERT INTO modlog (type,userid,threadid,threadtitle,fromforumid,toforumid,timestamp)
VALUES ('3','$bbuserid','$threadid','".addslashes($threadinfo[title])."','$movefrom','$moveto','".time()."')");
Comment
-
How would I make it so that you must be at least a moderator to access the log?
Comment
-
I got around this problem by just making another directory inside the admin directory.. then I copied config.php, modlog.php, and db_mysql.php into it.. Now you can use htaxx to lock the modlog directory...
then once you lock the directory, you can save a bookmark to get to it.. like this:Code:http://username:[email protected]www.yoursite.com/board/admin/modlog/modlog.php
(ie so instead of using href=\"../showthread.php?etc" you would change it to href=\"/board/showthread.php?etc" or whatever your board's root dir is)
anyway that's how I did it... if anyone has a better way let me know
UPDATE: I forgot.. you can make it so that only modlog.php is needed inside your modlog dir (and not config.php and db_mysql.php).. open up your modlog.php, and towards the begining of the file make these changes:
find:PHP Code:require("./config.php");
PHP Code:require("../config.php");
PHP Code:$dbclassname="./db_$dbservertype.php";
PHP Code:$dbclassname="../db_$dbservertype.php";
Last edited by debsync; Wed 25 Jul '01, 8:10pm.
Comment
-
Moderator table cell is empty?
Hi,
sorry for being late on this, but I just got PHP4 installed (slow provider...)
I installed the hack from Zarkov's additions, added JoshFink extras and it seems to work fine.
I noticed to things though:
1) The Moderator table is empty if I access modlog.php making this hack quite senseless on my site
2) I deleted a thread and it showed up under "Moved threads"
Checked postings.php
PHP Code:deletethread($threadid,0);
// modlog hack
$DB_site->query("INSERT INTO modlog (type,userid,threadid,threadtitle,fromforumid,toforumid,timestamp)
VALUES ('2','$bbuserid','$threadid','".addslashes($threadinfo[title])."','$threadinfo[forumid]','','".time()."')");
// /modlog hack
eval("standardredirect(\"".gettemplate("redirect_deletethread")."\",\"forumdisplay.php?s=$session[sessionhash]&forumid=$threadinfo[forumid]\");");
}
And the modlog.php
PHP Code:case("2"):
$deleted[$log[timestamp]] = array("type"=>"2", "userid"=>"$log[userid]", "threadid"=>"$log[threadid]", "title"=>"$log[title]", "username"=>"$log[username]",
Thanks in advance,
-TomLast edited by Thomas P; Sat 28 Jul '01, 12:32am.http://www.mcseboard.de/images/buttons/lastpost.gif www.MCSEboard.de
German Windows Server & IT Pro Community dedicated to Windows Client & Server Systems. MVPs inside
Comment
Related Topics
Collapse
-
by CarrfixrI would like to give a user moderator permissions for one channel only. What steps need to be taken to do this? I already have a global site moderator but never had a single channel moderator
T...-
Channel: vB Cloud Support & Troubleshooting.
Mon 4 Jun '18, 6:05am -
Comment