Warning PM Button

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.
avatar
Hagoromo Otsutsuki
Forumember

Male Posts : 593
Reputation : 24
Language : English
Location : Between Time and Space

http://fictionalomniverse.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



avatar
APE
Administrator
Administrator

Male Posts : 12103
Reputation : 1226
Language : fluent in dork / mumbojumbo & English haha

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
avatar
Hagoromo Otsutsuki
Forumember

Male Posts : 593
Reputation : 24
Language : English
Location : Between Time and Space

http://fictionalomniverse.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'
});
avatar
Ange Tuteur
Forumaster

Male Posts : 13195
Reputation : 2910
Language : EN10, FR5, JA5
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Back to top


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