Announcement

Collapse
No announcement yet.

Show edited by note on edited messages?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Show edited by note on edited messages?

    is set to NO for my usergroup (admin) and yet it still shows, why ?!
    rb~
    http://images.macrumors.com/vb/image...blackapple.gif iPhone 3G[S] - iOS4 - 16gb [ http://totalsmartphone.net ]

  • #2
    Did you enter an edited reason, was the edited by note already showing. The setting is not retroactive.

    Comment


    • #3
      no, i did not enter a reason and i knew/know it's not retro-active but it's not working on posts i edit after checking my settings, this is not something that needs to be set for each forum/sub-forum is it ?

      thanks.
      rb~
      http://images.macrumors.com/vb/image...blackapple.gif iPhone 3G[S] - iOS4 - 16gb [ http://totalsmartphone.net ]

      Comment


      • #4
        I have the same problem as well; editing a post as Admin still shows the "last edited by" message even to non-admin users.

        Comment


        • #5
          create a new plugin:

          hook location: postbit_display_complete

          Paste this code in:

          if ($this->registry->userinfo['usergroupid'] <> '6')
          {
          $show['postedited'] = false;
          }
          else
          {
          // show to admins only if post was edited
          if ($this->post['edit_userid'])
          {
          $show['postedited'] = true;
          }
          }

          It'll hide the last edited info from all users but admin.

          Comment


          • #6
            Thanks DoE; I believe what the users wanted was to have the ability for Administrators to edit messages WITHOUT the "Last Edited By" message showing to ordinary users (or anyone). Your plugin says that it will hide last edited info from all users except admin. Does this apply only to edits done by Admins, or for all users? Seems to be the latter (which is not what we want; we want edits made by normal users to still show)

            Comment


            • #7
              It'll hide the last edited by from everyone who is not an admin.

              To hide only if admins made the edit? You will need to check by userid, I think (been a while).

              Try this for the plugin code (replace XX with Admins UserID):

              if ($this->post['edit_userid'] == 'XX')
              {
              $show['postedited'] = false;
              }

              For multiple admins, try this (replace numbers with actual admin userids):

              $adminuserids = array(1,2,68,47);
              if (in_array($this->post['edit_userid'], $adminuserids))
              {
              $show['postedited'] = false;
              }

              Thing is, the lastedited only stores the userid of the person who lasted edited it. If it was an admin it will completely hide the last edited info, if it was an ordinary user, it will display.

              Comment


              • #8
                not to dis your work around, but it worked for almost a year and suddenly it stopped..
                rb~
                http://images.macrumors.com/vb/image...blackapple.gif iPhone 3G[S] - iOS4 - 16gb [ http://totalsmartphone.net ]

                Comment


                • #9
                  Sounds like this may work (I like the second one better as it allows for multiple admins; but how do I make a plugin? Would you be able to help with making an xml so that I can just import it into my plugin manager?

                  Thanks!

                  Originally posted by DoE View Post
                  It'll hide the last edited by from everyone who is not an admin.

                  To hide only if admins made the edit? You will need to check by userid, I think (been a while).

                  Try this for the plugin code (replace XX with Admins UserID):

                  if ($this->post['edit_userid'] == 'XX')
                  {
                  $show['postedited'] = false;
                  }

                  For multiple admins, try this (replace numbers with actual admin userids):

                  $adminuserids = array(1,2,68,47);
                  if (in_array($this->post['edit_userid'], $adminuserids))
                  {
                  $show['postedited'] = false;
                  }

                  Thing is, the lastedited only stores the userid of the person who lasted edited it. If it was an admin it will completely hide the last edited info, if it was an ordinary user, it will display.

                  Comment


                  • #10
                    Originally posted by DoE View Post
                    It'll hide the last edited by from everyone who is not an admin.

                    To hide only if admins made the edit? You will need to check by userid, I think (been a while).

                    Try this for the plugin code (replace XX with Admins UserID):

                    if ($this->post['edit_userid'] == 'XX')
                    {
                    $show['postedited'] = false;
                    }

                    For multiple admins, try this (replace numbers with actual admin userids):

                    $adminuserids = array(1,2,68,47);
                    if (in_array($this->post['edit_userid'], $adminuserids))
                    {
                    $show['postedited'] = false;
                    }

                    Thing is, the lastedited only stores the userid of the person who lasted edited it. If it was an admin it will completely hide the last edited info, if it was an ordinary user, it will display.
                    trying to implement this since i can't get it resolved otherwise, what do i set for "Hook Location" ?

                    thanks.
                    rb~
                    http://images.macrumors.com/vb/image...blackapple.gif iPhone 3G[S] - iOS4 - 16gb [ http://totalsmartphone.net ]

                    Comment


                    • #11
                      I can't re-enforce this enough: Changing this setting does not make old edited by notes go away. If you are part of any additional usergroups that do have the setting set to yes, it'll still show. If you edit a post and leave a reason, it will show.

                      Comment


                      • #12
                        thanks Zachery.

                        it was a usergroup setting which caused the issue in my case.... all solved.
                        rb~
                        http://images.macrumors.com/vb/image...blackapple.gif iPhone 3G[S] - iOS4 - 16gb [ http://totalsmartphone.net ]

                        Comment

                        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                        Working...
                        X