vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Moderator Activity Logging (updated) (https://vborg.vbsupport.ru/showthread.php?t=35585)

subu1 10-25-2002 08:02 PM

installation ok, but i have the same Problem on my Version 2.2.7 and i make yourself a link on the left cp side and sorry not logs :-( but i want this great Hack

SoloX 12-24-2002 05:53 PM

Quote:

Originally posted by hellsatan
3.) Would it be possible to include a code for Posts that have been deleted, not just threads...
anyword on this feature? please.

350Chevy 12-27-2002 05:45 AM

Is there a way to track edited posts, deleted posts, moved threads/posts, split threads/posts, edited user profiles and deleted users? Now THAT would be an awesome logging system for Admin and Mods. :)

Also when I click clear logs it does nothing. ??

mak 12-28-2002 10:25 PM

i can't seem to make this work on 2.2.8--

i had the old version installed before and it worked fine. when i upgraded, only the previous logs were there. no new logs. i closed, opened, deleted etc and still won't log my activities.

i uploaded modlog.php again.. all the old logs dissappeared but still won't update.
i edited the clear logs instructions above--- still nothing happens.

any help will be appreciated. thanks.

yzztik 01-08-2003 12:29 AM

anyone know how I could add a dropdown to the top of the modlog page that fills with the names of the mods that have something logged so you can jump to just their logs? I know you can click on a name of a mod to go to just their logs, but if they arent on their till like a couple of pages I have to find a page that they are in before doing that. It would be nice if I could just jump straight to a person. How easy is this to do?

neocorteqz 01-08-2003 07:12 AM

Working great on 2.2.9.

Quote:

Originally posted by SoloX


anyword on this feature? please.

Yes, this would be a great feature.:)

VAN 01-29-2003 04:03 AM

*edit

Nervermind. Works great on 2.2.9 :)

Thanks OG!

sabret00the 02-25-2003 12:23 PM

how would i go about getting it to log poll editing?

Davey 02-25-2003 02:01 PM

Quote:

Originally posted by camoboy
This addition would be very helpful

One of our mods has been going round deleting posts, not threads and they don't get logged, so I can't work out who.

Once I find out they're ganna be slapped back down to Registered Member, but this would help a lot.

You can check this already.
Just look at the admin log.
If you're not userid '1', ask the founder of the forum to add your userid to the 'can view admin log' config variable, then search the log for the mod who's been deleting the posts...

Dave.

pgowder 02-27-2003 05:11 PM

Quote:

Originally posted by Davey

You can check this already.
Just look at the admin log.
If you're not userid '1', ask the founder of the forum to add your userid to the 'can view admin log' config variable, then search the log for the mod who's been deleting the posts...

Dave.

I tried that, but the log only shows my activities???

350Chevy 03-09-2003 05:48 PM

Quote:

Originally posted by pgowder


I tried that, but the log only shows my activities???

Yes, those logs only show ADMIN activities.. not Moderators. Davey may have been a little confused.

Cyberhouse 03-11-2003 06:53 AM

Works perfect on 2.2.7 :cool:

mharmon 03-20-2003 12:50 AM

Fantastic Mod. Thanks! :)

mtha 03-20-2003 08:04 PM

it work great! 2.3.0



Quote:

04-30-02 at 07:28 PM hellsatan said this in Post #60
@CJi...

Yes it does...

We have it installed on our vB 2.2.5, and it works perfectly...

3 Things Overgrow - 2 have already been suggested, but either you missed them or dont know...

1.) Would it be possible to include an "edit" feature, to show posts that were edited by mods
2.) Would it be possible to exclude admins from the log
3.) Would it be possible to include a code for Posts that have been deleted, not just threads...

Satan


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;

in editpost.php
find
Code:

  eval("standardredirect(\"".gettemplate("redirect_editthanks")."\",\"showthread.php?s=$session[sessionhash]&postid=$postid#post$postid\");");
ADD BEFORE

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()."')");

REPLACED BY

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']."')");

FIND
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()."')");

REPLACED BY
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']."')");

FIND
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()."')");

REPLACED BY

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

Ph0eniX 03-31-2003 03:05 PM

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!

SmartGnome 04-09-2003 02:21 PM

Great it works perfectly on 2.3.0 at once :D

Install clicked :D


One silly question:

Why don't I see the 'from forum id' in the moved list ??


Cheers

JeffyJoe 04-16-2003 07:16 AM

Hi mtha,

Quote:

03-20-03 at 11:04 PM mtha said this in Post #94
it work great! 2.3.0

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;


I am gettin an error running this query:
Code:

ALTER TABLE `modlog` ADD `postid"  int(10) DEFAULT '0' NOT NULL AFTER `threadid`;
this is the error:
Quote:

Database error in vBulletin Control Panel 2.3.0:

Invalid SQL: ALTER TABLE `modlog` ADD `postid" int(10) DEFAULT '0' NOT NULL AFTER `threadid`;
mysql error: You have an error in your SQL syntax near 'threadid`' at line 1

mysql error number: 1064

mtha 04-16-2003 10:48 PM

Quote:

Today at 08:16 AM JeffyJoe said this in Post #97
Hi mtha,



I am gettin an error running this query:
Code:

ALTER TABLE `modlog` ADD `postid"  int(10) DEFAULT '0' NOT NULL AFTER `threadid`;
this is the error:


The error should be because of the `postid"
please change that to `postid`


PHP Code:

ALTER TABLE `modlogADD `postid"  int(10) DEFAULT '0' NOT NULL AFTER `threadid`

Sorry I for the typo :p

let me know if it works

mtha 04-17-2003 08:40 AM

dah, the addon was for my board, which has mucho hacks already. I fixed the modlog.php above, you can redownload it now.

Quote:

Database error in vBulletin Control Panel 2.3.0:

Invalid SQL: ALTER TABLE `modlog` ADD `postid` int(10) DEFAULT '0' NOT NULL AFTER `threadid`;
mysql error: Duplicate column name 'postid'

mysql error number: 1060
You already have the column 'postid' created somehow. Check the table modlog in your database, to make sure that you have it right. If so (and if your database isnt corupted), you dont have to do anything else. otherwise, just delete that column, and add it again.


Quote:

Database error in vBulletin Control Panel 2.3.0:

Invalid SQL: SELECT type,modlog.userid as userid,modlog.threadid as threadid,modlog.postid as postid,fromforumid,toforumid,modlog.timestamp as timestamp,modlog.ipaddress as ipaddress,threadtitle, user.realname as username
FROM modlog
LEFT JOIN user ON modlog.userid = user.userid

ORDER BY modlog.timestamp DESC
LIMIT 0,25
mysql error: Unknown column 'user.realname' in 'field list'

mysql error number: 1054
dah, I have something called realname, instead of username, that's why.

please search for realname and change it to username, this problem should be fixed.


line 71 in modlog.php :
Quote:

$logs=$DB_site->query("SELECT type,modlog.userid as userid,modlog.threadid as threadid,modlog.postid as postid,fromforumid,toforumid,modlog.timestamp as timestamp,modlog.ipaddress as ipaddress,threadtitle, user.username as username

mtha 04-21-2003 07:11 AM

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.

Jing 04-26-2003 01:31 AM

very cool hack!! :)

Thanks overgrow and mtha :) works liek a charm..

Hobbes 04-26-2003 08:35 PM

when i try to access modlog.php in my admin cp, i get this error:

PHP Code:

Fatal errorCall to undefined function: modlog() in /home/virtual/site31/fst/var/www/html/admin/modlog.php on line 185 

any help would be greatly appreciated ! :banana: :p :p :p ! :eek:

Hobbes 04-28-2003 04:22 AM

Buuump...!

lioncool1589 04-28-2003 05:14 AM

i wonder if this also log super mod

Hobbes 04-29-2003 02:32 AM

I think it logs all entrys into the mod cp....althuogh I am thoroughly unsure..

btw, i find that im always unsure on vb.org since i never know if im right..:p

Katryna 05-04-2003 07:07 PM

I have ver 2.3.0 and I have tried installing this but the only people it seems to want to log are the admins. Is this just not working on my ver or might I be doing something wrong.

Thanks for any help in advance.

Oh and I'm still getting everything set up before I open :laugh:

Xyphen 05-19-2003 10:45 PM

Does this thing log when a user is banned by a moderator?

Cuz recently, some of the members of mine got banned and they were by one of the supermods, can't figure out which one, they all say they didn't do it.

Hobbes 05-27-2003 03:56 AM

this hack has almost no support.....i had to figure how to fix it all by my lonesome self.....heh =\ =\ =\...

it log closed, moved, opened, deleted threads and posts...

...

Malfunktion 06-11-2003 01:55 AM

how do i uninstall it?

Malfunktion 06-11-2003 02:01 AM

n/m

0zone 06-30-2003 05:20 AM

So, this hack does log deleted posts? Not just threads, but posts as well?

Roody 07-10-2003 02:29 PM

I still have this hack installed, but when I upgraded to 2.3.0 I lost it in my admin panel. The only way I can access it now is by actually typing modlog.php in my address bar. How can I add it back to the statistics and logs section?

Also, for knowledge purposes how do you go about uninstalling this hack?

mossyuk 07-14-2003 10:33 AM

thanks, installed.

Hobbes 08-09-2003 04:37 AM

Quote:

06-29-03 at 11:20 PM 0zone said this in Post #111
So, this hack does log deleted posts? Not just threads, but posts as well?
Yea, it logs deleted threads, not posts though.

To uninstall, I THINK ...

(1) drop the table "mod log" from your database.

(2) undo all edits done to postings.php

----

should work, if not...sowwie =P

Set 08-09-2003 11:41 AM

Hi all,

on vb 2.3.0, this is the error:

----------------------------

Database error in vBulletin Control Panel 2.3.0:

Invalid SQL: SELECT type,modlog.userid as userid,modlog.threadid as threadid,modlog.postid as postid,fromforumid,toforumid,modlog.timestamp as timestamp,modlog.ipaddress as ipaddress,threadtitle, user.username as username
FROM modlog
LEFT JOIN user ON modlog.userid = user.userid

ORDER BY modlog.timestamp DESC
LIMIT 0,100
mysql error: Unknown column 'modlog.ipaddress' in 'field list'

mysql error number: 1054

--------------------

Can you help me?
Thanks to all :)

Set 08-10-2003 09:15 AM

up... please :( :(

Set 08-11-2003 11:48 AM

Nothing???? :( :(

DannyBoy8406 08-13-2003 07:02 PM

Does this record the IP address that the moderator was on at the time the actions was recorded?

chuckc 09-05-2003 01:26 AM

Seems we have a new problem on our board. Don't know if it started before or after we installed this hack, but we think it started after.

Problem:

A member starts a thread in the proper forum, but the thread appears in a different forum.

For instance, if this thread was started in the Full Releases forum, it might have shown up in Site feedback or the General Hacking forum. It's random and unpredictable, plus we can't force it to happen.

chuckc 09-05-2003 01:32 AM

For all those who asked:

No, it does not show IPs.

The hack shows some activities of moderators and admins:

Deleted threads w/ titles, who did it, what forum it was deleted from, and the date/time.

Moved threads w/titles, who did it, from which forum to which forum, and date/time. It also shows COPIED threads as being MOVED, when in fact the thread was only copied.

The hack does not show individual post deletions by the poster or by admins or mods, but I think I saw a couple of pages back that you can add that feature for admins and mods only. You have to go rad all the posts - I'm going to bed.

All in all it's a good hack - solves the problem we had with the not-me we always got when a thread disappeared. Except for the mis-placed threads problem I mentioned in the previous post.


All times are GMT. The time now is 02:48 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
  • Page Generation 0.01455 seconds
  • Memory Usage 1,845KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (12)bbcode_code_printable
  • (2)bbcode_php_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete