Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 10 Replies) Moderator Log v1.0 (Read 5931 times)
Bob The GoatGod
New Member
*
Offline


Bow to your master of
goats

Posts: 14
Location: Detroit
Joined: Oct 10th, 2005
Gender: Male
Moderator Log v1.0
Nov 26th, 2005 at 3:10pm
Print Post  
Here is the mod I have made, it keeps a log of some of the moderating actions preformed by moderators and admins. As of now I have only made it log the deletion or modification of posts. I dont think the other ones are necisary because data is not lost.
Please post here or email me if you encounter any errors.
Also, if you can make any translations for this mod, please email me with the language file.
  

mod_log_V1.0.zip ( 4 KB | Downloads )
Back to top
AIM  
IP Logged
 
zero
Ex Member


Re: Moderator Log v1.0
Reply #1 - Nov 27th, 2005 at 6:05am
Print Post  
I am testing this but i seen in the log it does not show which Moderator removed or edited a post.
  
Back to top
 
IP Logged
 
naitram
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 14
Joined: Dec 2nd, 2004
Re: Moderator Log v1.0
Reply #2 - Nov 29th, 2005 at 8:35pm
Print Post  
i had the same problem i added the following line

Code
Select All
&LoadUser($mlwho); 




before
Code
Select All
                        $userdisp = qq~<a href="$scripturl?action=viewprofile;username=$mlwho">${$uid.$mlwho}{'realname'}</a>~;
 



in ModeratorLog.pl
  
Back to top
 
IP Logged
 
zero
Ex Member


Re: Moderator Log v1.0
Reply #3 - Nov 30th, 2005 at 3:35am
Print Post  
thanks that worked great
  
Back to top
 
IP Logged
 
shanda
Junior Member
**
Offline


~*~  Still I Rise  ~*~

Posts: 83
Location: Toronto
Joined: Nov 12th, 2004
Gender: Female
Re: Moderator Log v1.0
Reply #4 - Nov 30th, 2005 at 7:16pm
Print Post  
I found it logged modification of posts but not deletions. Any ideas why that is?
  

~*~ shanda ~*~
Back to top
 
IP Logged
 
naitram
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 14
Joined: Dec 2nd, 2004
Re: Moderator Log v1.0
Reply #5 - Dec 1st, 2005 at 2:58pm
Print Post  
based on the code it looks like if the user deletes their own post it doesnt get logged
  
Back to top
 
IP Logged
 
naitram
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 14
Joined: Dec 2nd, 2004
Re: Moderator Log v1.0
Reply #6 - Dec 1st, 2005 at 3:00pm
Print Post  
could you add another field to the log, the user that made the original post. its nice yo know who deleted it. but i would like to know who made it
  
Back to top
 
IP Logged
 
jans
Senior Member
****
Offline


Oooops!

Posts: 374
Location: Meppel
Joined: Oct 27th, 2005
Gender: Male
Re: Moderator Log v1.0
Reply #7 - Jan 16th, 2006 at 3:26pm
Print Post  
Mod installed text is not added to modlist ? how ca admin see it's installed then ?

Found moderator log in stat section

Can you please make this mod register itself and add to the modlist ?
  
Back to top
WWW  
IP Logged
 
jans
Senior Member
****
Offline


Oooops!

Posts: 374
Location: Meppel
Joined: Oct 27th, 2005
Gender: Male
Re: Moderator Log v1.0
Reply #8 - Jan 16th, 2006 at 3:45pm
Print Post  
Code
Select All
<id>
Moderator Log
</id>

<version>
1.0
</version>

<mod info>
This mod creates a log of all moderating actions preformed by moderators and admins.
Place all the files from the archive into their proper folders, chmod them, and apply the mod.

The log file will then be accessible from a link under "Forum Stats" in the admin centre.

Current actions logged:
	-Modifying Posts
	-Deleting Posts
	-Multiple Delete Posts


Please E-Mail any bugs or errors to Bob_The_GoatGod@yahoo.com
</mod info>

<author>
BobTheGoatGod
</author>

<homepage>

</homepage>

<edit file>
AdminIndex.pl
</edit file>

<search for>
	@forum_stats = ("|$admintxt{'a8_title'}|$admintxt{'a8_label'} - $admintxt{'34'}|a8", "detailedversion|$admintxt{'a8_sub1'}|$admintxt{'a8_label1'}|", "stats|$admintxt{'a8_sub2'}|$admintxt{'a8_label2'}|", "showclicks|$admintxt{'a8_sub3'}|$admintxt{'a8_label3'}|", "errorlog|$admintxt{'a8_sub4'}|$admintxt{'a8_label4'}|", "view_reglog|$admintxt{'a8_sub5'}|$admintxt{'a8_label5'}|",);

</search for>

<add after>
	push (@forum_stats, "viewmodlog|Moderator Log|View Moderator Log");

</add after>

<edit file>
Admin/AdminSubList.pl
</edit file>

<search for>
%director=(
</search for>

<add after>
'modlogset',"ModeratorLog.pl&Settings",
'viewmodlog',"ModeratorLog.pl&ViewLog",
'clean_modlog',"ModeratorLog.pl&ClearLog",
</add after>

<edit file>
Sources/ModifyMessage.pl
</edit file>

<search for>
	if ($postid == 0) {

		# maybe thread sub and/or icon was changed -> Save the current board
</search for>

<add before>
	#find the catagory id
	require "$boardsdir/forum.master";
	foreach $mlcatid (@categoryorder) {
		@boardsincat = split(/\,/, $cat{'$mlcatid'});
		foreach $mlboardid (@boardsincat) {
			if($mlboardid eq $currentboard) {
				$mlcat = $catid;
			}
		}
	}

	if($musername eq $username){
	}else{
		fopen (NEW, ">>$vardir/ModeratorLog.txt");
		print NEW qq~$username|1|$date|${$uid.$currentboard}{'cat'}|$currentboard|$threadid|$postid|$mmessage|$message|\n~;
		fclose (NEW);
	}

</add before>

<search for>
		if ($FORM{"del$count"} ne '') {
			@message = split(/\|/, $messages[$count]);
</search for>

<add after>
			if($mlpost eq "") {
				$mlpost = "$count";
			}else{
				$mlpost = "$count $mlpost";
			}
			if($mlwas eq "") {
				$mlwas = "POST $count<br>------------------<br>$message[8]<br>------------------";
			}else{
				$mlwas = "POST $count<br>------------------<br>$message[8]<br>------------------<br><br>$mlwas";
			}
</add after>

<search for>
	fclose(BOARDFILE);
	&dumplog($board);

	fclose(BOARDFILE);
</search for>

<add after>
	fopen (NEW, ">>$vardir/ModeratorLog.txt");
	print NEW qq~$username|0|$date|${$uid.$currentboard}{'cat'}|$currentboard|$thread|$mlpost|$mlwas|$nothing|\n~;
	fclose (NEW);
</add after>

<edit file>
Admin/Modlist.pl
</edit file>

<search for>
### END BOARDMOD ANCHOR ###
</search for>

<add before>
	$mod_log = "Moderator log|Bob The GoatGod|This mod creates a log of all moderating actions preformed by moderators and admins. The log file will then be accessible from a link under 'Forum Stats' in the admin center.|1.0 For YaBB 2.1|26/11/05";
	push (@installed_mods, "$mod_log");
</add before> 



Done part of it for you, so I can see this mod in my list, you have to add the link to the list yourself Wink
  
Back to top
WWW  
IP Logged
 
jans
Senior Member
****
Offline


Oooops!

Posts: 374
Location: Meppel
Joined: Oct 27th, 2005
Gender: Male
Re: Moderator Log v1.0
Reply #9 - Jan 16th, 2006 at 3:54pm
Print Post  
Here you have a Dutch translation too Wink


Code
Select All
###############################################################################
# Admin.lng (Administrative text definitions)					   #
###############################################################################
# YaBB: Yet another Bulletin Board							  #
# Open-Source Community Software for Webmasters					 #
# Version:	  YaBB 2.1								    #
# Released:	 November 8, 2005							  #
# Distributed by: http://www.yabbforum.com						#
# =========================================================================== #
# Copyright (c) 2000-2005 YaBB (www.yabbforum.com) - All Rights Reserved.     #
# Software by: The YaBB Development Team						  #
#		  with assistance from the YaBB community.			     #
# Sponsored by: Xnull Internet Media, Inc. - http://www.ximinc.com		#
#		   Your source for web hosting, web design, and domains.	   #
###############################################################################

%modlog_txt = (
'1' => qq~Dit is het logbestand voor de akties van beheerders en moderatoren.<br />Plaats de cursor over de 'Oud' en de 'Nieuw' tekst om te zien wat de gewijzigde inhoud was, en is.<br />NOOT:De links naar verwijderde berichten verwijzen niet naar de originele berichten.<br /><br />~,
'2' => "Moderator",
'3' => "Aktie",
'4' => "Datum",
'5' => "Categorie",
'6' => "Board",
'7' => "Onderwerp",
'8' => "Bericht",
'9' => "Bekijk",
'10' => "Weet je zeker dat je het logbestand wilt wissen?",
'11' => "Oud",
'12' => "Nieuw",
'13' => "Wis Log",
'14' => "er staan geen vermeldingen in het log",
);

%mod_actions = (
'0' => "Verwijder Bericht",
'1' => "Wijzig Bericht",
);

1; 

  
Back to top
WWW  
IP Logged
 
nwamf
New Member
*
Offline


I love YaBB 2.1!

Posts: 3
Joined: Mar 19th, 2006
Gender: Male
Re: Moderator Log v1.0
Reply #10 - Mar 23rd, 2006 at 12:17am
Print Post  
Would it be possible to log if a moderator deleted a user??
  
Back to top
WWWYIM  
IP Logged
 
Larian
Senior Member
****
Offline



Posts: 316
Location: Leipzig
Joined: Oct 22nd, 2002
Gender: Male
Re: Moderator Log v1.0
Reply #11 - Jun 13th, 2006 at 10:54am
Print Post  
I would prefer to choose which moderator-actions will be locked, and give options to lock every moderator-action (modify threads, modify users ...)

Larian
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint