PDA

View Full Version : Moderator Activity Logging (updated)


Overgrow
03-01-2002, 10:00 PM
<font size="3">Moderator Activity Log for 2.x</font>

Disclaimer:

-No support is offered for this hack. If you PM or email for support, it will be joyfully ignored. When I have time, I will answer questions in this thread.

** FREE LICENSE ** You must leave the header and footer intact.

Design Spec:

Track moderator and admin activites including: closing, opening, moving, and deleting threads. You are able to set the number of logs you view at one time and you can focus down to just one moderator by clicking on their name.

Installation (never had ModLog installed):

-upload install_modlog.php to your admin directory
-upload modlog.php to your admin directory
-run install_modlog.php, follow instructions
-delete install_modlog.php

Installation (have a previous version running successfully):

-upload modlog.php to your admin directory

Changes from the previous version:

-now has a fancy install routine instead of boring text instructions. Installing will now be easier and more fun!

-puts a link on the left side of your Admin CPanel under Admin Logs

Works on:

-vB 2.2.1
-untested on everything else but should work with the whole 2.x line and even 1.x if you figure out the postings.php modifications.

Screenshot attached, files attached in replies. Questions? Read the disclaimer at the top of this post. Thanks~

Overgrow
03-02-2002, 07:21 AM
install_modlog.php

Overgrow
03-02-2002, 07:21 AM
modlog.php (updated to fix htmlheader problem 03-12)

SWFans.net
03-02-2002, 09:29 AM
Thanks for the update to a great hack. :)

nafae
03-02-2002, 03:20 PM
yes I am about to install this. I jump for joy!

Psychdrone
03-02-2002, 05:03 PM
Originally posted by nafae
yes I am about to install this. I jump for joy!
ditto

nafae
03-02-2002, 07:32 PM
I just wanted to say I installed it and it works PERFECTLY~THANK YOU!

But, how typical, I have a question: I have the "bump without post-moderator version" installed -Does anyone know how I could add to this hack to encompass this hack so it would say something like: "Bumped Threads W/O Post:"

Just another thanks to Overgrow for updating this hack for 2.2!!

Twig Deez
03-02-2002, 08:17 PM
groovy. :)

streamzone
03-03-2002, 12:27 AM
great work on this hack. i installed it flawlessly. i dont see an option for it in admin cp but i just did the http://www.xxxxxxxx.net/xxxxxx/admin/modlog.php to use it.

thanx

Lucky
03-03-2002, 12:34 AM
This is just what I have been looking for!

Thank you Overgrow.

Just a quick question though?
I have the logs set to max logs at 10.
So by that does this mean that it will always store 10?
I have run a test and have tried to clear all logs, but it won't.
Am I right in assuming that the logs will always store the minimum amount of logs such as 10?
Or when deleting all should all logs be deleted?

That is all.

TIA

Overgrow
03-03-2002, 03:26 AM
I think if you follow all directions (modifying admin/index.php) that you should have an entry for it in the Cpanel-- it will be below the Admin Logs.

>>I have run a test and have tried to clear all logs, but it won't.

Usually when people had problems with this it was because it uses a javascript onchange or something.. I forget..

>>So by that does this mean that it will always store 10?

No, it will store an infinite amount of records until you clear out the table. (You can do this manually with the empty command from phpMyAdmin or mySQLFront).

When you select 10, 25, or 100 that is the amount of records it will show you on the page, not how many it will store. Hope this helps~

dxb
03-03-2002, 07:46 PM
waaaw I've been waiting for this hack

but I noticed It's still missing the stick/unstick merg/split edit functions

anyway thanks alot overgrow

Overgrow
03-03-2002, 07:48 PM
I don't care enough about those to bother logging em.. if someone wants to write an extension of this hack, feel free, it would be easy.

nafae
03-03-2002, 07:58 PM
yes and the bump w/o post moderator version :)

Lucky
03-03-2002, 08:29 PM
Thanks, I know how to manually delete the logs, but it would be good if that feature worked as it fills up pretty fast. If you know how to remedy this please post as I would really appreciate it.
TIA

Destee
03-04-2002, 04:03 AM
Thanks Overgrow, everything seems to be working fine. Just waiting for a mod to do something (my test mod name isn't logging any activity, but I think that's another issue).

I like my hacks nice and easy like this one! :)

Thanks Again.

Destee

Tarion
03-05-2002, 07:29 PM
i had a problem on V 2.2.1:

Fatal error: Call to undefined function: htmlheader() in /kunden/fanwerk.com/webseiten/vbb2/admin/modlog.php on line 56

the header is still intact and all changes are made i don't know what happend???

Tim Wheatley
03-09-2002, 02:51 PM
This doesn't work for me? I had the old version installed, but stopped using it (didn't delete the sql entries) so I just followed the upgrade instructions... but I just deleted a thread (I'm an admin) and it's not bringing it up...

Tim Wheatley
03-09-2002, 03:00 PM
Weird. I assume changes were made to the table entries between the earlier version and this one?

I manually edited the mysql table and renamed modlog to modlogold, then ran the sql query from inside the install file. Then I've manaually copied the old modlogold data into the new modlog and it works fine. :)

wbc
03-09-2002, 09:57 PM
to delete the logs don´t wotk, can you fix this please

camoboy
03-10-2002, 05:47 PM
Originally posted by Tarion
i had a problem on V 2.2.1:

Fatal error: Call to undefined function: htmlheader() in /kunden/fanwerk.com/webseiten/vbb2/admin/modlog.php on line 56

the header is still intact and all changes are made i don't know what happend??? I get the same problem when viewing modlog.php

Any fix??

Overgrow
03-10-2002, 09:45 PM
>>Call to undefined function: htmlheader()

Sure, upgrade your PHP.. sounds like you're using PHP3.

I'll work on delete logs and other stuff in a bit, thanks.

achilles
03-11-2002, 02:15 AM
I also get the "Fatal error: Call to undefined function: htmlheader()"

Im running PHP 4.1.2


Great hack btw :)

FWC
03-11-2002, 05:26 AM
Well done, Overgrow! :)

Hellburn
03-11-2002, 08:13 AM
I have installed yesterday vB 2.2.4 and install this hack in to. It's working fine but i can not clear the Logs in the cp. At Version 2.2.2 i don't have this Problem. Hope you can help me.

mfg

Hellburn

69-FLy-gUy
03-12-2002, 12:57 AM
it wortks for me.. the only thing i can't get to work is in the moved threads.. the To and From forum... anyone else hasve this problem????

Overgrow
03-12-2002, 08:02 AM
If you cannot clear the logs, open modlog.php, find:

<a href=\"javascript:void(0);\" onClick=\"javascript:if(confirm('Click OK to clear all moderator logs.')) {document.location.href='$PHP_SELF?rt=".time()."&clearLogs=yes&showLimit=$showLimit';}\">CLEAR ALL LOGS</a>

Replace with:

<a href=\"$PHP_SELF?rt=".time()."&clearLogs=yes&showLimit=$showLimit';}\">CLEAR ALL LOGS</a>


If you have the htmlheader() problem, find two times:

HTMLHeader()

replace with

htmlheader()


hope that helps, but who knows :D

Hellburn
03-12-2002, 09:51 AM
When i replace this code i have the follow error:

Parse error: parse error in /is/htdocs/12566/www.***********.com/vbb2/admin/modlog.php on line 232

mfg

Hellburn

Overgrow
03-12-2002, 10:06 AM
That was probably VB's php code thingy messing with the slashes. Try it again with the above code, I removed it from the PHP block.

Hellburn
03-12-2002, 10:34 AM
Now when i wont clear the logs comes this error:

Database error in vBulletin Control Panel 2.2.4:

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

Overgrow
03-12-2002, 10:41 AM
I dont know, it works for me. Can you run that query in phpMyAdmin and see what the real error is?

achilles
03-12-2002, 01:40 PM
Update for anyone having problems with:

"Fatal error: Call to undefined function: htmlheader()"


Open modlog.php

search for this line
//echo "<table border=0 cellspacing=0 cellpadding=4 width=95%>";

and remove it.


Thats it, that fixed it for me... I think for some reason even tho it was commented out php was parsing the semicolon. Not sure exactly, but removing that line fixed the problem for me.

Hope this helps anyone else having the same problem :)

Overgrow
03-12-2002, 02:03 PM
Thanks! How bizarre it happens for 1% of the users.

WhiteKnight
03-12-2002, 08:31 PM
How do I need to modify modlog.php to have an entry written into the adminlog whenever modlog.php is accessed?

Maybe one entry for just viewing the modlog, but more important: an entry whenever the modlog is pruned.

69-FLy-gUy
03-13-2002, 01:08 AM
Hellburn,
Ok. I found the problem with why you were getting that SQL error...

Go to the line that you had to change so the clear logs would work..

When you put this :

<a href=\"$PHP_SELF?rt=".time()."&clearLogs=yes&showLimit=$showLimit';}\">CLEAR ALL LOGS</a>

Notice this part of the above code...

showLimit=$showLimit';}\">

It is missing a \"

It should look like this...

<a href=\"$PHP_SELF?rt=".time()."&clearLogs=yes&showLimit=\"$showLimit;}\">CLEAR ALL LOGS</a>

I highlighted what was missing..

Overgrow. you may want to update your post=))

Do you know why it won't show the to and from parts in the mod log? it doesn't record it??

Hellburn
03-13-2002, 04:56 AM
Thank you this code does work.

mfg

Hellburn

69-FLy-gUy
03-13-2002, 10:43 PM
no problem=)) wow.. i solved a problem.. my first one=) YAAAY! im happy=)

WhiteKnight
03-14-2002, 10:12 AM
Fine, now what about my problem (https://vborg.vbsupport.ru/showthread.php?postid=228896#post228896)? :)

69-FLy-gUy
03-14-2002, 08:00 PM
I don't know how it would look.. but i am guessing that you would have to look in the adminlog and look at how the settings are for how it views all the stuff. then add a similar thing to modlog.... thgat is my guess

69-FLy-gUy
03-14-2002, 08:02 PM
I still dont' know how to fix my problem yet. .lol

Tim Wheatley
03-17-2002, 10:25 AM
How can I have this viewable in the mods cp?

JDD
03-18-2002, 08:40 PM
Hi...

this is a great Hack.. but one further question.. is it possible to log deletion of postings within a thread also?

Greetz
BitByter

Tim Wheatley
03-19-2002, 08:29 AM
Nevermind about my question, I got it doing it, incase anyone else wants mods to be able to see this too:

Open modlog.php,

Search for 'Clear all logs'

delete that.

Upload modlog.php to root/mod

enter a link to modlog inside mod/index.php

This then removes the mods ability to delete their logs, and also means they can see it incase of argument.

Hubsi
03-30-2002, 06:22 AM
big THX for this great hack, it´s wonderfull

greats

Hubsi

kidney
03-31-2002, 05:43 PM
I would like to know why is there a 5 in this add on, it seems to create a problem....

in the third modification in the posting.php

David Bott
03-31-2002, 09:24 PM
Installed on 2.2.4 Very nice and needed. Thanks!

Now if we only had a post recycle-bin for deleted posts and threads. :) Would be a nice addition.

camoboy
04-02-2002, 01:40 AM
Originally posted by JDD
Hi...

this is a great Hack.. but one further question.. is it possible to log deletion of postings within a thread also?

Greetz
BitByter 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.

c-pr0mpt
04-14-2002, 02:01 PM
Wonderful hack Overgrow.

When i ran the install I got a mysql error because of modlog table already existing in the vB database. MY vB version is 2.2.5. Does this hack not work with 2.2.5?

Here is the error exactly as it says,


Database error in vBulletin Control Panel 2.2.5:

Invalid SQL: CREATE TABLE modlog (
type tinyint(1) DEFAULT '0' NOT NULL,
userid int(10) DEFAULT '0' NOT NULL,
threadid int(10) DEFAULT '0' NOT NULL,
threadtitle varchar(100) NOT NULL,
fromforumid smallint(5),
toforumid smallint(5),
timestamp int(11) DEFAULT '0' NOT NULL
)
mysql error: Table 'modlog' already exists

mysql error number: 1050

Date: Sunday 14th of April 2002 10:56:00 AM


Should I delete the current table in there and start over? Thanks for any help from anyone.

Overgrow
04-14-2002, 02:05 PM
Did they add this feature with 2.2.5? Or maybe the forum you're working on already had the old version installed?

If you had a previous version installed, you don't need to do any table modifications-- it is the same table schema as the previous version.. just upload modlog.php to your admin directory and create an entry for it on the left hand side menu of your Cpanel.

hth~

c-pr0mpt
04-14-2002, 02:32 PM
This is for yaxay. And I checked the modlog table in mysql and it has some threads in it. Looks like all the threads I have deleted in the past, and the userid of who deleted it.

Here is a sshot:

http://www.yaxay.com/linkto/modlogsshot.gif

So I guess this was added in 2.2.5? :confused:

Silenced Soul
04-14-2002, 09:19 PM
Nice hack, very useful, now I can prove my mods aren't doing their jobs. =P

ZiRu$
04-15-2002, 03:15 AM
um......can you update this or just give me the code so that it wont log admin activity????

Chris M
04-15-2002, 12:05 PM
This is a great Hack...

I shall start right away and install it!

Satan

Esorcista
04-16-2002, 11:39 AM
Does it work on Vb 2.2.5?
It didn't work 4 me :(

mak
04-19-2002, 09:58 PM
i can't download the attachments at all.
is it a text file or zipped?

i get an attachment.php when i download it.

i'm using a mac and i'm not sure that's the reason why. is it?
i can download the other attachments here with no problem. can someone help me?

this is a real cool hack,

thanks. :)

Ian
04-19-2002, 10:35 PM
They work fine for me and there in text.

Sezmarone
04-21-2002, 11:59 PM
This is a great hack! It sure would be nice if it had edit in it too!

Mental Stamina
04-29-2002, 01:59 AM
i can't d/l the files...can someone post a text link?

CJi
04-30-2002, 05:25 PM
Does this work with 2.2.5? Don't want to risk trying it on a production board.

Chris M
04-30-2002, 06:28 PM
@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

Sinecure
05-24-2002, 04:33 PM
Thanks Overgrow, it worked flawlessly :)

dogbomb
05-25-2002, 03:48 PM
For those people who wanted this hack to show up in their CP Panel. You will need to edit admin/index.php

FIND:
makenavoption("Permissions","forumpermission.php?action=modify");

REPLACE WITH:
makenavoption("Permissions","forumpermission.php?action=modify","<br>");

ADD UNDERNEATH:
makenavoption("Activity Log","modlog.php?showLimit=100");

And that hopefully should work for you :)

mak
06-04-2002, 08:48 PM
can someone attach the install_modlog.php and modlog.php again?

i can't download them at all.

thanks.

Ian
06-06-2002, 12:10 AM
Here you go!

Ian
06-06-2002, 12:11 AM
Here you go!

dreamhost
06-30-2002, 02:14 PM
this hack is worth more than the $ of the board...hehehehe

Heineken77
07-17-2002, 07:56 PM
Hey Overgrow :)

Long time!!!

Thank you! :)
Heineken

Mephisteus
07-18-2002, 08:55 AM
Works perfect :) I have had no need for deleting so far, so no probs :p

santeematt
07-18-2002, 01:59 PM
sweet, i cant trust those damn moderators of mine :P

Meirion
07-23-2002, 02:00 PM
one minor change to this class hack to make it work with the "Recycle Bin" hack.

This lets you click the titles of the deleted threads to view them.

in modlog.php find:


if ($subArray[type] != "2") // Deleted?
echo "<a href=\"../showthread.php?threadid=$subArray[threadid]\" target=\"_blank\">$subArray[threadtitle]</a>";
else
echo "$subArray[threadtitle]";

replace with
if ($subArray[type] != "2") // Deleted?
echo "<a href=\"../showthread.php?threadid=$subArray[threadid]\" target=\"_blank\">$subArray[threadtitle]</a>";
else
echo "<a href=\"../showthread.php?threadid=$subArray[threadid]\" target=\"_blank\">$subArray[threadtitle]</a>";

Don't forget you need the recycle bin hack for this to work.

deano1
08-05-2002, 01:29 AM
when i install this hack
i get this error
when running the install

Warning: Failed opening '/home/deanosw/public_html/vbtest/admin/install_modlog.php' for inclusion (include_path='') in Unknown on line 0

redd
09-30-2002, 09:13 AM
Does this work with 2.7 ?

N9ne
09-30-2002, 05:39 PM
Yeah does it work with 2.2.8?

Ian
09-30-2002, 09:07 PM
Originally posted by Tha Rock
Yeah does it work with 2.2.8? Yes.

Exo
10-01-2002, 08:44 PM
hm it only logs complete Threads, how can i make it so that it logs posts too. If a Moderator delete a post in a Thread, its very important to know that! :(

Gizmo99
10-06-2002, 04:43 PM
Sexy is not the word :banana:

Giz

BigCheeze
10-19-2002, 05:21 PM
Installed and working perfectly in 2.2.8! w00t w00t!! Can't trust them dam mods! LOL

neocorteqz
10-23-2002, 05:52 PM
It's not logging my test mods activity..

Nice install though. I will go over the file hacks again.. see if I missed something.

Nice Job:)

Larry@IOG
10-24-2002, 09:03 PM
I installed it with no problems. So far my mods have done nothing for me too see

Larry

Larry@IOG
10-25-2002, 12:19 AM
Ok I have it installed but it does not log any of the mods actions,

2.2.8

Larry

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
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.

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
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
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
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



04-30-02 at 07:28 PM hellsatan said this in Post #60 (https://vborg.vbsupport.ru/showthread.php?postid=246177#post246177)
@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

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
eval("standardredirect(\"".gettemplate("redirect_editthanks")."\",\"showthread.php?s=$session[sessionhash]&postid=$postid#post$postid\");");

ADD BEFORE

// MOD LOG
$DB_site->query("INSERT INTO modlog (type,userid,threadid,postid,threadtitle,fromforum id,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
// MOD LOG
$DB_site->query("INSERT INTO modlog (type,userid,threadid,threadtitle,fromforumid,tofo rumid,timestamp)
VALUES ('2','$bbuserinfo[userid]','$threadid','".addslashes($threadinfo[title])."','$threadinfo[forumid]','','".time()."')");


REPLACED BY

// MOD LOG
$DB_site->query("INSERT INTO modlog (type,userid,threadid,threadtitle,fromforumid,tofo rumid,timestamp,ipaddress)
VALUES ('2','$bbuserinfo[userid]','$threadid','".addslashes($threadinfo[title])."','$threadinfo[forumid]','','".time()."','".$HTTP_SERVER_VARS['REMOTE_ADDR']."')");


FIND
// MOD LOG
$DB_site->query("INSERT INTO modlog (type,userid,threadid,threadtitle,fromforumid,tofo rumid,timestamp)
VALUES ('3','$bbuserinfo[userid]','$threadid','".addslashes($threadinfo[title])."','$checkforum[forumid]','$forumid','".time()."')");

REPLACED BY

// MOD LOG
$DB_site->query("INSERT INTO modlog (type,userid,threadid,threadtitle,fromforumid,tofo rumid,timestamp,ipaddress)
VALUES ('3','$bbuserinfo[userid]','$threadid','".addslashes($threadinfo[title])."','$checkforum[forumid]','$forumid','".time()."','".$HTTP_SERVER_VARS['REMOTE_ADDR']."')");

FIND
// MOD LOG
$DB_site->query("INSERT INTO modlog (type,userid,threadid,threadtitle,fromforumid,tofo rumid,timestamp)
VALUES ('$threadinfo[open]','$bbuserinfo[userid]','$threadid','".addslashes($threadinfo[title])."','$threadinfo[forumid]','','".time()."')");

REPLACED BY

// MOD LOG
$DB_site->query("INSERT INTO modlog (type,userid,threadid,threadtitle,fromforumid,tofo rumid,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,

03-20-03 at 11:04 PM mtha said this in Post #94 (https://vborg.vbsupport.ru/showthread.php?postid=370166#post370166)
it work great! 2.3.0

execute

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:
ALTER TABLE `modlog` ADD `postid" int(10) DEFAULT '0' NOT NULL AFTER `threadid`;

this is the error:
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
Today at 08:16 AM JeffyJoe said this in Post #97 (https://vborg.vbsupport.ru/showthread.php?postid=382824#post382824)
Hi mtha,



I am gettin an error running this query:
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`


ALTER TABLE `modlog` ADD `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.

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.


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 :
$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:

Fatal error: Call 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
06-29-03 at 11:20 PM 0zone said this in Post #111 (https://vborg.vbsupport.ru/showthread.php?postid=414093#post414093)
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.

chuckwk
09-11-2003, 01:42 AM
installed on 2.3.2 .. working perfectly

chuckc
09-11-2003, 09:09 AM
Still waiting for a response to this question:

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.

94supratt
09-16-2003, 11:35 PM
It did not log when a thread was closed for some reason. Logged moved threads.

Oblivion Knight
09-20-2003, 09:46 AM
This is only logging admin activities..
I was under the impression that it should log moderator's and super moderator's as well as admin's actions.? :nervous:

Elly
10-03-2003, 05:48 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.


I would also like to know on this as well. I have the allow mods a temporary ban of users (https://vborg.vbsupport.ru/showthread.php?t=39584&highlight=mods+ban) by Hotte instaled and would like to know if this hack already tracks this as well or if i could be implimented by someone.

I would be very gratefull to whoever can help

thanks
- Elly

Coolj
10-14-2003, 09:37 PM
Is there any way to check if a super mod banned a user?

Elly
11-03-2003, 04:16 PM
I think there is another hack for that Coolj you just have to find it ....

hurrican
04-04-2004, 09:54 PM
Is there a TEXT install for this? I'm running 2.3.4 and I can't get the install file to work. I like that it shows in detail what thread is closed, deleted, etc, rather than the admin log. Any help is appreciated!

Keith
04-04-2004, 10:25 PM
Trying to use the buttons to clear the logs doesn't work either. Hack should still be in beta?

nomic
05-02-2004, 11:40 AM
Installed it on 2.3.4, works perfectly - Thanks Overgrow! :)

weirdpixels
05-10-2004, 12:06 PM
thanks, overgrow working great on vb 2.3.5

animi12
07-30-2004, 01:52 AM
great hack. still needs delete post logging. haven't upgraded to vb 3 yet and am not really ready, but would appreciate some help writing the delete post add on for this mod.