News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Log Mod Account Edits

Started by SusanTN, September 03, 2006, 08:48:16 PM

Previous topic - Next topic

SusanTN

Link to Mod
Rate this Mod

LogModAccountEdits will record in the Moderation Log any account edits made by a user to any other account but their own. Currently SMF does not log account edits in the Moderation Log. This Module adds this important audit trail to the Moderation Log and records which user was edited (with a link to their account page, Display Name, and User ID). It also displays what section was edited. See the attached screenshot for a better picture of the function of this mod.


Screen Shot




Revisions


1.0 Initial version
1.1 all strings were moved to the Language files.
1.2 Fixed a bug where a new line was not properly added which was resulting in an error log entry.
1.3 Bug wasn't from a new line, it was from language text and language file being different.
1.4 New Zip file after reports the old one was unopenable
1.5 removed line feed which wasn't susposed to be there.
1.6  Fixed version numbering


Skipdawg

I'l have to check this out latter, looks like a rather useful Mod.  ;)
Skipdawg's Community

Powered by SMF 1.1.3

LostProphecy

as will i :)

tell me in the future is it at all possible to further define what they change?

i've had a past issue when two of my admins have fought and one has accussed everyone else that they tampered with their post count, so defining it further would be great :) or is that virtually impossible?
Angelus Ex Quo Nox

SusanTN

#3
Quote from: LostProphecy on September 07, 2006, 06:46:20 PM
as will i :)

tell me in the future is it at all possible to further define what they change?

i've had a past issue when two of my admins have fought and one has accussed everyone else that they tampered with their post count, so defining it further would be great :) or is that virtually impossible?

I don't think it is possible, if anyone thinks different send me a pm with a suggestion

For what you want edit profile.php and find the following lines.....
                // Change the number of posts.
                if (isset($_POST['posts']) && allowedTo('moderate_forum'))
                        $profile_vars['posts'] = $_POST['posts'] != '' ? (int) strtr($_POST['posts'], array(',' => '', '.' => '', ' ' => '')) : '\'\'';


Change it to

                // Change the number of posts.
                if (isset($_POST['posts']) && allowedTo('moderate_forum')) {
                        $profile_vars['posts'] = $_POST['posts'] != '' ? (int) strtr($_POST['posts'], array(',' => '', '.' => '', ' ' => '')) : '\'\'';
                if ($memID != $ID_MEMBER) logAction($txt['LogModAccountEdits_Action'], array($txt['LogModAccountEdits_Which'] => '<a href="' . $scripturl. '?action=profile;u='. $memID .';sa=account">' . $user_profile[$memID]['realName'] . '</a>', $txt['LogModAccountEdits_Username'] => $user_profile[$memID]['memberName'], $txt['LogModAccountEdits_UserID'] => $memID, $txt['LogModAccountEdits_What'] => $txt[$_REQUEST['sa']], 'Changed Post Count' => $_POST['posts'],));
}


If you want to record a staff member editing thier own post counts, just remove the if ($memID != $ID_MEMBER) and leave the rest.

This may result in duplicate LogModAccountEdits log entries for edits of other user's post counts

By default, my mod will not record a moderator or administrator who's editing their own account, just ones editing others. 

mrselnombre

(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination.
Total Twaddle.

SusanTN

updated yesterday... Just download the newest version

buhaychat.com

Clean install into 1.1.1 ... great mod, thanks!

SusanTN


robotman321

this doesnt seem to work for me on 1.1.2 any reason why?
whats a signature without text, WOOT!

SusanTN

Nope none. I checked on my forum which is running 1.1.2 and I have....

Edited user account Yesterday at 07:19:15 PM ME Administrator XXX.XXX.XXX.XXX
Which: auser Users name: auser User ID: 2704 What: Account Related Settings 

I am running the same version which is available on the package manager... Could another module you installed have caused a conflict? What does the forum error log show any issues?

wm

The package info file does not have 1.1.2 listed yet.

Thanks for making this available!

William

husam

can you make this work with 1.1.2?

I get this error:

Install Actions
Installations actions for "LogModAccountEdits":
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

Mindriot

Would love to see this work for 1.1.2 as well.

wm

It does work for 1.1.2, I'm using it, it's just the header in the package file has not been updated.  If memory serves I downloaded the files and edited them to change the version.

SusanTN

Sorry, it's fixed.  I thought I had uploaded version 1.9 a long time ago when I removed the version check. Well it's up now!

kamili34

#15
This mod install correct but I can't see any changes why ? What goes wrong ?

I see standard options :/

SusanTN

Edit a user's profile and check the moderation log. If you see a log entry then it's working.


kamili34

Yes it works how stupid i was.  :P
thakns for good mod

Regarts kamili34

gregma

Version 1.9 on SMF version 1.1.3.  I'm getting the following errors:

Apply Filter: Only show the error messages of this URL  http://nwcdl.com/forum/index.php?action=modlog [nofollow]

Apply Filter: Only show the errors with the same message
8: Undefined index: modlog_ac_edited_account

File: /home/nwcdl/public_html/forum/Sources/Modlog.php
Line: 144

Ideas?

bbbmmm

This is for only administrators right? Can I allow moderators to see this?

Advertisement: