WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: wp-Monalisa] Add JS to enable/hide smilies in commentarea (6 posts)

  1. infected
    Member
    Posted 5 years ago #

    Hi!

    Is it possible to a javascript that enable/hide smilies on click on a link? If someone uses more than x smilies, or the smilies are bigger than regular ones, the comment area will be longer and longer because all smilies are displayed by default.

  2. tuxlog
    Member
    Posted 5 years ago #

    hello infected,
    theres an easy way to handle this. just change the css of wpml-commentbox and add
    /* use these three to minimize space and scroll through the smilies */
    overflow:scroll;
    width: 470px;
    height: 200px;

    of course you have to adjust the height and width to your needs

    hope it helps

    cheers hans

  3. infected
    Member
    Posted 4 years ago #

    Hi tuxlog!

    Thanks for your reply! Of course this works, but it looks terrible with scrollbars. ;-) I think the mentioned js solution is a better way. I donĀ“t know much about JS, otherwise i would have already tried it...

  4. tuxlog
    Member
    Posted 4 years ago #

    hello infected,

    there will be a new wp-monalisa release with a hopefully nice ajax effect for showing more or less smilies. just have a look at http://www.tuxlog.de in about 10 hours :-)

    cheers hans

  5. tuxlog
    Member
    Posted 4 years ago #

    it is out :-)

  6. infected
    Member
    Posted 4 years ago #

    Danke :)

Topic Closed

This topic has been closed to new replies.

About this Topic