Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Adding smiles to backend and frontend

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 1110 Views
  • raamklaza
    Avatar
    Community Member
    182 Posts

    Adding smiles to backend and frontend Link to this post

    How can i ad smilies in the following places?

    1. BE: in pages in the admin section (in the section of bold italic etc etc)
    2. FE: post comment section
    3. FE: forums

    Does anyone have an idea.

  • dio5
    Avatar
    Community Member
    501 Posts

    Re: Adding smiles to backend and frontend Link to this post

    For adding smilies to the tinymce (admin section) - have a look at the tinymce documentation.

    http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/emotions

    Note that SS has customised tinymce for the cms, so you might need to do some code research.

    Another option would be to use an external class - some googling brought me http://www.phpclasses.org/browse/file/2694.html. Then you could just use that to replace every smiley tag before outputting any content.

    Just trying to hint.. never did any of this myself (yet).

  • raamklaza
    Avatar
    Community Member
    182 Posts

    Re: Adding smiles to backend and frontend Link to this post

    i found this at /cms/javascript/tinymce.template

          theme_advanced_buttons1 : "italic,underline,strikethrough,separator,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,separator,bullist,numlist,outdent,indent,hr,charmap",
          theme_advanced_buttons2 : "undo,redo,separator,cut,copy,paste,separator,search,replace,separator,flash",
          theme_advanced_buttons3 : "",
          theme_advanced_buttons3_add : "emotions",
       /*
          theme_advanced_buttons1 : "bold,italic,underline,strikethrough,separator,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,separator,bullist,numlist,outdent,indent,hr,charmap",
          theme_advanced_buttons2 : "undo,redo,separator,cut,copy,paste,separator,search,replace,separator,link,unlink,anchor,image,separator,cleanup,removeformat,visualaid,code,separator,tablecontrols",
       */   

    The last part is commented out.

    But the last part is visible in the cms, the first part (the part with emotions in there) is not commented and should be active on the cms right? But it isn't active..

    1110 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.