[3.2][BETA] Emojis

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Scam Warning
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
User avatar
posey
Registered User
Posts: 706
Joined: Tue Oct 06, 2009 7:34 pm
Location: The Netherlands
Name: Gijs

[3.2][BETA] Emojis

Post by posey » Mon Feb 12, 2018 5:10 pm

: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 posey on Tue Feb 13, 2018 2:11 pm, edited 1 time in total.
''I'm pretty sure there's a lot more to life than being really, really, ridiculously good looking. And I plan on finding out what that is.''

User avatar
jan_2017
Registered User
Posts: 129
Joined: Sun May 07, 2017 3:39 pm

Re: [3.2][BETA] Emojis

Post by jan_2017 » Tue Feb 13, 2018 10:37 am

Do you have any screenshots?

Bye Jan

User avatar
posey
Registered User
Posts: 706
Joined: Tue Oct 06, 2009 7:34 pm
Location: The Netherlands
Name: Gijs

Re: [3.2][BETA] Emojis

Post by posey » Tue Feb 13, 2018 2:14 pm

:new: Updated the first post for you
''I'm pretty sure there's a lot more to life than being really, really, ridiculously good looking. And I plan on finding out what that is.''

User avatar
jan_2017
Registered User
Posts: 129
Joined: Sun May 07, 2017 3:39 pm

Re: [3.2][BETA] Emojis

Post by jan_2017 » Tue Feb 13, 2018 3:26 pm

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

Bye Jan

User avatar
posey
Registered User
Posts: 706
Joined: Tue Oct 06, 2009 7:34 pm
Location: The Netherlands
Name: Gijs

Re: [3.2][BETA] Emojis

Post by posey » 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.
''I'm pretty sure there's a lot more to life than being really, really, ridiculously good looking. And I plan on finding out what that is.''

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 20853
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: [3.2][BETA] Emojis

Post by RMcGirr83 » Tue Feb 13, 2018 4:46 pm

I wonder if this will interfere with the simple mentions extension though this uses : instead of @
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

User avatar
jan_2017
Registered User
Posts: 129
Joined: Sun May 07, 2017 3:39 pm

Re: [3.2][BETA] Emojis

Post by jan_2017 » Tue Feb 13, 2018 5:57 pm

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
posey
Registered User
Posts: 706
Joined: Tue Oct 06, 2009 7:34 pm
Location: The Netherlands
Name: Gijs

Re: [3.2][BETA] Emojis

Post by posey » Tue Feb 13, 2018 6:51 pm

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.
''I'm pretty sure there's a lot more to life than being really, really, ridiculously good looking. And I plan on finding out what that is.''

User avatar
jan_2017
Registered User
Posts: 129
Joined: Sun May 07, 2017 3:39 pm

Re: [3.2][BETA] Emojis

Post by jan_2017 » Tue Feb 13, 2018 7:18 pm

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
posey
Registered User
Posts: 706
Joined: Tue Oct 06, 2009 7:34 pm
Location: The Netherlands
Name: Gijs

Re: [3.2][BETA] Emojis

Post by posey » Tue Feb 13, 2018 8:05 pm

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)
''I'm pretty sure there's a lot more to life than being really, really, ridiculously good looking. And I plan on finding out what that is.''

User avatar
jan_2017
Registered User
Posts: 129
Joined: Sun May 07, 2017 3:39 pm

Re: [3.2][BETA] Emojis

Post by jan_2017 » Tue Feb 13, 2018 9:54 pm

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
posey
Registered User
Posts: 706
Joined: Tue Oct 06, 2009 7:34 pm
Location: The Netherlands
Name: Gijs

Re: [3.2][BETA] Emojis

Post by posey » Wed Feb 14, 2018 12:47 pm

Oh, my bad. Sloppy copy and paste mistake.
Will adjust in the next update.
''I'm pretty sure there's a lot more to life than being really, really, ridiculously good looking. And I plan on finding out what that is.''

Rick8
Registered User
Posts: 2
Joined: Mon Dec 26, 2016 10:46 pm

Re: [3.2][BETA] Emojis

Post by Rick8 » 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?
Last edited by Rick8 on Thu Feb 15, 2018 11:05 am, edited 1 time in total.

User avatar
jan_2017
Registered User
Posts: 129
Joined: Sun May 07, 2017 3:39 pm

Re: [3.2][BETA] Emojis

Post by jan_2017 » 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?

User avatar
posey
Registered User
Posts: 706
Joined: Tue Oct 06, 2009 7:34 pm
Location: The Netherlands
Name: Gijs

Re: [3.2][BETA] Emojis

Post by posey » Fri Feb 16, 2018 3:29 pm

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.
''I'm pretty sure there's a lot more to life than being really, really, ridiculously good looking. And I plan on finding out what that is.''

Post Reply

Return to “Extensions in Development”

Who is online

Users browsing this forum: igorbond, jackennils, LapouX, Thunder_one and 24 guests