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)

Overgrow 03-01-2002 10:00 PM

Moderator Activity Logging (updated)
 
<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

Quote:

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

Quote:

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()."&c learLogs=yes&showLimit=$showLimit';}\">CLEAR ALL LOGS</a>

Replace with:

<a href=\"$PHP_SELF?rt=".time()."&clearLogs=yes&showL imit=$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
PHP Code:

//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&showL imit=$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&showL imit=\"$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? :)

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


All times are GMT. The time now is 04:49 AM.

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.01516 seconds
  • Memory Usage 1,811KB
  • 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
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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