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.

Warning PM Button

View previous topic View next topic Go down

In progress Warning PM Button

Post by DeathSkull on August 23rd 2015, 8:20 pm

Hello,

I was wondering if someone could help me find/make a JS code where I could put a button on all users' profile next to where it says "Profile" and "Ban this User"

I'd like it to say "Send Warning PM" and then it will take you to the pm page and you can put a reason and stuff of why they are receiving a warning. I know someone has it on their forums, but he says no one else can get it to work, so thats why I came here.

Thanks for your help in advance!

DeathSkull
New Member

Posts : 7
Reputation : 1
Language : English

http://help.forumotion.com/u97826contact

Back to top Go down

In progress Re: Warning PM Button

Post by DeathSkull on August 24th 2015, 10:26 pm

Anyone Please?...

DeathSkull
New Member

Posts : 7
Reputation : 1
Language : English

http://help.forumotion.com/u97826contact

Back to top Go down

In progress Re: Warning PM Button

Post by Hagoromo Otsutsuki on August 28th 2015, 1:48 am

you have to do it manually for now.

Hagoromo Otsutsuki
Forumember

Male Posts : 528
Reputation : 21
Language : English
Location : Heaven

http://naruto-omniverse.forumotion.com/

Back to top Go down

In progress Re: Warning PM Button

Post by APE on August 28th 2015, 2:01 am

You could add a button in the editor that has preset data in and when you press the button it comes up with a set of warnings you pick from !! and maybe it could be set to only pm's only.

I think @Ange Tuteur would be the best one for that sort of thing





APE
Manager
Manager

Male Posts : 8645
Reputation : 759
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

http://chatworld.forumotion.co.uk/

Back to top Go down

In progress Re: Warning PM Button

Post by Hagoromo Otsutsuki on August 28th 2015, 2:28 am

Thanks @Ape

Hagoromo Otsutsuki
Forumember

Male Posts : 528
Reputation : 21
Language : English
Location : Heaven

http://naruto-omniverse.forumotion.com/

Back to top Go down

In progress Re: Warning PM Button

Post by Ange Tuteur on August 28th 2015, 1:32 pm

I'd personally recommend a button with preset messages. Follow the instructions here : http://help.forumotion.com/t141539-is-that-possible-simple-menu-with-quick-replys#965626

Except use this script so it's only for admins / mods.
Code:
$(function() {
  if (!$.sceditor || !_userdata.user_level) return;
 
  $.sceditor.command.set('messages', {
    dropDown : function(editor, caller, callback) {
      var messages = {
        'Title' : 'Message content',
        'Hello' : 'Good day !',
        'Goodbye' : 'See you !'
      },
      a, d = document.createElement('DIV'), i;
   
      for (i in messages) {
        a = document.createElement('A');
        a.className = 'sceditor-font-option';
        a.title = messages[i];
        a.innerHTML = i;
        a.onclick = function() {
          callback(this.title);
          editor.closeDropDown(true);
          return false;
        };
        d.appendChild(a);
      }
     
      editor.createDropDown(caller, 'messages', d);
    },
 
    exec : function(c) {
      var e = this;
      $.sceditor.command.get('messages').dropDown(e, c, function(content) {
        e.insertText(content);
      });
    },
 
    txtExec : function(c) {
      var e = this;
      $.sceditor.command.get('messages').dropDown(e, c, function(content) {
        e.insertText(content);
      });
    },
 
    tooltip : 'Preset messages'
  });
 
  toolbar += '|messages'
});

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


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