UBB.Dev
Posted By: BassTeQ Admin/Moderator Activity Logger - 02/01/2002 5:08 AM
Ive created another hack so I know when my mods/admins perform any moving/editing/deleting activities on my board. I got sick of asking people who did this and who did that. This way makes it nice and easy for me to know eho does what.
Here is what the output looks like. Quite simple but it does what it has to do smile

DOWNLOAD .ZIP FILE HERE
Posted By: Lord Dexter Re: Admin/Moderator Activity Logger - 02/01/2002 7:52 AM
Looking good. laugh
Posted By: joking-down Re: Admin/Moderator Activity Logger - 02/01/2002 9:47 AM
can you log the number of the response those the Moderator/Admin edited?
Posted By: Lord Dexter Re: Admin/Moderator Activity Logger - 02/01/2002 11:00 AM
Also maybe can you reverse the order as the latest move first instead of last?
Posted By: CT Re: Admin/Moderator Activity Logger - 02/01/2002 1:33 PM
You might also log IP's. That way if a moderator leaked his/her password (even without knowing) you can check if it's done from their computer or not.

You might even find it's one of your registered users.
Posted By: Vipermad Re: Admin/Moderator Activity Logger - 02/01/2002 2:18 PM
Bass...GOOD JOB! smile

Send it on over when you are ready for me to upload it with your other great hack!! smile
Posted By: Vipermad Re: Admin/Moderator Activity Logger - 02/02/2002 7:03 AM
Come on Bass.....give it up!!!! LOL smile
Posted By: Lord Dexter Re: Admin/Moderator Activity Logger - 02/02/2002 8:59 AM
Yeah I'd like this too.
Posted By: BassTeQ Re: Admin/Moderator Activity Logger - 02/03/2002 11:52 PM
Sorry guys, I dont read this board on the weekends smile Ok, ill have to document this hack and ill post it to viper once its done!! smile
Cheers
Posted By: BassTeQ Re: Admin/Moderator Activity Logger - 02/04/2002 1:41 AM
Viper, you have mail!

I've reversed the display order, so the newest logged activity is displayed at the top, and it also logs IP's and Remote Host name.

Enjoy
Posted By: Vipermad Re: Admin/Moderator Activity Logger - 02/04/2002 2:17 AM
I have edited your initial post to include a link to the .zip file....figured it made more sense than to add it lower in the thread. Everyone have a look.

Now I have to get to work to update the DB here!! smile
Posted By: CT Re: Admin/Moderator Activity Logger - 02/05/2002 6:38 PM
Thanks BassTeQ for this great hack. It's good to see version 5 still hasn't died smile
Posted By: BassTeQ Re: Admin/Moderator Activity Logger - 02/06/2002 12:08 AM
CT Nps mate, Im gonna push it as hard as I can to keep the good ol' version 5 going smile
Posted By: Lord Dexter Re: Admin/Moderator Activity Logger - 02/06/2002 7:20 AM
Hey BassTeQ can you email it to me too please?
Posted By: Vipermad Re: Admin/Moderator Activity Logger - 02/06/2002 2:39 PM
quote:
Originally posted by Lord Dexter:
Hey BassTeQ can you email it to me too please?

Lord....there is a link to a .zip file in the first post. smile
Posted By: Vipermad Re: Admin/Moderator Activity Logger - 02/06/2002 2:41 PM
Bass....I just wondered...how long does it keep the data? Is there a limit on how big the log can get?
Posted By: BassTeQ Re: Admin/Moderator Activity Logger - 02/06/2002 11:33 PM
Well the data file will just keep growing, no limit on size at all. If you see its getting too large then just wipe it and it will create it automatically next time.
Posted By: Lord Dexter Re: Admin/Moderator Activity Logger - 02/07/2002 7:13 AM
quote:
Originally posted by Vipermad:
quote:
Originally posted by Lord Dexter:
Hey BassTeQ can you email it to me too please?

Lord....there is a link to a .zip file in the first post. smile
Whoops didn't see that. shocked wink
Posted By: CT Re: Admin/Moderator Activity Logger - 02/08/2002 1:24 AM
I am implementing the hack as we speak. I found something to be different when using version 5.45:

[code][/code]This routine is not in ubblibrary.pl but in cpanel2.cgi, cpanel3.cgi and cpanel4.cgi
Posted By: CT Re: Admin/Moderator Activity Logger - 02/08/2002 1:41 AM
Damn. I'm stuck. There's nothing similar to this:
code:
Find this:
--------------------------------------------------
if ($NewTopicSubject ne $TopicSubject && $NewTopicSubject && $in{'ReplyNum'} eq "000000") {
$NewTopicSubject = &CensorCheck("$NewTopicSubject");
@stats = split(/||/,$revised[0]);
$stats[4] = $NewTopicSubject;
$revised[0] = "$stats[0]
Posted By: BassTeQ Re: Admin/Moderator Activity Logger - 02/08/2002 5:43 AM
quote:
Originally posted by CT:
This routine is not in ubblibrary.pl but in cpanel2.cgi, cpanel3.cgi and cpanel4.cgi

Ok it doesnt really matter, because all you are doing is adding my custom sub routine to the ubb_library file. You can put it anywhere in the file, but NOT inside another sub.
What I suggest is you find a line in ubb_library that starts with the word 'sub'
then just above that add my code as it says.
Posted By: BassTeQ Re: Admin/Moderator Activity Logger - 02/08/2002 5:50 AM
quote:
Originally posted by $stats[4]:
Damn. I'm stuck. There's nothing similar to this:
code:
Find this:
--------------------------------------------------
if ($NewTopicSubject ne $TopicSubject && $NewTopicSubject && $in{'ReplyNum'} eq "000000") {
$NewTopicSubject = &CensorCheck("$NewTopicSubject");
@stats = split(/||/,$revised[0]);
$stats[4] = $NewTopicSubject;
$revised[0] = "$stats[0]
Ok the reason you cannot find this is because you probably do not have the blind editing of subject hack installed, in that case:-
Find this:
$EditedMessage= &PipeCleaner("$EditedMessage");

and after that add :
&Custom_Admin_Log("$in{'UserName'}|^^|$in{'forum'}|^^|Edited the Post - $TopicSubject");
Posted By: Lord Dexter Re: Admin/Moderator Activity Logger - 02/08/2002 7:40 AM
I'm going to test it later on, will it work on 5.45b?
Posted By: BassTeQ Re: Admin/Moderator Activity Logger - 02/10/2002 11:59 PM
Never tested on 5.45b.
Let us know smile
Posted By: Lord Dexter Re: Admin/Moderator Activity Logger - 02/11/2002 7:38 AM
Worked fine! laugh
Should work with all 5.4 versions I think.
Posted By: BassTeQ Re: Admin/Moderator Activity Logger - 02/11/2002 11:51 PM
Fantastic smile
Posted By: CT Re: Admin/Moderator Activity Logger - 02/27/2002 10:13 PM
BassTeq,

quote:
Ok the reason you cannot find this is because you probably do not have the blind editing of subject hack installed, in that case:-
Find this:
$EditedMessage= &PipeCleaner("$EditedMessage");

and after that add :
&Custom_Admin_Log("$in{'UserName'}|^^|$in{'forum'}|^^|Edited the Post - $TopicSubject");

I can't find that line as well...

I have no Pipecleaner... any help?
Posted By: BassTeQ Re: Admin/Moderator Activity Logger - 02/28/2002 12:55 AM
Ok what version are you using?
Ill have to have a looksee at the ubb code and ill get back to you.
Posted By: Lord Dexter Re: Admin/Moderator Activity Logger - 02/28/2002 7:19 AM
BassTeQ, is it OK if I give this to SpAwN to put on his v5 Database?
Posted By: CT Re: Admin/Moderator Activity Logger - 03/01/2002 12:23 AM
BassTeq,

Your hack seems to be working now. It's very neat. However I did not yet install the routine I'm talking about in my previous posts... I think editing subject or posts will not be logged.

I have a very heavily modified 5.45d, I will try to see if I can find the routine in the original code and see if I can find out what happened to it wink
Posted By: BassTeQ Re: Admin/Moderator Activity Logger - 03/01/2002 12:33 AM
quote:
Originally posted by Lord Dexter:
BassTeQ, is it OK if I give this to SpAwN to put on his v5 Database?

Sure Lord, thats fine mate. Ive changed the hack a little to fix this problem with older versions, drop me an email bassteq@bigfoot.com and ill send you the updated hack.

Viper: Can you please also email me and ill send you an updated version too.

Thanks guys!
Posted By: CT Re: Admin/Moderator Activity Logger - 03/01/2002 12:34 AM
That was quick...

The problem was this: I had added the hack 'number of times edited', which changed the code into this:

[code][/code]I have added the lines of codes afterwards...

(I still hope I'm making sense here)

Thanks Bassteq for another fine hack!
Posted By: BassTeQ Re: Admin/Moderator Activity Logger - 03/01/2002 12:39 AM
quote:
Originally posted by CT:
BassTeq,

Your hack seems to be working now. It's very neat. However I did not yet install the routine I'm talking about in my previous posts... I think editing subject or posts will not be logged.

I have a very heavily modified 5.45d, I will try to see if I can find the routine in the original code and see if I can find out what happened to it wink

Ok im hoping this code will be in 5.45d.

Look for this :

#check for excess images-
&excess_image_check($EditedMessage);

And after that add

if ($NewTopicSubject ne "") {
&Custom_Admin_Log("$in{'UserName'}|^^|$in{'forum'}|^^|Edited the Post - $NewTopicSubject");
} else {
&Custom_Admin_Log("$in{'UserName'}|^^|$in{'forum'}|^^|Edited the Post - $TopicSubject");
}

If you have any other problems feel free to let me know.
Posted By: Vipermad Re: Admin/Moderator Activity Logger - 03/01/2002 6:04 PM
Perfect timing BAss....I am READY for this!! you've got mail!
Posted By: Lord Dexter Re: Admin/Moderator Activity Logger - 03/02/2002 12:40 AM
I'll wait for Viper to update the link, so it's easier for you not having to give it to 2 people.
Posted By: Vipermad Re: Admin/Moderator Activity Logger - 03/02/2002 4:55 AM
ZIP FILE has been updated!! Thanks Bass!
Posted By: Lord Dexter Re: Admin/Moderator Activity Logger - 03/02/2002 6:13 AM
Yay! Thanks Bass and Viper. laugh
Posted By: BassTeQ Re: Admin/Moderator Activity Logger - 03/04/2002 12:07 AM
Done and Done, Cheers
Posted By: Vipermad Re: Admin/Moderator Activity Logger - 03/04/2002 12:26 AM
Bass.....
I have it logging CLOSINGS when threads are closed with the "close after posting" box ticked....

BUT, I am having NO LUCK if I close (or open) a thread using the "Administrator Functions" links at the bottom of the page.

I've been working on a few snippets...no luck so far, but I'm not myself these days!! smile
Posted By: Vipermad Re: Admin/Moderator Activity Logger - 03/04/2002 12:52 AM
Whats more..I cannot find any reference to the logging of OPEN THREAD in your instructions....just the reference to closing a thread after posting. smile
Posted By: BassTeQ Re: Admin/Moderator Activity Logger - 03/04/2002 5:56 AM
Ahh ok, I dont think I accomidated for those functions, Ill look into it and update the hack!
Posted By: Lord Dexter Re: Admin/Moderator Activity Logger - 03/04/2002 7:30 AM
Heh, enough with the updates. tipsy laugh
Posted By: Vipermad Re: Admin/Moderator Activity Logger - 03/04/2002 2:48 PM
quote:
Originally posted by BassTeQ:
Ahh ok, I dont think I accomidated for those functions, Ill look into it and update the hack!

No worries Bass!! smile I thought I might have gotten a shortened instruction set. It says at the top all the tings you can track with this, and it includes open/close....

I went through all saved files I could find to make sure I didn't hose something up and saved the wrong instruction set.
Posted By: Vipermad Re: Admin/Moderator Activity Logger - 03/05/2002 3:32 AM
I have UPDATED the .zip file with some added code to log thread closings and re-openings via the Admin functions at the bottom of the page (No Sticky Threads edition). smile

Bass....I'm going to e-mail you what I did...I hope you don't mind!! smile
Posted By: Lord Dexter Re: Admin/Moderator Activity Logger - 03/05/2002 7:29 AM
*Downloads again and sighs*
Keep going with the updates. tipsy
Posted By: Vipermad Re: Admin/Moderator Activity Logger - 03/05/2002 2:55 PM
Sorry 'bout that Lord. smile

The bad(?) news is that my code was OK....but Bass' code was a bit "cleaner" so I have re-updated the zip file.

Both bits of code work, so don't feel rushed!!! I didn't think Bass had time so I was fiddling with the code....then he sends me an update. smile

What I'm working on adding is a way to make it so only Admins can access it...but my free time is dwindling away. frown
Posted By: BassTeQ Re: Admin/Moderator Activity Logger - 03/05/2002 11:53 PM
Viper, the easiest way so that only admins can access it would be to only give the url to your admins smile Code wise, it wouldnt require much to check for a valid cookie, or add a user login box prior to showing whats been logged.
Posted By: Lord Dexter Re: Admin/Moderator Activity Logger - 03/06/2002 7:11 AM
*Downloads again*
This is getting fun. Keep up the good work! laugh
Posted By: BassTeQ Re: Admin/Moderator Activity Logger - 03/07/2002 12:32 AM
Hehe, glad you're enjoying yourself Lord smile
Posted By: CT Re: Admin/Moderator Activity Logger - 03/15/2002 1:59 PM
This works great...

I have some tips though:

1. It would be nice if it would not log the posts edited that are the posts from the moderator. For example JOhn, who has moderator rights, edits his own post and gets logged. This is not nescessary, only posts edited by John that are not his should be logged.

2. It would be very nice if you could figure out what exact post was edited. I don't know if this is possible though.

The reason is I like to have a close look of what my moderators are editing. Now I only see 'John edited the post in this thread'... I don't know what post, if it was his or not and so if he had a right(reason) to edit it.
Posted By: BassTeQ Re: Admin/Moderator Activity Logger - 03/17/2002 11:53 PM
When I get some time I'll see what I can do mate.

Cheers
Posted By: Lord Dexter Re: Admin/Moderator Activity Logger - 03/18/2002 8:23 AM
I like CT's suggestions there. Will make this hack better. laugh
Posted By: BassTeQ Re: Admin/Moderator Activity Logger - 03/27/2002 6:07 AM
quote:
Originally posted by CT:
This works great...

I have some tips though:

1. It would be nice if it would not log the posts edited that are the posts from the moderator. For example JOhn, who has moderator rights, edits his own post and gets logged. This is not nescessary, only posts edited by John that are not his should be logged.

2. It would be very nice if you could figure out what exact post was edited. I don't know if this is possible though.

The reason is I like to have a close look of what my moderators are editing. Now I only see 'John edited the post in this thread'... I don't know what post, if it was his or not and so if he had a right(reason) to edit it.

Ive made a few changes to this hack :

* It will now not log admins/mod who edit their own post.
* It will also log the username of the posted who's post was edited.

If anyone wants these new mods let me know and ill update the doco.

cheers
Posted By: CT Re: Admin/Moderator Activity Logger - 04/04/2002 8:15 PM
Yes please!

I am really interested!

Thanks,

CT.
Posted By: BassTeQ Re: Admin/Moderator Activity Logger - 04/05/2002 1:08 AM
Ok Ill try and update the doco this week, Im a little busy atm. Ill let you know once its done!
Posted By: Lord Dexter Re: Admin/Moderator Activity Logger - 04/05/2002 2:11 AM
Those new features sound good. laugh
Posted By: CT Re: Admin/Moderator Activity Logger - 04/11/2002 12:51 PM
YAY! (just putting this back on top smile tipsy
Posted By: Vipermad Re: Admin/Moderator Activity Logger - 04/15/2002 4:58 AM
I'm still alive Bass!!!! Been keeping a low profile on the net due to some threats of violence to me and family. frown

If/when you are reasy, shoot me the new docs and I'll update the zip file. smile
Posted By: Lord Dexter Re: Admin/Moderator Activity Logger - 04/15/2002 9:22 AM
Your being Threatened?

That must suck Viper. I hope everything works out for you.
Posted By: BassTeQ Re: Admin/Moderator Activity Logger - 04/16/2002 8:19 AM
Viper, sorry to hear that mate, look after yourself!

Zip file updated and emailed to you.

For those that are using an older version please replace the old cgi program with the new one (dont forget to change the path to the log file)
As for the changes to postings.cgi, well I recommend doing a diff on my current installation instructions and my old ones to see where Ive made these new changes.

Any probs just drop a reply and Ill be glad to help out.

Cheers
Posted By: Vipermad Re: Admin/Moderator Activity Logger - 04/16/2002 2:11 PM
The ZIP file has been updated...there are several links to it throughout the thread. smile

Good Job Bass!!!
Posted By: BassTeQ Re: Admin/Moderator Activity Logger - 04/17/2002 12:51 AM
Thanks Viper!
Posted By: Lord Dexter Re: Admin/Moderator Activity Logger - 04/17/2002 8:46 AM
Whats new in this ZIP?
Posted By: Vipermad Re: Admin/Moderator Activity Logger - 04/18/2002 1:27 AM
I think Bass covered that on page 4??? I'm not sure. smile I just do what I'm told!! LOL!!!
Posted By: Lord Dexter Re: Admin/Moderator Activity Logger - 04/18/2002 9:17 AM
Your right. Just some changes in postings.cgi code.
Posted By: Kirin Re: Admin/Moderator Activity Logger - 09/07/2002 10:04 PM
I like it! However ... I have a few suggestions.

1) Perhaps a login system should be implemented to the custom log file viewer. That way former admins don't have permission to look at the log anymore.

2) If the thread was started by the thread starter and that user is a non-admin, it doesn't log the user if the thread was deleted by the thread starter. I think it should log an activity by such a user as well.

3) A link to the thread that was moved/edited would be nice as well.

I also have a bug with it ... I implemented the hack in UBB 5.45 if that might be it:

[Linked Image]

When I edit a post in a thread, I get an extra line there ... why is that? Is there suppose to be something there?
Posted By: BassTeQ Re: Admin/Moderator Activity Logger - 09/09/2002 1:04 AM
Im currently quite busy at the moment, yet again so I dont really have time to work on this hack sorry. As for the first suggestion, just put the link to it in an area of the ubb that only current mods/admins can access. So if they cant find it, they cant view it smile

As for your second point, its an admin/mod logger, not an all user logger smile I've dont it this way to help prevent the log file getting too big. An idea, ive setup my board so thread starters cant delete their own posts, only edit them, that would beg around your problem I believe.

That link can be added quite easily, ill do that when I get a few spare minutes and add the code here!

As for your bug, I basically developed this for my own purposes for 5.47d, but it seemed that a few people where interested in it, so I made it available to the public. I cant assure you that will will work on any other version except 5.47d as thats the only version I have tested it on.

Enjoy the hack!

Regards
BassTeQ
© UBB.Developers