Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
#44100 01/31/2002 10:08 PM
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
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


I can't afford a good signature editor frown
Sponsored Links
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Looking good. laugh

Joined: Dec 2000
Posts: 730
deutscher moderator / v5 specialist
deutscher moderator / v5 specialist
Offline
Joined: Dec 2000
Posts: 730
can you log the number of the response those the Moderator/Admin edited?

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Also maybe can you reverse the order as the latest move first instead of last?

Joined: Nov 2000
Posts: 123
CT Offline
Member
Member
Offline
Joined: Nov 2000
Posts: 123
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.

Sponsored Links
Joined: Oct 2000
Posts: 290
Member
Member
Offline
Joined: Oct 2000
Posts: 290
Bass...GOOD JOB! smile

Send it on over when you are ready for me to upload it with your other great hack!! smile

Joined: Oct 2000
Posts: 290
Member
Member
Offline
Joined: Oct 2000
Posts: 290
Come on Bass.....give it up!!!! LOL smile

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Yeah I'd like this too.

Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
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


I can't afford a good signature editor frown
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
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


I can't afford a good signature editor frown
Sponsored Links
Joined: Oct 2000
Posts: 290
Member
Member
Offline
Joined: Oct 2000
Posts: 290
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

Joined: Nov 2000
Posts: 123
CT Offline
Member
Member
Offline
Joined: Nov 2000
Posts: 123
Thanks BassTeQ for this great hack. It's good to see version 5 still hasn't died smile

Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
CT Nps mate, Im gonna push it as hard as I can to keep the good ol' version 5 going smile


I can't afford a good signature editor frown
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Hey BassTeQ can you email it to me too please?

Joined: Oct 2000
Posts: 290
Member
Member
Offline
Joined: Oct 2000
Posts: 290
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

Joined: Oct 2000
Posts: 290
Member
Member
Offline
Joined: Oct 2000
Posts: 290
Bass....I just wondered...how long does it keep the data? Is there a limit on how big the log can get?

Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
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.


I can't afford a good signature editor frown
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
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

Joined: Nov 2000
Posts: 123
CT Offline
Member
Member
Offline
Joined: Nov 2000
Posts: 123
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

Joined: Nov 2000
Posts: 123
CT Offline
Member
Member
Offline
Joined: Nov 2000
Posts: 123
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]

Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
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.


I can't afford a good signature editor frown
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
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");


I can't afford a good signature editor frown
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
I'm going to test it later on, will it work on 5.45b?

Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
Never tested on 5.45b.
Let us know smile


I can't afford a good signature editor frown
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Worked fine! laugh
Should work with all 5.4 versions I think.

Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
Fantastic smile


I can't afford a good signature editor frown
Joined: Nov 2000
Posts: 123
CT Offline
Member
Member
Offline
Joined: Nov 2000
Posts: 123
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?

Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
Ok what version are you using?
Ill have to have a looksee at the ubb code and ill get back to you.


I can't afford a good signature editor frown
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
BassTeQ, is it OK if I give this to SpAwN to put on his v5 Database?

Joined: Nov 2000
Posts: 123
CT Offline
Member
Member
Offline
Joined: Nov 2000
Posts: 123
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

Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
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!


I can't afford a good signature editor frown
Joined: Nov 2000
Posts: 123
CT Offline
Member
Member
Offline
Joined: Nov 2000
Posts: 123
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!

Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
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.


I can't afford a good signature editor frown
Joined: Oct 2000
Posts: 290
Member
Member
Offline
Joined: Oct 2000
Posts: 290
Perfect timing BAss....I am READY for this!! you've got mail!

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
I'll wait for Viper to update the link, so it's easier for you not having to give it to 2 people.

Joined: Oct 2000
Posts: 290
Member
Member
Offline
Joined: Oct 2000
Posts: 290
ZIP FILE has been updated!! Thanks Bass!

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Yay! Thanks Bass and Viper. laugh

Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
Done and Done, Cheers


I can't afford a good signature editor frown
Joined: Oct 2000
Posts: 290
Member
Member
Offline
Joined: Oct 2000
Posts: 290
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

Joined: Oct 2000
Posts: 290
Member
Member
Offline
Joined: Oct 2000
Posts: 290
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

Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
Ahh ok, I dont think I accomidated for those functions, Ill look into it and update the hack!


I can't afford a good signature editor frown
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Heh, enough with the updates. tipsy laugh

Joined: Oct 2000
Posts: 290
Member
Member
Offline
Joined: Oct 2000
Posts: 290
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.

Joined: Oct 2000
Posts: 290
Member
Member
Offline
Joined: Oct 2000
Posts: 290
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

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
*Downloads again and sighs*
Keep going with the updates. tipsy

Joined: Oct 2000
Posts: 290
Member
Member
Offline
Joined: Oct 2000
Posts: 290
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

Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
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.


I can't afford a good signature editor frown
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
*Downloads again*
This is getting fun. Keep up the good work! laugh

Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
Hehe, glad you're enjoying yourself Lord smile


I can't afford a good signature editor frown
Joined: Nov 2000
Posts: 123
CT Offline
Member
Member
Offline
Joined: Nov 2000
Posts: 123
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.

Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
When I get some time I'll see what I can do mate.

Cheers


I can't afford a good signature editor frown
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
I like CT's suggestions there. Will make this hack better. laugh

Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
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


I can't afford a good signature editor frown
Joined: Nov 2000
Posts: 123
CT Offline
Member
Member
Offline
Joined: Nov 2000
Posts: 123
Yes please!

I am really interested!

Thanks,

CT.

Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
Ok Ill try and update the doco this week, Im a little busy atm. Ill let you know once its done!


I can't afford a good signature editor frown
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Those new features sound good. laugh

Joined: Nov 2000
Posts: 123
CT Offline
Member
Member
Offline
Joined: Nov 2000
Posts: 123
YAY! (just putting this back on top smile tipsy

Joined: Oct 2000
Posts: 290
Member
Member
Offline
Joined: Oct 2000
Posts: 290
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

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Your being Threatened?

That must suck Viper. I hope everything works out for you.

Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
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


I can't afford a good signature editor frown
Joined: Oct 2000
Posts: 290
Member
Member
Offline
Joined: Oct 2000
Posts: 290
The ZIP file has been updated...there are several links to it throughout the thread. smile

Good Job Bass!!!

Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
Thanks Viper!


I can't afford a good signature editor frown
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Whats new in this ZIP?

Joined: Oct 2000
Posts: 290
Member
Member
Offline
Joined: Oct 2000
Posts: 290
I think Bass covered that on page 4??? I'm not sure. smile I just do what I'm told!! LOL!!!

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Your right. Just some changes in postings.cgi code.

Joined: Aug 2001
Posts: 7
Junior Member
Junior Member
Offline
Joined: Aug 2001
Posts: 7
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?

Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
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


I can't afford a good signature editor frown
Page 1 of 2 1 2

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)