Automatic PM to the creator when an Staff Moves/Deletes a post - Page 3 Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.
+31
Beyonder
Agent Ward
Anzo
SophieDophs
_Twisted_Mods_
SarkZKalie
Van-Helsing
Count Dooku
Quirinus
PotSmuggle
BL@DE
Derri
Puttfunhouse.
Jaffa909
Walshy95
Clug
Caihlem
KQ
jack1
Farhan Honey
Kuro L Lawliet
Behaviour???
GG2012
Doctor Inferno
Flamin
Dumbledore27
marvin_silent25
Jophy
Ape
Sanket
invisible_fa
35 posters

    Automatic PM to the creator when an Staff Moves/Deletes a post

    Poll

    Automatic PM to the creator when an Staff Moves/Deletes a post

    [ 68 ]
    Automatic PM to the creator when an Staff Moves/Deletes a post - Page 3 Bar_left88%Automatic PM to the creator when an Staff Moves/Deletes a post - Page 3 Bar_right [88%] 
    [ 9 ]
    Automatic PM to the creator when an Staff Moves/Deletes a post - Page 3 Bar_left12%Automatic PM to the creator when an Staff Moves/Deletes a post - Page 3 Bar_right [12%] 

    Total Votes: 77
    invisible_fa
    invisible_fa
    Forumember


    Male Posts : 966
    Reputation : 21
    Language : Klingon
    Location : Does it matter? I'm Invisible, you will not see me anyway

    Automatic PM to the creator when an Staff Moves/Deletes a post - Page 3 Empty Automatic PM to the creator when an Staff Moves/Deletes a post

    Post by invisible_fa May 12th 2010, 10:00 pm

    First topic message reminder :

    First of all, I`m sorry if this was already suggested, but I didn´t saw it.

    It would be nice that, when a Staff moves/deletes a post, the post creator would recive a PM in the forum comunicating the action, for example:


    "Hello [Name of the person who created the post]:

    The Moderator [name of the mod wich did the action] has [moved/deleted (depending of what was done)] your post called [post title with hyperlink] from [name of the section in wich was the post in] to [new section wich was moved to]"

    This would be if the post gets moved, but, if post gets deleted, simply gets the advice of it, something like:

    Hello [Name of the person who created the post]:

    "The Moderator [name of the mod wich did the action] has deleted your post. You can PM him/her to ask the reason of this"

    Yes, I know some of you will say that users can go to their profile and look for your recently done post to see if a post was deleted or moved, but some people don´t do it, trust me, and very often makes a new post asking things like:

    "Where is my post?"

    And Staff have to answer it saying that it have been moved, deleted...etc...


    Last edited by invisible_fa on May 15th 2010, 5:52 pm; edited 2 times in total
    invisible_fa
    invisible_fa
    Forumember


    Male Posts : 966
    Reputation : 21
    Language : Klingon
    Location : Does it matter? I'm Invisible, you will not see me anyway

    Automatic PM to the creator when an Staff Moves/Deletes a post - Page 3 Empty Re: Automatic PM to the creator when an Staff Moves/Deletes a post

    Post by invisible_fa April 12th 2015, 5:38 am

    Hello!

    @Daemon thank you really much for your effort and for sharing the code with us, but this is not exactly what I am suggesting.

    Let me explain it:

    I don´t want to show the message in the own post....but send a private (automatted) message to the post creator, so he/she will be notified at the moment when a Staff moves/deletes his/her post.

    Your idea is good, but the aim of this suggestion is to solve the problem of people not finding his created topic and asking things like "where has my post gone?"

    By this way, the user would be privatedly notified of the change, and it would be a faster method, and, of course, it would be less work to the Staff because they will not have to be answering questions about "where my post has gone?"

    But, anyways, thank you really much for share your code, is fantastic, I really like it !!


    Last edited by invisible_fa on April 16th 2015, 8:16 pm; edited 1 time in total
    invisible_fa
    invisible_fa
    Forumember


    Male Posts : 966
    Reputation : 21
    Language : Klingon
    Location : Does it matter? I'm Invisible, you will not see me anyway

    Automatic PM to the creator when an Staff Moves/Deletes a post - Page 3 Empty Re: Automatic PM to the creator when an Staff Moves/Deletes a post

    Post by invisible_fa April 16th 2015, 8:16 pm

    BUMP Wink
    Daemon
    Daemon
    Forumember


    Posts : 104
    Reputation : 91
    Language : Português

    Automatic PM to the creator when an Staff Moves/Deletes a post - Page 3 Empty Re: Automatic PM to the creator when an Staff Moves/Deletes a post

    Post by Daemon April 17th 2015, 2:51 pm

    Code:
    jQuery(document).ready(function() {
    if(_userdata.user_level > 0) {
      if(window.location.href.search('/t') >= 0) {
      jQuery('a[href*="mode=editpost"]').click(function() {
                var jUser = jQuery(this).parents('.post').find('.username, .author a').text();
                var jLink = jQuery(this).parents('.post').find('.posthead a, .topic-title a').attr('href');
                if(jUser != _userdata.username) {
                    sessionStorage.setItem("member_post_edited", jUser);
                    sessionStorage.setItem("link_to_post", jLink);
                }
      });
      }
      if(window.location.href.search('mode=editpost') >= 0) {
      var x = sessionStorage.getItem('member_post_edited');
      var y = sessionStorage.getItem('link_to_post');
      if(x && y) {
        jQuery('input[name="post"]').click(function(d) {
          d.preventDefault();
          jQuery.post('/post?p=' + jQuery('input[name="p"]').val() + '&mode=editpost', {
                      'message': jQuery('textarea').sceditor('instance').val(),
                      'post': '1',
                      'attach_sig': '1'
          }).done(function(e) {
                  var href = jQuery(e).find('a[href^="/viewtopic"]').attr('href');
                  jQuery.post('/privmsg', {
                              'mode': 'post',
                              'post': '1',
                              'folder': 'inbox',
                              'username': x,
                              'subject': 'Your post has been edited by a staff member',
                              'message': '[b]Link to the edited post:[/b] ' + window.location.protocol + '//' + window.location.host + y + ''
                  }).done(function() {
                          alert("The member was successfully notified");
                          sessionStorage.removeItem('member_post_edited');
                          sessionStorage.removeItem('link_to_post');
                          location.href = href;
                  }).fail(function() {
                          alert("An error occurred while trying to send a notification");
                          location.href = href;
                  });
          }).fail(function() {
                  alert("An error occurred while trying to edit post. Try again");
          });
        });
      }
      }
    }
    });

    This code serves to notify a member when his post is edited by a staff member.
    You can modify it...
    PunBB and PhpBB3



    Enjoy! Wink
    Nemo
    Nemo
    Active Poster


    Male Posts : 1203
    Reputation : 119
    Language : Greek, English, French

    Automatic PM to the creator when an Staff Moves/Deletes a post - Page 3 Empty Re: Automatic PM to the creator when an Staff Moves/Deletes a post

    Post by Nemo April 23rd 2015, 11:37 pm

    I like this idea! Voted yes! Smile
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51515
    Reputation : 3519
    Language : English
    Location : United States

    Automatic PM to the creator when an Staff Moves/Deletes a post - Page 3 Empty Re: Automatic PM to the creator when an Staff Moves/Deletes a post

    Post by SLGray March 19th 2016, 10:15 pm

    Bumping to move this suggestion to the first page.



    Automatic PM to the creator when an Staff Moves/Deletes a post - Page 3 Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.