ellatrix / new-smileys Goto Github PK
View Code? Open in Web Editor NEWThe New WordPress.com Smileys
The New WordPress.com Smileys
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>
Martini: >-|
doesn't work at all because of >
(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 ’
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 :)
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 :?
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?
Is this MIT license ?
My I use these on my website ?
Thanks. Great work :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.