Advertisement:

Author Topic: How to turn off "Last Edit" statement, can admins make edits without it showing?  (Read 1175 times)

JimTrail

  • Guest
Hello;

There are two questions that I need answered:

1). How do I turn off/on the "« Last Edit: date time username" that shows at the bottom of the page when you make edits?

2). Can the SMF 2.0 be set so that admins/moderators edit posts without the "« Last Edit: date time username" being shown but still show edits made by regular users?

Thanks.

Offline Oldiesmann

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 24,878
  • Gender: Male
  • Ask me about the function DB :)
    • oldiesmann on Facebook
    • Oldiesmann on GitHub
    • https://www.linkedin.com/in/michaeleshom on LinkedIn
    • @oldiesmann on Twitter
    • Archie Comics Fan Forum
1. Admin -> Forum -> Posts and Topics. Set "Courtesy Edit Wait Time" to 0.

2. Yes, but not without editing the code.

Sources/Post.php

Find
Code: (Line 1875) [Select]
if (time() - $row['poster_time'] > $modSettings['edit_wait_time'] || $user_info['id'] != $row['id_member'])
Replace
Code: [Select]
if ((time() - $row['poster_time'] > $modSettings['edit_wait_time'] || $user_info['id'] != $row['id_member']) && !($user_info['is_admin'] || $user_info['is_mod']))
Find
Code: (Line 2769) [Select]
if (time() - $row['poster_time'] > $modSettings['edit_wait_time'] || $user_info['id'] != $row['id_member'])
Replace
Code: [Select]
if ((time() - $row['poster_time'] > $modSettings['edit_wait_time'] || $user_info['id'] != $row['id_member']) && !($user_info['is_admin'] || $user_info['is_mod']))
The line numbers are based on a default installation and may be different if you have any mods installed that modify Post.php.
Michael Eshom
Cincy Space - now open!

JimTrail

  • Guest

Oldiesmann;

Thanks for responding to my question.

I will give it a try. Thanks again.

Offline YogiBear

  • SMF Hero
  • ******
  • Posts: 1,964
Have a look in the Modifications section, Jim. I'm sure I've seen somewhere a mod which allows admins and moderators (though I'm not sure if it can be set to admins only) to edit posts without it showing.
SMF v2.0.17  Mods : Ohara YouTube Embed v1.2.9,  Custom Tab v1.2 , Bakers' Dozen Pages v1.2 , SMFPacks Shoutbox v1.1,  Board Color & Icons v1.1 , Simple Image Upload , Snow & Garland v1.4
PHP  v.7.3.6