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.

Smiley button on the New Topic/Reply page?

View previous topic View next topic Go down

In progress Smiley button on the New Topic/Reply page?

Post by Wealh on October 24th 2015, 10:02 am

I want to add the smileys button on the New topic text editor. I don't want the smiley box outside the editor.

http://boredom.iftopic.com/forum

Wealh
Forumember

Posts : 69
Reputation : 6
Language : English

http://boredom.iftopic.com/

Back to top Go down

In progress Re: Smiley button on the New Topic/Reply page?

Post by omarpop23 on October 24th 2015, 10:19 am


omarpop23
Forumember

Male Posts : 144
Reputation : 3
Language : Arabic
Location : Egypt

http://egyover.ahlamontada.com

Back to top Go down

In progress Re: Smiley button on the New Topic/Reply page?

Post by Wealh on October 24th 2015, 10:40 am


I want to add my website smileys, not those of Twitter, but thanks!

Wealh
Forumember

Posts : 69
Reputation : 6
Language : English

http://boredom.iftopic.com/

Back to top Go down

In progress Re: Smiley button on the New Topic/Reply page?

Post by Ange Tuteur on October 24th 2015, 11:35 am

Hi @Wealh,

It's possible to do this by making a small modification to the editor. Go to Admin Panel > Modules > JavaScript codes management and create a new script with the following settings.

Placement : In all the pages
Code:
(function() {
  document.write('<style type="text/css">div.posting-block{width:99%}</style>');

  $(function() {
    if (!document.getElementById('quick_reply') && $.sceditor && !/emoticon/.test(toolbar)) {
      var smile = document.getElementById('smiley-box');
      toolbar = toolbar.replace(/date/, 'emoticon,date');
   
      if (smile) smile.style.display = 'none';
    }
  });
}());

That should remove the box and add the button to the editor.

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