[ABD] Emojis

Any abandoned Extensions will be moved to this forum.

WARNING: Extensions in this forum are not currently being supported or maintained by the original Extension author. Proceed at your own risk.
Forum rules
IMPORTANT: Extension Development Forum rules

WARNING: Extensions in this forum are not currently being supported nor updated by the original Extension author. Proceed at your own risk.
User avatar
mrgoldy
Former Team Member
Posts: 1394
Joined: Tue Oct 06, 2009 7:34 pm
Location: The Netherlands
Name: Gijs
Contact:

[ABD] Emojis

Post by mrgoldy »

:label: Extension Name: phpBB Emojis
:man_technologist: Author: posey (vendor name: mrgoldy)
:slot_machine: Extension Version: v1.0.0-beta

:memo: Extension Description:
Adds Emojis to your forum, with autocomplete after 2 characters after a colon (:).
Based on the jQuery plugin jEmoji by Fran Verona.

:ballot_box: Requirements: phpBB 3.2 (not tested on 3.1).

:bulb: Features: You can change the emojis selector's color in the ACP > Post settings.

:inbox_tray: Extension Download: :camera_with_flash: Screenshots:

Image
Image
Image
Image
Last edited by mrgoldy on Tue Feb 13, 2018 2:11 pm, edited 1 time in total.
phpBB Studio / Member of the Studio

Contributing: You can do it too! Including testing Pull Requests (PR).
phpBB Development and Testing made easy.
User avatar
jan_2017
Registered User
Posts: 161
Joined: Sun May 07, 2017 3:39 pm

Re: [3.2][BETA] Emojis

Post by jan_2017 »

Do you have any screenshots?

Bye Jan
User avatar
mrgoldy
Former Team Member
Posts: 1394
Joined: Tue Oct 06, 2009 7:34 pm
Location: The Netherlands
Name: Gijs
Contact:

Re: [3.2][BETA] Emojis

Post by mrgoldy »

:new: Updated the first post for you
phpBB Studio / Member of the Studio

Contributing: You can do it too! Including testing Pull Requests (PR).
phpBB Development and Testing made easy.
User avatar
jan_2017
Registered User
Posts: 161
Joined: Sun May 07, 2017 3:39 pm

Re: [3.2][BETA] Emojis

Post by jan_2017 »

If i start writing with ":" and next i write "b" are all emoji displayed with the letter B?

Bye Jan
User avatar
mrgoldy
Former Team Member
Posts: 1394
Joined: Tue Oct 06, 2009 7:34 pm
Location: The Netherlands
Name: Gijs
Contact:

Re: [3.2][BETA] Emojis

Post by mrgoldy »

You start with a colon, a : indeed, then you start typing. Only after 2 (!!) characters, autocomplete kicks in. So then all emojis with those two letters, in that specific order, no matter if it they are in the beginning or at the end, will be displayed.

example:

Image

Alternatively, you can also just click the 'emojis' button, after the standard BBCodes, and it will show the selector with ALL available emojis.
phpBB Studio / Member of the Studio

Contributing: You can do it too! Including testing Pull Requests (PR).
phpBB Development and Testing made easy.
User avatar
RMcGirr83
Former Team Member
Posts: 22011
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: [3.2][BETA] Emojis

Post by RMcGirr83 »

I wonder if this will interfere with the simple mentions extension though this uses : instead of @
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beer Image
User avatar
jan_2017
Registered User
Posts: 161
Joined: Sun May 07, 2017 3:39 pm

Re: [3.2][BETA] Emojis

Post by jan_2017 »

posey wrote: Tue Feb 13, 2018 3:37 pm You start with a colon, a : indeed, then you start typing. Only after 2 (!!) characters, autocomplete kicks in. So then all emojis with those two letters, in that specific order, no matter if it they are in the beginning or at the end, will be displayed.

example:

Image

Alternatively, you can also just click the 'emojis' button, after the standard BBCodes, and it will show the selector with ALL available emojis.

Thank you, that's what I wanted to know.
I will test it.

Edit.

it is possible to rename emojis?
example: :cat goes to (german) :katze????

Will it works?
User avatar
mrgoldy
Former Team Member
Posts: 1394
Joined: Tue Oct 06, 2009 7:34 pm
Location: The Netherlands
Name: Gijs
Contact:

Re: [3.2][BETA] Emojis

Post by mrgoldy »

RMcGirr83 wrote: Tue Feb 13, 2018 4:46 pm I wonder if this will interfere with the simple mentions extension though this uses : instead of @
Haven't tested it yet, but will look into it.

@Jan
Simple answer: no.
Long answer: yes it is some-what possible, but it is not on an per user basis, so it will have to be for the entire board.
What then has to happen, you will have to rename all (all 881 of them) emoji images to your language. Then you will have to type an array (name1, name2, name3, etc..) of all the image names, without the extension. They have to be an exact match of their respective file name. And then you will have to adjust the javascript a little bit. If you truly want this, I can tell you what code to put where, but I am not going to translate 881 file names.
phpBB Studio / Member of the Studio

Contributing: You can do it too! Including testing Pull Requests (PR).
phpBB Development and Testing made easy.
User avatar
jan_2017
Registered User
Posts: 161
Joined: Sun May 07, 2017 3:39 pm

Re: [3.2][BETA] Emojis

Post by jan_2017 »

It is no problem to rename the emojis for me - so i can select all i want to have and delete all which i don´t want to have :lol:
And then you will have to adjust the javascript a little bit. If you truly want this, I can tell you what code to put where, .....
Yes i would like to know :)
User avatar
mrgoldy
Former Team Member
Posts: 1394
Joined: Tue Oct 06, 2009 7:34 pm
Location: The Netherlands
Name: Gijs
Contact:

Re: [3.2][BETA] Emojis

Post by mrgoldy »

Alrighty then. You'll have to rename all the images in mrgoldy/emojis/emojis (#) folder.
You can also remove the emojis you do not want.
Then you'll have to adjust the mrgoldy/emojis/styles/all/template/mrgoldy_emojis.js (#) to include the new image array and the image file extension, which if you do not change it is png.

So the file will look something like this:

Code: Select all

(function($) {

'use strict';

$(function() {
	$('#message, #signature').jemoji({
		btn: $('#emojis'),
		theme: $('#emojis').data('theme'),
		folder: $('#emojis').data('path'),
		container: $('#message-box'),
		navigation: false,
		icons: ['emoji1', 'emoji2', 'emoji3'],
		extension: 'png',
	});
});

}) (jQuery);
Haven't tested it out myself yet, so please report back when it's not working as expected.

Please also see Fran Verona's jEmoji page on custom icons: http://franverona.com/jemoji/
(Scroll down till you see Custom icons)
phpBB Studio / Member of the Studio

Contributing: You can do it too! Including testing Pull Requests (PR).
phpBB Development and Testing made easy.
User avatar
jan_2017
Registered User
Posts: 161
Joined: Sun May 07, 2017 3:39 pm

Re: [3.2][BETA] Emojis

Post by jan_2017 »

One more question.

only for 3.2.1. ?

Bye Jan

EDIT:

I still use v.3.2.0. and i must change in line 27 in file m1_initial_data.php this content:

Code: Select all

	static public function depends_on()
	{
		return array('\phpbb\db\migration\data\v32x\v321');
	}
to

Code: Select all

	static public function depends_on()
	{
		return array('\phpbb\db\migration\data\v320\v320');
	}
Now i can install your extension without an error in acp.

I test now :rocket:
User avatar
mrgoldy
Former Team Member
Posts: 1394
Joined: Tue Oct 06, 2009 7:34 pm
Location: The Netherlands
Name: Gijs
Contact:

Re: [3.2][BETA] Emojis

Post by mrgoldy »

Oh, my bad. Sloppy copy and paste mistake.
Will adjust in the next update.
phpBB Studio / Member of the Studio

Contributing: You can do it too! Including testing Pull Requests (PR).
phpBB Development and Testing made easy.
Rick8
Registered User
Posts: 7
Joined: Mon Dec 26, 2016 10:46 pm

Re: [3.2][BETA] Emojis

Post by Rick8 »

A little question, I am trying to add a few emojis (in my case are big icons) and I wonder some things:

If I add it, I suppose that I must put the names on inside the arrays, ok, then I must put the folder too, and is it necessary the maximum size?, if you could put how must be the archive would be great, thanks in advance.

And one more thing, is possible that instead : we could use another one, like * or other less common?
Last edited by Rick8 on Thu Feb 15, 2018 11:05 am, edited 1 time in total.
User avatar
jan_2017
Registered User
Posts: 161
Joined: Sun May 07, 2017 3:39 pm

Re: [3.2][BETA] Emojis

Post by jan_2017 »

Good question. In the first post I see big emoijs with the sign : .... in my post is only a small emoji to see. Why?
User avatar
mrgoldy
Former Team Member
Posts: 1394
Joined: Tue Oct 06, 2009 7:34 pm
Location: The Netherlands
Name: Gijs
Contact:

Re: [3.2][BETA] Emojis

Post by mrgoldy »

jan_2017 wrote: Wed Feb 14, 2018 8:59 pm Good question. In the first post I see big emoijs with the sign : .... in my post is only a small emoji to see. Why?
I've added a [size=200][/size] around the emoji. It enlarges the standard width.
Standard size: :womans_clothes:
Size 200: :womans_clothes:
Rick8 wrote: Wed Feb 14, 2018 4:06 pm A little question, I am trying to add a few emojis (in my case are big icons) and I wonder some things:

If I add it, I suppose that I must put the names on inside the arrays, ok, then I must put the folder too, and is it necessary the maximum size?, if you could put how must be the archive would be great, thanks in advance.

And one more thing, is possible that instead : we could use another one, like * or other less common?
If you want to add more emoji's, you have to add them to the existing array of icons, which I do not have yet provided.
Will get an array of the standard provided emojis.
And then you will have to to put the emoji image files in the folder with the rest (mrgoldy/emojis/emojis).
Note that the emojis need to have the exact same filename as the name you added to the icons array.
They also need to have the same file extension (.png) for the image to work.

Moreover, I planned to keep the extension rather simple and small. But I guess people want to be able to customise it more, so I'll look into adding some more ACP options, similar to the smilies options in the acp.
phpBB Studio / Member of the Studio

Contributing: You can do it too! Including testing Pull Requests (PR).
phpBB Development and Testing made easy.
Locked

Return to “Abandoned Extensions”