ElkArte Community

Extending Elk => Addons => Topic started by: Spuds on September 28, 2014, 08:12:36 pm

Title: [ADDON] Emoji !
Post by: Spuds on September 28, 2014, 08:12:36 pm
Emoji for Elkarte

REQUIRES ElkArte 1.0.1

License
o This ElkArte Addon is subject to the terms of the Mozilla Public License version 1.1 (the "License"). You can obtain a copy of the License at http://mozilla.org/MPL/1.1/
o All images used in this addon are copyright Emoji One, License: Creative Commons Attribution-ShareAlike 4.0 International. You can obtain a copy of the License at [http://creativecommons.org/licenses/by-sa/4.0/](http://creativecommons.org/licenses/by-sa/4.0/)

Introduction
o Adds capability to display over 800 :emoji: tags in your posts
o Works in the plain text and wysiwyg editor
o Start by entering a : followed by a couple of characters, a selection box of matched emoji's will appear
o There no admin settings available with this addon

Repo / Download
Repo: https://bitbucket.org/spuds_/elk-emoji
Download: http://addons.elkarte.net/feature/emoji.html
Title: Re: Emoji !
Post by: kucing on September 28, 2014, 11:54:47 pm
oooh... I will use this. :D thanks!
Title: Re: Emoji !
Post by: meetdilip on September 29, 2014, 01:42:25 am
Good work :thumbsup:
Title: Re: Emoji !
Post by: emanuele on September 29, 2014, 05:11:13 am
AHA!!

Cool!
Title: Re: [ADDON] Emoji !
Post by: inter on October 02, 2014, 04:51:09 am
https://github.com/arvida/emoji-cheat-sheet.com - 881 file
Title: Re: [ADDON] Emoji !
Post by: emanuele on October 02, 2014, 05:19:45 am
QuoteAll other emoji images
Copyright (c) 2012 Apple Inc. All rights reserved.

That project is very, very, very borderline (some say is plain illegal (http://words.steveklabnik.com/emoji-licensing) and against copyright law). ;)
Spuds is using the emoji from http://emojione.com/ that are open source and free to use for sure.
Title: Re: [ADDON] Emoji !
Post by: Spuds on October 02, 2014, 08:50:30 am
Yup, the lack of clarity around the usage of those Emoji images lead to emojione (and a couple of other collections that are in the works), they all share the same :names: which is great for compatibility.

Obviously if someone wants to use a different image collection than the Emojione version, they can do just that.  I just could not place images in the addon package and "distribute" it unless they were truly open.  But what someone uses on their own site is their own responsibility.

Note, to use some other image collection just copy the new images to the emoji directory (over writing whats there) and update the location so the pulldown populates with the correct ones.  The addon uses a CDN for the pulldown image population.
Title: Re: [ADDON] Emoji !
Post by: kucing on October 05, 2014, 11:11:11 am
Hi, I want to ask where do I change the extract tree path? Looks like because I migrated from cPanel to VPS with Nginx it still pointing to old path. I searched in Settings.php and didn't found it.
Title: Re: [ADDON] Emoji !
Post by: Spuds on October 05, 2014, 11:29:31 am
If you mean this line

Quote/home/dfnsorg/public_html/smileys

Then that is the directory defined in your admin panel,  forum -> Smileys and Message Icons -> settings
Title: Re: [ADDON] Emoji !
Post by: kucing on October 05, 2014, 09:08:51 pm
Thanks Spuds, it works perfectly. Will be there support for emoji in quickreply?
Title: Re: [ADDON] Emoji !
Post by: Spuds on October 06, 2014, 07:35:52 am
It should work in the quick reply if its using the full editor, but I'm not going to support the non-editor quick reply with this addon.
Title: Re: [ADDON] Emoji !
Post by: kucing on November 07, 2014, 02:02:41 am
Twitter open sourced their emoji: https://github.com/twitter/twemoji
Title: Re: [ADDON] Emoji !
Post by: Spuds on November 07, 2014, 02:58:06 pm
Cool .. those should work just fine with the mod, I'll do a test :D
Title: Re: [ADDON] Emoji !
Post by: Spuds on November 07, 2014, 03:45:51 pm
Just looking at those (never really looked at the twitter ones) they are really not much different than the open emoji ones currently in the addon ... they have the same somewhat flat look (as compared to the github ones) and many of them look ostensibly the same (IMO)
Title: Re: [ADDON] Emoji !
Post by: Spuds on November 07, 2014, 09:45:08 pm
Updated the mod to support / add the twitter collection as well.  Link is in the first post.
Title: Re: [ADDON] Emoji !
Post by: inter on January 11, 2015, 04:33:20 am
:beer:
:beers:
:crying_cat_face:

work only first beer
Title: Re: [ADDON] Emoji !
Post by: emanuele on January 11, 2015, 05:25:08 am
Wild guess: you are hitting the problem of Atwho not working properly on new lines with WYSIWYG enabled.
In other words: if you start a mention, or an emoji in this case, on a new line in WYSIWYG mode, it doesn't work.
Title: Re: [ADDON] Emoji !
Post by: kucing on October 05, 2017, 08:58:27 am
as requested.

preface, i installed and using this addon from early inception of my current forum until (maybe) 1-2 years ago.

but i remember the problem: the emoji code inserted is often not rendered as image. it stays as text code.

so :laughing: is displayed as is, not converted to emoji face.

-

edit

wait, maybe the previous comments are related:
Quote from: inter – :beer:
:beers:
:crying_cat_face:

work only first beer
Quote from: emanuele – Wild guess: you are hitting the problem of Atwho not working properly on new lines with WYSIWYG enabled.
In other words: if you start a mention, or an emoji in this case, on a new line in WYSIWYG mode, it doesn't work.
Title: Re: [ADDON] Emoji !
Post by: emanuele on October 06, 2017, 07:20:49 am
The code from "master" works, @Spuds likely forgot to update the page of the addon with the new release.
Downloading this archive:
https://github.com/Spuds/ElkArte-Emoji/archive/master.zip
should work as expected:
http://www.elkarte.it/community/index.php?topic=111.msg346#msg346
Title: Re: [ADDON] Emoji !
Post by: Spuds on October 06, 2017, 06:53:28 pm
Sounds like something I would forget to do  O:-)

I've been making some small updates so this works on 1.1 .... found a fatal error in 1.1 so it was worth the time :D

I'll update the package (really) with the 1.0/1.1 version "soon"

ETA: done