1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[Redactor] Smiley Panel open by default.

Discussion in 'XenForo Suggestions' started by Shelley, Jun 5, 2013.

  1. Shelley

    Shelley Well-Known Member

    The suggestion derived from a comment someone made (sorry I can't remember your name) so thought it was worth posting as a suggestion.

    In the admincp have a checkbox/option so admin owners can set whether the smiley panel is open on default rather than having to click the smiley icon in the redactor toolbar. At this time we have to click the icon to enable all smilies to show would be nice to have an option where the smilies are on display as default if the owner of site choose them to be.

    Thanks for the consideration.
    Russ, ge66, Azaly and 5 others like this.
  2. Luxus

    Luxus Well-Known Member

    I like the idea but I would add a user option.
    Adam Howard, Alien and Shelley like this.
  3. Shelley

    Shelley Well-Known Member

    Absolutely. That I think would be more beneficial as you would be catering for both parties. (y)
  4. Jeremy

    Jeremy XenForo Moderator Staff Member

    I remember this discussion elsewhere. I will probably modify mine so it functions like that, but I can see the usefulness here.
    Lisa and Shelley like this.
  5. Shelley

    Shelley Well-Known Member

    Lisa likes this.
  6. Jeremy

    Jeremy XenForo Moderator Staff Member

    @Shelley, we'll see. Its still a 'probably' at this point.
    Shelley likes this.
  7. Shelley

    Shelley Well-Known Member

    Just out of curiosity. Is it a big coding job to do or something you can/could do if you were so inclined in a few hours/day? Just wanted to ask on the chance I request this as an add-on.
  8. Jeremy

    Jeremy XenForo Moderator Staff Member

    Most likely a few hours, but I'd have to see the code really. Clicking on the editor makes an AJAX call to http://xenforo.com/community/index.php?editor/smilies (with a few POST data). That code could most likely be extracted or reused to insert into the editor template to begin with.

    However, without seeing 1.2, I'm not 100% certain. A proper assessment would have to occur post-release. (y)
    Shelley likes this.
  9. Brogan

    Brogan XenForo Moderator Staff Member

    Mike said it needs an Ajax call to trigger it, which could theoretically be done on load.

    An alternative could be to trigger it when clicking in the text area, to save it being loaded when it's not going to be used?

    My personal preference is as it is currently.
    Azaly, Alien, Shelley and 1 other person like this.
  10. SonicRC

    SonicRC Well-Known Member

    That's actually a very good idea. (y)
  11. Shelley

    Shelley Well-Known Member

    I had thought about that but then i though what if you start off by typing your post (panel opens) you use smiley and then reach to add some code and click on the code button and click back in would the smiley panel close and then open. Not sure how this would work but the text area would be a good choice if it didn't entail the panel opening and then closing if you clicked on buttons to add code etc.

    It's no biggie as it functions now (it's a vast improvement as i see it with smilies under the text) but it'll be a bonus to have such an option.
  12. Jeremy

    Jeremy XenForo Moderator Staff Member

    I think Brogan is saying that once you focus on the editor (anywhere) it makes the call and loads the smilies in, but never hides them until you click it closed.
  13. Russ

    Russ Well-Known Member

    Personally I feel the editor is a little bland at the moment so some colors from the smiley couldn't hurt :D, if a plugin gets made to do it, I'll definitely install (y)
  14. Shelley

    Shelley Well-Known Member

    Ah I see. Yeah then clicking in the text area would be good then.
  15. ibnesayeed

    ibnesayeed Well-Known Member

    I would like to see a tabbed interface having first tab "history/recently used" and remaining tabs will hold categorized smilies. (as @Mike has given a hint, "possibility for more organization options") History can be stored in users' browser's local storage to avoid Ajax calls. I have seen similar approach in WhatsApp and new Google Hangouts. They use icons to represent tabs. :)

    If this approach is taken and if the smiley drawer below the editor is always open then we may get rid of the smiley icon from the main toolbar to save space. :)
    Shelley likes this.
  16. ge66

    ge66 Active Member

    Did anyone make an addon or otherwise fix this? :)
  17. Luxus

    Luxus Well-Known Member

    What is there to fix? It's a suggestion, not a bug.

Share This Page