Disable 'last edit by...' message in posts for administrators?

Started by City Builder, January 29, 2011, 05:41:57 PM

Previous topic - Next topic

City Builder

Hi, I'm running SMF 2.0 RC4 and I'd like to know what I have to change (and where) so that it disables the 'last edit' notification on messages that the administrator edits.

Thanks,


Kays

Hi, see if this works.

In Post.php look for:


// Have admins allowed people to hide their screwups?
if (time() - $row['poster_time'] > $modSettings['edit_wait_time'] || $user_info['id'] != $row['id_member'])


And replace the second line with


if (!$user_info['is_admin'] && (time() - $row['poster_time'] > $modSettings['edit_wait_time'] || $user_info['id'] != $row['id_member']))


That should hide all admin edits. Including their own posts

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

City Builder


Kays


If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods


Doburpally

Quote from: Kays on February 07, 2011, 10:47:10 PM
Hi, see if this works.

In Post.php look for:


// Have admins allowed people to hide their screwups?
if (time() - $row['poster_time'] > $modSettings['edit_wait_time'] || $user_info['id'] != $row['id_member'])


And replace the second line with


if (!$user_info['is_admin'] && (time() - $row['poster_time'] > $modSettings['edit_wait_time'] || $user_info['id'] != $row['id_member']))


That should hide all admin edits. Including their own posts

Thanks Kays ;)

P.S
I have made this in to a Package installer all credit goes to Kays :)


Doburpally

Quote from: K@ on April 11, 2011, 04:54:46 AM
Why not submit it to the mod site? ;)

Not a bad idea 8)

Quote from: Arantor on April 11, 2011, 05:05:01 AM
(If it is, make sure it's renamed first to not include spaces in the filename.)

The file will be renamed accordingly ;)

I am talking to Kays, It was him that posted the fix, I just incorporated it in to an install package, giving Kays full credit of course :D
One of us will upload it to the mod site :P

Kays

Hi, sorry for the slow response.

If you wish to submit it as a mod, I don't have a problem with it. :)

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

Sleezy

SMFNew Advocate for SMFNew (Dagger)


Sleezy

No, I am trying to say, how could you submit it, if its just words?
SMFNew Advocate for SMFNew (Dagger)

Illori

it is more then just words, there are code changes as listed above.

Doburpally

Added file to Mods database, it's now awaiting approval.
Mod name = Disable 'last edit by....' for Administrators

later on I'll be adding support for 1.1.11 + ;)

I have found the code and undergoing testing 8)

City Builder

Thanks for turning this into a mod, I lost it with some update to my forum but now it's back in as a mod, love it and find it exceptionally useful since we regularly modify peoples posts to award them awards that we use, and it makes it much nicer not to see that a post has been edited by an admin when we award them an award in the OP on the topic.

Doburpally

Quote from: City Builder on April 17, 2011, 07:37:45 AM
Thanks for turning this into a mod, I lost it with some update to my forum but now it's back in as a mod, love it and find it exceptionally useful since we regularly modify peoples posts to award them awards that we use, and it makes it much nicer not to see that a post has been edited by an admin when we award them an award in the OP on the topic.

No worries bud. I'm glad that you Like it ;)

coldy316

Quote from: Guy with a Colt on April 16, 2011, 09:30:53 PM
Added file to Mods database, it's now awaiting approval.
Mod name = Disable 'last edit by....' for Administrators

later on I'll be adding support for 1.1.11 + ;)

I have found the code and undergoing testing 8)


working perfect and find on 2.0RC5 i would have a preview but adult sites are a no no in smf support

thumbs up on this and thanks for the update on this colt.... thumbs up all the way
Would you believe it that i live in gods country
Australia

Kays

For 1.1.x the second line is slightly different. Use this instead:


if (!$user_info['is_admin'] && (time() - $row['posterTime'] > $modSettings['edit_wait_time'] || $ID_MEMBER != $row['ID_MEMBER']))

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

Doburpally

Quote from: Kays on April 29, 2011, 07:52:30 AM
For 1.1.x the second line is slightly different. Use this instead:


if (!$user_info['is_admin'] && (time() - $row['posterTime'] > $modSettings['edit_wait_time'] || $ID_MEMBER != $row['ID_MEMBER']))


Cheers for that, I already found it ;) I sifted through the 1.1.13 installer :)

The mod is still awaiting approval  ???
Does it really take forever for a mod to get approved? :o

Advertisement: