The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#92
|
||||
|
||||
Quote:
|
#93
|
|||
|
|||
Works perfect on 2.2.7
|
#94
|
|||
|
|||
Fantastic Mod. Thanks!
|
#95
|
||||
|
||||
it work great! 2.3.0
Quote:
I added a tracking log for "edit" feature, for all member: Also add IP tracking to the log. execute Code:
ALTER TABLE `modlog` ADD `postid` int(10) DEFAULT '0' NOT NULL AFTER `threadid`; // ------ ADD IP log ---------- ALTER TABLE `modlog` ADD `ipaddress` varchar(20) NOT NULL; find Code:
eval("standardredirect(\"".gettemplate("redirect_editthanks")."\",\"showthread.php?s=$session[sessionhash]&postid=$postid#post$postid\");"); Code:
// MOD LOG $DB_site->query("INSERT INTO modlog (type,userid,threadid,postid,threadtitle,fromforumid,toforumid,timestamp,ipaddress) VALUES ('4','$bbuserinfo[userid]','$threadinfo[threadid]','$postid','".addslashes($threadinfo[title])."','$threadinfo[forumid]','','".time()."','".$HTTP_SERVER_VARS['REMOTE_ADDR']."')"); ------- add IP LOG ------------- in posting.php, find Code:
// MOD LOG $DB_site->query("INSERT INTO modlog (type,userid,threadid,threadtitle,fromforumid,toforumid,timestamp) VALUES ('2','$bbuserinfo[userid]','$threadid','".addslashes($threadinfo[title])."','$threadinfo[forumid]','','".time()."')"); Code:
// MOD LOG $DB_site->query("INSERT INTO modlog (type,userid,threadid,threadtitle,fromforumid,toforumid,timestamp,ipaddress) VALUES ('2','$bbuserinfo[userid]','$threadid','".addslashes($threadinfo[title])."','$threadinfo[forumid]','','".time()."','".$HTTP_SERVER_VARS['REMOTE_ADDR']."')"); Code:
// MOD LOG $DB_site->query("INSERT INTO modlog (type,userid,threadid,threadtitle,fromforumid,toforumid,timestamp) VALUES ('3','$bbuserinfo[userid]','$threadid','".addslashes($threadinfo[title])."','$checkforum[forumid]','$forumid','".time()."')"); Code:
// MOD LOG $DB_site->query("INSERT INTO modlog (type,userid,threadid,threadtitle,fromforumid,toforumid,timestamp,ipaddress) VALUES ('3','$bbuserinfo[userid]','$threadid','".addslashes($threadinfo[title])."','$checkforum[forumid]','$forumid','".time()."','".$HTTP_SERVER_VARS['REMOTE_ADDR']."')"); Code:
// MOD LOG $DB_site->query("INSERT INTO modlog (type,userid,threadid,threadtitle,fromforumid,toforumid,timestamp) VALUES ('$threadinfo[open]','$bbuserinfo[userid]','$threadid','".addslashes($threadinfo[title])."','$threadinfo[forumid]','','".time()."')"); Code:
// MOD LOG $DB_site->query("INSERT INTO modlog (type,userid,threadid,threadtitle,fromforumid,toforumid,timestamp,ipaddress) VALUES ('$threadinfo[open]','$bbuserinfo[userid]','$threadid','".addslashes($threadinfo[title])."','$threadinfo[forumid]','','".time()."','".$HTTP_SERVER_VARS['REMOTE_ADDR']."')"); replace the modlog.php file by the attached file If you want to limite the log to mod (1 group only), you may add something like IF ($bbuserinfo[group]=(#groupID)) { .... } around the logging part (DID NOT TEST) have fun |
#96
|
|||
|
|||
I can't get it to work on 2.2.9. I did everything as directed in install_modlog.php. The modlog table got created and there is a link to modlog.php in the Admin CP but nothing ever gets logged
Nevermind. I was trying to edit a post and then realized that there is not edit logging. I added a few lines to editpost.php and modlog.php to include edits. Thanks Overgrow! |
#97
|
||||
|
||||
Great it works perfectly on 2.3.0 at once
Install clicked One silly question: Why don't I see the 'from forum id' in the moved list ?? Cheers |
#98
|
|||
|
|||
Hi mtha,
Quote:
Code:
ALTER TABLE `modlog` ADD `postid" int(10) DEFAULT '0' NOT NULL AFTER `threadid`; Quote:
|
#99
|
||||
|
||||
Quote:
The error should be because of the `postid" please change that to `postid` PHP Code:
let me know if it works |
#100
|
||||
|
||||
dah, the addon was for my board, which has mucho hacks already. I fixed the modlog.php above, you can redownload it now.
Quote:
Quote:
please search for realname and change it to username, this problem should be fixed. line 71 in modlog.php : Quote:
|
#101
|
||||
|
||||
Overgrow, it'd be cool if you can add some option to
- "download" the log file, before delete it. The file could be in txt or html format. - view x logs in a page, so you can view next pages without having it too long - delete logs older than x days, so you still can keep the recent logs. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|