Name: Moderator Activity Logging v1.0b2
Programmers: Overgrowth, qasic, DPK
Beta testers: MsLedd, LK
Requirements: UBB 6.1 Public Beta 1 or Higher
Description: 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.
Download: http://www.qasic.net/ Pictures: As always, bug reports and feedback greatly apprecited!
Great mod
Just a small bug, lines 437 and 439 of modlog.cgi should have $hash->{type} instead of $_[0].
I got this error:
Can't obtain exclusive lock: No such file or directory (called
by /home3/dsstoday/HTML/cgitest/ubb_mod_log.cgi, 36) at /home3/dsstoday/HTML/cgitest/ubb_lib_files.cgi line 573.
Line 35 and 36 of ubb_mod_log.cgi are:
open FILE, ">>$vars_config{NonCGIPath}/modlog/$action.cgi";
&lock();
Are we missing file action.cgi?
Did you create /noncgi/modlog directory?
LK, thx for the bug report. It's fixed. ZIP file has been updated (just re-upload modlog.cgi).
qasic
I have the latest modlog.cgi and yes I have a directory modlog in NONCGI with chmod 777, still I am getting this error:
Can't use an undefined value as a symbol reference at modlog.cgi line 152.
and this is line 152 in modlog.cgi:
my $fh; open($fh, "$vars_config{NonCGIPath}/modlog/$_[0].cgi");
Please help!
Thanks
[ August 26, 2001: Message edited by: freeTV ]
freeTV, you may be using a version of Perl that doesn't support this feature(I'm using Perl 5.6.1 which defintely supports this feature). What version of Perl are you using?
Try the following:
Open modlog.cgi
find:
and replace with:
qasic
[ August 26, 2001: Message edited by: qasic ]
nice job q.
I'll install this when i get back.
qasic, I'm using perl5.
I tried your fix to the modlog.cgi and it did the trick. This is a nice hack. I strongly recommend it to everyone.
2 thumbs up!
Nice one... will come in handy, esp. on larger boards
I'm getting internal server errors when opening modlog.cgi, it was working a couple days ago, but redownloaded the most recent one.
Hmmm ... you may want to upgrade to Perl 5.6 then - it's better
Anyways, I'm glad my workaround did the trick. I'm lucky Wall's Camel 3 had that workaround
qasic
raiyan:
ISE can be caused by two things:
1) Perl path not being correct.
2) Binary upload of files.
Check to make sure these are not the case. Furthermore, can you print here what your error log says?
qasic
will this work with 6.05? if not can you make one for 6.05?
It can work with UBB 6.0x with a little modfication. If you pay me, I can install on your 6.0x board for you but otherwise, you'll have to install it at your own peril.
qasic
Great hack qasic! I've been waiting for something like this.
I want to download this so bad, but it won't let me in, it thinks im hacking. I forgot which e-mail adress I used so i tried a lot, and then it thought I was hacking, Qasic, can you fix my account?
Hi bsoke,
Did you register @ Qasic.COM by any chance? If you did, you'll need to re-register @ Qasic.NET. Sorry for the inconvenience.
qasic
yeah, it has been a week, and I still can't get it...! grr!
Not sure if this is a problem with everyone, but when I chmod'd my modlog directory to 666 I couldn't gain access to that directory.. not even through FTP, so the ubb couldn't access it and gave this error... when I set it to chmod 777 it works just fine.. maybe the instructions should be changed to say chmod modlog to 777? just curious...
Javier: This hack only requires 666 permissions. If it requires 777 then somehow, your host has a custom UNIX that is screwing around with standard UNIX permissions.
Boske: You're not on the Qasic.NET database at all.
qasic
Q-> that's cool.. my host is also where I work and do tech support
Can't complain too much for free hosting lol... in any case, I hadn't seen much feedback on this hack yet so i just popped the question out..
It's a GREAT feature though.. no more "who the heck closed that and why" lol
Well 666 means that everyone has read/write permissions and 777 means everyone has read/write/execute permissions. My script doesn't execute any files inside that directory so it's sufficient to only have 666.
Just weird. Anyways, I'm still glad it works
qasic
ZIP file updated to fix a month-related bug. Thx to MsLedd for finding it!
Re-upload modlog.cgi.
qasic
[ 09-14-2001: Message edited by: qasic ]
Very useful hack, good job qasic!
Yo qasic. Did you ever thought about making a copy for v6.05?
Yeah, I got one for UBB 6.0x. In fact, MsLedd found all the bugs I had in this hack on her UBB 6.05
However, as I stated above, payment is required for me in order to install it for you.
qasic
He didn't ask you to install it, he just wants the hack for v6.05, like me =). Why not release it since there's lots still using v6.0x until v6.1 is final and bug free.
i'm getting this error also...
file are surelly uploaded in ASCII...
perl path... i don't see nothing on the first lines of modlog.cgi:
this are the first lines of modlog.cgi... where is supposed to be that perl path?
i tryed to add on the first line this:
#!/usr/bin/perl
but with no sucess... blank page...
can anyone help?
[ 10-16-2001: Message edited by: click ]
on the apache server log... i have this:
[Wed Oct 17 02:21:48 2001] [error] (8)Exec format error: exec of /hosting/gcgsm/public_html/new/cgi/modlog.cgi failed
[Wed Oct 17 02:21:48 2001] [error] [client 212.113.185.162] Premature end of script headers: /hosting/gcgsm/public_html/new/cgi/modlog.cgi
Hi Click,
I re-upload the latest ZIP file with modlog.cgi updated to have the shabang line @ the top of modlog.cgi.
I assumed you've hacked ubb_topic_maint.cgi right? If so, please close a topic and then check your modlog directory (inside the UBB NonCGI directory), and see if there are files. If there are, please list them here.
Thanks!
qasic
re-uploaded modlog.cgi
yes, i've hacked all files as your instructions including ubb_topic_maint.cgi
At this moment i have this error when trying to close one topic:
Can't obtain exclusive lock: Permission denied at /hosting/gcgsm/public_html/new/cgi/ubb_lib_files.cgi line 554
Using perl 5.6.0
ubb 6.10 BR2.1
ok, i chmod noncgi/modlog/ to 777 and now its possible to close the topic...
There are two files there after closing topic:
-rw-rw-rw- 1 nobody nobody 68 Oct 17 03:14 2.cgi
-rw-rw-rw- 1 nobody nobody 31 Oct 17 03:14 index.cgi
anyway, on the control panel, "edit/view moderator logs" still blank page.....
[ 10-16-2001: Message edited by: click ]
Oh, it's a blank page? Try logging into your control panel first (to set UBB admin cookie) and then access modlog.cgi again. Please LMK how this goes.
NOTE TO SELF: If this 666 keeps on causing trouble, I think I may change it to 777.
qasic
still blank page after logging on the control panel, and choosing "view/edit moderator logs"...
what can i do? can i send you my files for you to see?
i have:
UBB cgi dir
-rwxr-xr-x 1 gcgsm gcgsm 1355 Oct 17 02:32 ubb_mod_log.cgi*
-rwxr-xr-x 1 gcgsm gcgsm 58 Oct 17 02:32 ubb_hack_mod_log.cgi*
-rwxr-xr-x 1 gcgsm gcgsm 13543 Oct 17 03:12 modlog.cgi*
-rwxr-xr-x 1 gcgsm gcgsm 12569 Oct 17 02:06 ubb_topic_maint.cgi*
NonCGI/Templates dir
-rwxrwxrwx 1 gcgsm gcgsm 3842 Oct 17 02:07 cp_entry.pl*
-rwxrwxrwx 1 gcgsm gcgsm 25906 Oct 17 02:07 cp_common.pl*
NonCGI dir
drwxrwxrwx 2 gcgsm gcgsm 4096 Oct 17 03:14 modlog/
This is what i have...
Hi click,
Not too sure what's wrong but I can try logging in to your server to see if I can debug the bug. Please e-mail the FTP login/password and UBB login/password so I may see if I can find the problem. Thanks!
qasic
check your mail
I have the same problem so i have removed your hack till it is fixed.
Hi click,
Just to confirm that I've received your mail and will be looking into your problem tomorrow.
qasic
well, i've received your emails. I don't know what you have done... but i've tryed to open the View/edit moderator loggs, and it still appears blank page.
Tryed on IE5, IE5.5, IE6, Netscape6, Opera
NONE of them can open the page.
can't understand where is my mistake... blank page still remains.
Qasic, in your instructions you have indicators talking about (changed in b2).
Have you updated these instructions for Beta 2.1? Or are you waiting for Friday for 6.1 final?
click,
Find this inside modlog.cgi,
&VerifyCookie(cookie("ubbadmin$vars_config{Cookie_Number}"));
And comment it out. If your modlog works, then you know there's a problem with cookies (are you using a proxy server by any chance)?
Spitfyre,
The b2 reference is in reference to what changed between modlog versions, not UBB.
qasic
ok, problem is solved now
just comment out that line you said..
i don't use any proxy, tryed on different computers with different connections and browsers.
thanks for all your help qasic
Just a warning, if that line is disabled, ANYONE will be able to see modlog.cgi and the titles of threads in private forums will be revealed.
qasic
can you find some other way to do this so it works correctly. I realy want to use your hack but i am not gonna use it if every body can see it. How about you make it so you veiw it thro cp.cgi?ubb=modlog or something like that.
easy... change modlog.cgi to othername.cgi
on cp_common.pl, instead of:
change it to
i did it, and it works fine
tks everyone
click, I don't think it's gonna work and anyway only people that are logged in to the CP can see it.
Try to access
http://www.lkubb.dns2go.com/cgi-bin/modlog.cgi .
with me worked.. and i'm the only person who check the logs... so.. guess no problem
about the link you mentioned... blank page also
Sorry, I didn't read a few posts.... But don't change ONLY the filename here and in cp_common.pl, you also have to change it in the require parts.
[ 10-18-2001: Message edited by: LK ]
In cp_entry.pl you ask us to find:
} #endif and under post some code. Well I cannot find it. What I can find is two instances of
} #end if
See below for the snippet:
there are three instances of it.
The file is intelligent .. modlog.cgi automatically detects if there's a name change and updates variables automatically to reflect it. However, I'm still pretty sure your cookies are at fault because I was able to access modlog.cgi fine after logging into the Control Panel.
qasic
I just tried to move a thread and got the following below error? Can someone you tell me if I screwed somemthing up or is there something I need to change to get this to work. When I bring up the CP wiew/edit modlog it is blank after the following two lines. Thanks
ModLog for Ultimate Bulletin Board™ ©2001 Qasic of Qasic Productions, Inc.
Ported from ModLog for vBulletin™ ©2001 ~shabang~ of Overgrow
Error
An error has occured:
Can't obtain exclusive lock: Bad file descriptor at /home/wewfhfc/public_html/cgi-bin/efedrp/ubb_lib_files.cgi line 554.
Please inform the board administration of this error so that they may fix the problem. Thank you!
(Caller: public_common.pl:570 -> sub main::Tracer)
(Caller: Carp.pm:139 -> sub main::StandardHTML2)
(Caller: Carp.pm:82 -> sub UBBCGI::Carp::fatalsToBrowser)
(Caller: ubb_lib_files.cgi:554 -> sub UBBCGI::Carp:
ie)
(Caller: ubb_mod_log.cgi:36 -> sub main::lock)
(Caller: ubb_topic_maint.cgi:374 -> sub main::WriteLog)
(Caller: ultimatebb.cgi:812 -> sub main::transfer_topic)
try chmod'ing noncgi/modlog directory to 777
with me, it solved the problem
can you please release this for 6.05?
thanks click, that did the trick
i think ive found a problem...i installed this hack & then when i tryed to close a topic i got this error message...
Error
An error has occured:
Can't obtain exclusive lock: Permission denied at /home/sites/www.djsharp.com/web/cgi-bin/ubb_lib_files.cgi line 565.
Please inform the board administration of this error so that they may fix the problem. Thank you!
i think the actual problem is somewhere in ubb_topic_maint.cgi - i took out the hack & then I was able to Close topics again with no problems. so it would be good if yall could check on this.
NonCGI/modlog directory probably not created or the permissions there are not 777.
qasic
I get this error when i try to close a topic:
Help?
modlog.cgi was not uploaded.
qasic
ubb_mod_log.cgi rather. Sorry, my bad.
qasic
hello there qasic.
i have installed this onto a fresh version 6.1.0.2
i chmodded the modlog folder to 777 wich stopped the Cant do this cause its locked error thing
and now when i try to view the modlog from the cp i get an internal server error wich gives me no clues on wich lines are effected.
the cp modlog worked before i changed the chmod on the folder.
when you have time please try to come up with an eplanation for this and possibly help me out
Thank you
[ 11-17-2001: Message edited by: ssilenthill ]
Hi,
I have tried downloading this script using both Netscape 6.2 and Internet Explorer 6 and they just won't do it. I am pretty certain it is a problem with the browsers.
Can you email me a URL where I can download it normally?
Thanks
I get the same thing as ssilenthill.
First I get the error when trying to move/close/delete topics, so i chmod the modlog folder to 777, but then going to modlog.cgi gives me an Internal Server error. I chmoded the modlog folder back to 666 and modlog.cgi loaded, but w/ no info on in (info on moved topics, etc.)
Using version 6.1.0.3
[ 11-18-2001: Message edited by: GTSDurango ]
I am also confused about this part. What should I do? Where am I suppose to put it exactly?
Also, I'm having trouble making it work. I also get that weird error about no permissions when I close a topic. So, I set the modlog directory to chmod 777. works. Then, when I go to the CP and try and view the logs, it gives me errors.
I've read through this thread and is still confused as to how to fix the above problems.
Got this working fine once I chmod modlog to 777. For an enhancement, is there a way to have this also track when a moderator deletes a person's post and also save the deleted post somewhere? I'm getting reports from a couple of users that one of my moderators is deleting their posts and I was hoping someone had some programming that could help me police them.
Thanks,
Craig
www.fencing.net
excellent idea... I would find that very useful as well
can anyone take a screen shot of their control panel main page AFTER they have installed this hack? Cuz after I installed the hack on mine, the main page is weird. The tables are all messed up
XRaVeNX: I know what you're talking about. just skip over the last file hacking step:
btw, anybody fixed this yet?
[ 11-28-2001 09:26 PM: Message edited by: GTSDurango ]
Ok I read through the threads and still can not firure out which "} #end if" to place the code after. The instructions need updating, please...
the End if on line 32
and it looks like this:
An error has occured:
Can't call method "read" without a package or object reference at /usr/share/lib/perl5/File/Path.pm line 166.
That's what I got in cp.cgi when I cleared the cache after installing Mod logging hack. By the way, even when I open the View/Edit Moderator Logs I get HTTP 500 - Internal server error. Anything wrong that I did?
hi again...
i have this hack installed.
how can i clear logs? it only shows old logs... i want the new ones!
The Link "clear all logs" doesn't work...
any clue?
problem solved...
just deleted all files in noncgi/modlog/ directory...
Durango, this should fix the problems you are having..
Put it under that } #end if and it should fix the tables messing up, I did the exact same thing. We put it under the wrong } #end if
.
[ 12-09-2001 04:10 AM: Message edited by: Alix ]
quote:
Originally posted by ssilenthill:
hello there qasic.
i have installed this onto a fresh version 6.1.0.2
i chmodded the modlog folder to 777 wich stopped the Cant do this cause its locked error thing
and now when i try to view the modlog from the cp i get an internal server error wich gives me no clues on wich lines are effected.
the cp modlog worked before i changed the chmod on the folder.
when you have time please try to come up with an eplanation for this and possibly help me out
Thank you
[ 11-17-2001: Message edited by: ssilenthill ]
Same problem. Im using 6.1.0.3 though
[ 12-12-2001 03:29 PM: Message edited by: vir ]
Hi Qasic
and thanks for this hack !
I installed it and had the same probs most users here have. Then I reinstalled it AFTER I created the modlog directory. I used the LAST ENDIF 8which was written as "# end if") and it gave me no probs. But I could only see the log after changing teh directory to 777.
Since then everyzhing is working perfect on 6.1.0.3.
Just one minor problem I found: The date is incorrect. It shows me everything I did today (12-16th) with the date of 11-16th. I am using the modlog.cgi size 14020, from 09-17th 21:43
Since you wrote earlier that you fixed a month bug, maybe the same problem here ?
Thanks
MD
hi i have just one problem
The hack work fine and the administrator member #1 connect to CP and clic on Edit / View moderator log the hack work fine
But me im administrator user member # 836
When i clic ti see moderator log on CP i see white page
???
OK
i work
i clear my cookies and im log first in CP
the hack work
BUT you can make link to return in cp after load LOGMOD ??
Because i see the page with log but i cant return on my cp
it works fine for admins... but if a moderator closes edti oder deletes a topic it wont be shown... only if an admin does this..... whats wrong? could anybody help?
Splash, most likely problem is ubb_topic_maint.cgi is hacked incorrectly.
qasic
i just installed
Moderator Activity Logging v1.0b2
when i open my control panel i get a message current hack installed Moderator Activity Logging v1.0b2
and everything is installed properly and i'm getting no errors as well but when i click on View/Edit Moderator Logs from my control panel i get a blank page ......
i put the modlog folder in my root UBB directory(non cgi) and Chmod 666
can someone pls help .....
thanks
kamli,
For some reason, it's not reading the cookies properly
Have you tried logging into your control panel and then going to modlog.cgi after. Note that you _have to_ log into your control panel before you reach modlog.cgi.
qasic
Qasic i tried doing what you said a number of times but what i get is juat a blank page ....
everything is fine ....
well thats what i think as the moderator log option shows up in the cp.cgi but .....
could i do something else .....
i am posting the code for cp_entry.pl
# CP Entry Page
&CheckAccel;
&TBT;
&HeaderRow(qq%Ultimate Bulletin Board$trademark $version Control Panel%, "2", "#5d7790", "#FFFFFF", "left", "2");
my ($m, $d, $y, $w) = &jdate($release_j);
my ($n, $e, $z, $x) = &jdate($vars_config{Cookie_Number});
my $releasedate = &DateFormat("$m-$d-$y");
my $configudate = &DateFormat("$n-$e-$z");
my $daysdiff = int($GotTime{LastLoginJulian} - $vars_config{Cookie_Number});
my $old_pageview_string = qq!Page views this month ($GotTime{mon}/$GotTime{JSYear}): $monthly_hits
!;
my $pageview_string = "!!";
my $total_hits;
if($monthly_hits > 0) { # old hit counter format
if(($cache_hits > 0) && ($dynamic_hits > 0)) {
$total_hits = $cache_hits + $dynamic_hits;
my $perc_dynamic = sprintf("%2.3f", $dynamic_hits / $total_hits);
my $perc_cache = 100 * sprintf("%.4f", $cache_hits / $total_hits);
$pageview_string = <Page views this month ($GotTime{mon}/$GotTime{JSYear}): $total_hits, $cache_hits ($perc_cache%) from the UBB Accelerator
(Note: It looks like you upgraded this month. Prior to the upgrade, you had received $monthly_hits page views. ;
&TBT; #Table Border Top in cp_common.pl
&HeaderRow(qq%Current Status of: $vars_config{BBName}%, "2", "#5d7790", "#FFFFFF", "left", "2");
&HeaderRow(qq%You have $member_count registered members.
You have $forum_total forums.
$pageview_string
Your message board is $bb_status. $toggle_link
%, "2", "#FFFFFF", "#000000", "left", "2"
, "1");
&TBB; #Table Border Bottom in cp_common.pl
I have found out that I desperately need this hack so that I can keep track of my moderators.
I went through the different steps--and when I go to see if works, I get this message:
quote:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
I'm also not sure if I am seeing the page correctly set up ...
It looks like this:
quote:
Moderator Logs REFRESH - CLEAR ALL LOGS - Max
And then there are the CP pulldown menus and then this
quote:
ModLog for Ultimate Bulletin Board™ ©2001 Qasic of Qasic Productions, Inc.
Ported from ModLog for vBulletin™ ©2001 ~shabang~ of Overgrow
I'm using UBB 6.1.0.3 ... I had to chmod the modlog file to 777 because the 666 brought up an error from the ubb_lib_files.cgi
Do I need to rebuild stats or something?
Anyone? LOL
Thanks.
Oh, I should also mention that when I do this:
Hit Members -> View/Edit Moderator Logs
I don't get any prompts.
Man, I'm getting lots of reports of that problem. I'm going to implement some debugging code into modlog.cgi to see if it's going to help solve the problem. Meanwhile, ADWOff, e-mail me your FTP and UBB login/password/URL so I can attempt to track down the bug. Thanks!
qasic
nice hack btw. kepp up the good work
[ 01-07-2002 11:15 AM: Message edited by: pablo ]
I've developed a ModLog that now has tons of error checking. ADWOFF now has a copy of it in her e-mail box so I'll let her test it out before it's released to Qasic.NET.
Thanks to all for being patient.
qasic
The new version is avaiable on Qasic.NET. To upgrade from pb2 to pb3, just re-upload ubb_mod_log.cgi and modlog.cgi file to the UBB CGI directory.
However, make sure that the first line inside modlog.cgi refers to the correct path for Perl on your server.
LMK if any of you have any problems.
qasic
[ 01-08-2002 12:05 AM: Message edited by: qasic ]
good job Qasic everything is working perfectly fine now .i just upped the files u said and set the permissions and its up and running....
thanks a lot for the help ......
cheers
Great hack qasic!!!. Went in easy and works great 6.1.0.3
Rainner
Hi, I'm having some problems with this hack.
My modlog.cgi page looks the way that ADWOFF described hers, and when I try to close a thread (I haven't tried moving or deleting), I get a screen that just says
quote:
FYI
modlog_2
» Please use your browser's back button to return.
I don't get any other sort of error message, and the error logs on my server don't show anything, so I have no idea what the problem may be.
I'm running UBB version 6.2.1 and I downloaded and installed version 1.0b3 of Mod Log. I've set /noncgi/modlog to 777.
Hope you can help. Thanks.
This looks to be a culprit of incorrect hacking. Are you sure you hacked the files correctly? Thanks.
qasic
qasic-
Sorry it's taken me so long to respond, but I didn't get around to re-checking the mod until now. I double-checked the hacks and they were all done correctly. But for some reason I had the permissions of the modlog directory set to 755. Changed them to 777 and everything's working now.
Thanks!
i installed this hack (and i'm pretty sure it was correctly).. but i kept getting this message:
quote:
Unable to Verify Administrator Status
=====================================
username (serafemme) => NOT Match
password (*********) => Match
status match (Administrator) => Match
verify administrator status? => Verified
so uhm.. what am i/it doing wrong?
Is there's a way to make this hack working on 6.5 ?