Code Monkey home page Code Monkey logo

new-smileys's People

Contributors

avryl avatar ellatrix avatar ipstenu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

new-smileys's Issues

Plugin breaks smileys in bbPress

I tried the plugin on a site running bbPress. Smileys were replaced as expected in normal WordPress posts, pages, and comments. But in bbPress posts it left a broken image.

Looking at the markup in a bbPress post without the plugin, smilies appear something like this:
<img src="https://example.com/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley">

With the plugin active, in a bbPress post the beginning of the file name and the file extension is removed. Everything else stays the same:
<img src="https://example.com/wp-includes/images/smilies/smile" alt=":)" class="wp-smiley">

In the rest of WordPress, the plugin replaces the smiley with the new markup:
<span class="wp-smiley emoji emoji-smile" title=":)">:)</span>

Some smilies are broken

Martini: >-| doesn't work at all because of &gt; (pull req submitted)

Heart: If you START a line with <3 it won't display (probably because of the leading < ) but even if you make it a caret and not the html entity, it's not translating.

Blush: Using &#8217; doesn't seem to work, though if you make the code '^^โ€˜' => 'blush', it will...

Something's weird about how it's pulling in entities and parsing them. We may need Joen's brilliance, or someone to share :)

no smilie after a dot .

If you end a sentence by a dot . and you put a smilie code, then it doesn't display.

eg: You look buggy. :?

but this works:

You look buggy :?

How to install?

I feel like I'm missing something obvious here but I downloaded the contents of the master branch in a zip and unzipped that to wp-content/plugins/new-smileys/ but it won't turn up in the admin panel -> plugins section.

What am I doing wrong?

License

Is this MIT license ?

My I use these on my website ?

Thanks. Great work :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.