The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

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

Page 3 of 3 Previous  1, 2, 3

View previous topic View next topic Go down

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

88% 88% 
[ 68 ]
12% 12% 
[ 9 ]
 
Total Votes : 77

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

Post by invisible_fa on 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
Forumember

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

Back to top Go down


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

Post by invisible_fa on 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
Forumember

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

Back to top Go down

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

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

BUMP Wink

invisible_fa
Forumember

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

Back to top Go down

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

Post by Daemon on 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

Daemon
New Member

Posts : 15
Reputation : 9
Language : Portuguęs

Back to top Go down

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

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

I like this idea! Voted yes! Smile

Nemo
Support Moderator
Support Moderator

Male Posts : 992
Reputation : 99
Language : Greek, English, French

http://www.helpgr.forumgreek.com

Back to top Go down

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

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

Bumping to move this suggestion to the first page.


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


SLGray
Administrator
Administrator

Male Posts : 35638
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Page 3 of 3 Previous  1, 2, 3

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum