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 Sun Aug 23, 2015 2: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 Mon Aug 24, 2015 4: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 Thu Aug 27, 2015 7:48 pm

you have to do it manually for now.

Hagoromo Otsutsuki
Forumember

Male Posts : 548
Reputation : 22
Language : English
Location : Fictional Battle Omniverse

http://fictionalomniverse.forumotion.com/

Back to top Go down

In progress Re: Warning PM Button

Post by APE on Thu Aug 27, 2015 8:01 pm

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 : 9235
Reputation : 820
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 Thu Aug 27, 2015 8:28 pm

Thanks @Ape

Hagoromo Otsutsuki
Forumember

Male Posts : 548
Reputation : 22
Language : English
Location : Fictional Battle Omniverse

http://fictionalomniverse.forumotion.com/

Back to top Go down

In progress Re: Warning PM Button

Post by Ange Tuteur on Fri Aug 28, 2015 7:32 am

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 : 13039
Reputation : 2719
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