[DEV] iPhone Emoji for phpBB3

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Ideas Centre
User avatar
dpaanlka
Registered User
Posts: 286
Joined: Wed May 10, 2006 6:48 pm
Location: Chicago, USA
Contact:

[DEV] iPhone Emoji for phpBB3

Post by dpaanlka » Sun Nov 21, 2010 1:50 am

iPods, iPhones and iPads allow users to enter "emoji" icons which are special unicode characters the iOS translates into pictures, including smiley faces but also many others (hundreds!) These are quite popular in Japan, and are actually present on many devices there (not just iPhones). You can even get it for Android.

Unfortunately desktop browsers or people using other mobile devices just see placeholder characters like this: . Here's a little script I put together to translate iPhone unicode Emoji icons to IMG tags. Includes the emojis in PNG format!

Download: http://www.nasolab.com/freebies/phpbb_iphone_emoji.zip

This mode will display iOS emoji on non-iOS devices in the form of PNG images. It also will detect iOS devices, and not do the conversion for them so they use their built-in emoji as normal. The conversion works for message content as well as signatures.

Extract the archive and place the emoji folder inside the images folder of your phpBB root directory. Place convert_emoji.php into your includes directory.

Open includes/functions_content.php and find the following line:

Code: Select all

	global $config, $user, $phpbb_root_path;
After, add:

Code: Select all

	include_once 'convert_emoji.php';
	$text = convert_emoji($text);
That is all! I haven't organized this into a standardized phpBB mod format. Hopefully I can wrap this up into an actual mod at some point, or if anyone else wants to take a crack at it go for it. This seems to work perfectly fine so far on my board, which is heavily trafficked by iOS users.

If you'd like to test that this works on your board, copy this character  and paste it into a new post in one of your forums and see if it displays correctly.

Here is a screenshot of my board on a desktop (non-iOS) browser:

Image

The same page on an iPhone 4:

Image

The same page on a desktop (non-iOS) browser, but without this mod:

Image

EDIT: If you see any stray Mac OS X directory files just delete them.
Last edited by dpaanlka on Mon Mar 07, 2011 1:58 am, edited 10 times in total.
phpBB user and evangelist since 2005.
My boards: Info-Mac | System 7 Today

UserFriendly7
Registered User
Posts: 15
Joined: Thu Feb 03, 2005 5:56 pm

Re: [DEV] iPhone Emoji for phpBB3

Post by UserFriendly7 » Mon Dec 13, 2010 10:46 pm

Really like the idea, especially seeing I'm using tapatalk with phpbb. Is there any way I can get hold of the relevant files? I dont see a download link above? Thanks! :)

User avatar
dpaanlka
Registered User
Posts: 286
Joined: Wed May 10, 2006 6:48 pm
Location: Chicago, USA
Contact:

Re: [DEV] iPhone Emoji for phpBB3

Post by dpaanlka » Mon Mar 07, 2011 1:40 am

Sorry about that, it is now fixed. I don't know why that link wasn't there.
phpBB user and evangelist since 2005.
My boards: Info-Mac | System 7 Today

gudenau
Registered User
Posts: 3
Joined: Tue Aug 09, 2011 1:44 am

Re: [DEV] iPhone Emoji for phpBB3

Post by gudenau » Tue Aug 09, 2011 1:46 am

I doesn't work for me.


User avatar
dpaanlka
Registered User
Posts: 286
Joined: Wed May 10, 2006 6:48 pm
Location: Chicago, USA
Contact:

Re: [DEV] iPhone Emoji for phpBB3

Post by dpaanlka » Tue Aug 09, 2011 6:44 am

gudenau wrote:I doesn't work for me.

Of course these characters won't appear on this website, for the mod is not installed here.
phpBB user and evangelist since 2005.
My boards: Info-Mac | System 7 Today

gudenau
Registered User
Posts: 3
Joined: Tue Aug 09, 2011 1:44 am

Re: [DEV] iPhone Emoji for phpBB3

Post by gudenau » Tue Aug 09, 2011 1:37 pm

dpaanlka wrote:
gudenau wrote:I doesn't work for me.

Of course these characters won't appear on this website, for the mod is not installed here.
On my phpbb site.

User avatar
dpaanlka
Registered User
Posts: 286
Joined: Wed May 10, 2006 6:48 pm
Location: Chicago, USA
Contact:

Re: [DEV] iPhone Emoji for phpBB3

Post by dpaanlka » Tue Aug 09, 2011 3:08 pm

Okay well you'll have to give me some more information than "it doesn't work." Like for example, the location of your board, the steps you've followed, any errors you see or do not see, etc...
phpBB user and evangelist since 2005.
My boards: Info-Mac | System 7 Today

gudenau
Registered User
Posts: 3
Joined: Tue Aug 09, 2011 1:44 am

Re: [DEV] iPhone Emoji for phpBB3

Post by gudenau » Tue Aug 09, 2011 3:13 pm

It is Here, did not get errors put the emoji file in the images dir, I put the code in after global $user; in functions_content.php, So what did I do wrong, miss read the install instructions? I do have convert_emoji.php in includes.

User avatar
mecaman
Registered User
Posts: 49
Joined: Wed Dec 31, 2008 5:15 pm
Location: Barcelona
Contact:

Re: [DEV] iPhone Emoji for phpBB3

Post by mecaman » Wed Aug 10, 2011 8:57 pm

Hello!

You can make a mod similar to http://www.phpbb.com/community/viewtopic.php?t=1430525 Special Chards

thanks :o

kogi
Registered User
Posts: 2
Joined: Tue May 08, 2012 11:06 am

Re: [DEV] iPhone Emoji for phpBB3

Post by kogi » Tue May 08, 2012 11:13 am

Sorry, Not sure what to do with this

Error when trying to post anything with emoji in it

phpBB3 3.0.10
Artodia: Mobile and SEO

Image

kogi
Registered User
Posts: 2
Joined: Tue May 08, 2012 11:06 am

Re: [DEV] iPhone Emoji for phpBB3

Post by kogi » Wed May 09, 2012 5:33 am

It looks like the problem is an old version of mysql and new ios5 emoji.

The fix is to upgrade to mysql 5.5 with utf8mb support ( or change to BLOB?)

Drakken
Registered User
Posts: 144
Joined: Thu Jun 12, 2003 6:59 pm
Contact:

Re: [DEV] iPhone Emoji for phpBB3

Post by Drakken » Thu May 10, 2012 9:38 pm

SQL Error for me too. Unfortunately my host will not update MySQL until they determine it's stable. :cry:

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] iPhone Emoji for phpBB3

Post by 4_seven » Thu May 10, 2012 10:43 pm

try

copy and save original convert_emoji.php as save_convert_emoji.php

then open

convert_emoji.php

with notepad++

if the signs in this file appears as $unicode_emoji = array("", "", "",

and under Encoding > ANSI is not active, then do so, but only one time

then go to Encoding > Convert to UTF8 without BOM but only one time
and save the file under the same name as before: file > save under.

may that fix it..
Current Mods | Mod Base | php(BB) programming | No help via PM

Drakken
Registered User
Posts: 144
Joined: Thu Jun 12, 2003 6:59 pm
Contact:

Re: [DEV] iPhone Emoji for phpBB3

Post by Drakken » Sat May 12, 2012 9:00 pm

I'm using a similar editor called Textpad and mine are showing up this way..

Code: Select all

<?php

function convert_emoji($text)
{

	$iphone = strpos($_SERVER['HTTP_USER_AGENT'], "iPhone");
	$ipad = strpos($_SERVER['HTTP_USER_AGENT'], "iPad");
	$ipod = strpos($_SERVER['HTTP_USER_AGENT'], "iPod");
	
	if($iphone === false && $ipad === false && $ipod === false) {
	
		$unicode_emoji = array("?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?");
	
		$html_emoji = array('<img src="./images/emoji/e415.png" class="emoji" />', '<img src="./images/emoji/e056.png" class="emoji" />', '<img src="./images/emoji/e057.png" class="emoji" />', '<img src="./images/emoji/e414.png" class="emoji" />', '<img src="./images/emoji/e405.png" class="emoji" />', '<img src="./images/emoji/e106.png" class="emoji" />', '<img src="./images/emoji/e418.png" class="emoji" />', '<img src="./images/emoji/e417.png" class="emoji" />', '<img src="./images/emoji/e40d.png" class="emoji" />', '<img src="./images/emoji/e40a.png" class="emoji" />', '<img src="./images/emoji/e404.png" class="emoji" />', '<img src="./images/emoji/e105.png" class="emoji" />', '<img src="./images/emoji/e409.png" class="emoji" />', '<img src="./images/emoji/e40e.png" class="emoji" />', '<img src="./images/emoji/e402.png" class="emoji" />', '<img src="./images/emoji/e108.png" class="emoji" />', '<img src="./images/emoji/e403.png" class="emoji" />', '<img src="./images/emoji/e058.png" class="emoji" />', '<img src="./images/emoji/e407.png" class="emoji" />', '<img src="./images/emoji/e401.png" class="emoji" />', '<img src="./images/emoji/e40f.png" class="emoji" />', '<img src="./images/emoji/e40b.png" class="emoji" />', '<img src="./images/emoji/e406.png" class="emoji" />', '<img src="./images/emoji/e413.png" class="emoji" />', '<img src="./images/emoji/e411.png" class="emoji" />', '<img src="./images/emoji/e412.png" class="emoji" />', '<img src="./images/emoji/e410.png" class="emoji" />', '<img src="./images/emoji/e107.png" class="emoji" />', '<img src="./images/emoji/e059.png" class="emoji" />', '<img src="./images/emoji/e416.png" class="emoji" />', '<img src="./images/emoji/e408.png" class="emoji" />', '<img src="./images/emoji/e40c.png" class="emoji" />', '<img src="./images/emoji/e11a.png" class="emoji" />', '<img src="./images/emoji/e10c.png" class="emoji" />', '<img src="./images/emoji/e32c.png" class="emoji" />', '<img src="./images/emoji/e32a.png" class="emoji" />', '<img src="./images/emoji/e32d.png" class="emoji" />', '<img src="./images/emoji/e328.png" class="emoji" />', '<img src="./images/emoji/e32b.png" class="emoji" />', '<img src="./images/emoji/e022.png" class="emoji" />', '<img src="./images/emoji/e023.png" class="emoji" />', '<img src="./images/emoji/e327.png" class="emoji" />', '<img src="./images/emoji/e329.png" class="emoji" />', '<img src="./images/emoji/e32e.png" class="emoji" />', '<img src="./images/emoji/e335.png" class="emoji" />', '<img src="./images/emoji/e334.png" class="emoji" />', '<img src="./images/emoji/e337.png" class="emoji" />', '<img src="./images/emoji/e336.png" class="emoji" />', '<img src="./images/emoji/e13c.png" class="emoji" />', '<img src="./images/emoji/e330.png" class="emoji" />', '<img src="./images/emoji/e331.png" class="emoji" />', '<img src="./images/emoji/e326.png" class="emoji" />', '<img src="./images/emoji/e03e.png" class="emoji" />', '<img src="./images/emoji/e11d.png" class="emoji" />', '<img src="./images/emoji/e05a.png" class="emoji" />', '<img src="./images/emoji/e00e.png" class="emoji" />', '<img src="./images/emoji/e421.png" class="emoji" />', '<img src="./images/emoji/e420.png" class="emoji" />', '<img src="./images/emoji/e00d.png" class="emoji" />', '<img src="./images/emoji/e010.png" class="emoji" />', '<img src="./images/emoji/e011.png" class="emoji" />', '<img src="./images/emoji/e41e.png" class="emoji" />', '<img src="./images/emoji/e012.png" class="emoji" />', '<img src="./images/emoji/e422.png" class="emoji" />', '<img src="./images/emoji/e22e.png" class="emoji" />', '<img src="./images/emoji/e22f.png" class="emoji" />', '<img src="./images/emoji/e231.png" class="emoji" />', '<img src="./images/emoji/e230.png" class="emoji" />', '<img src="./images/emoji/e427.png" class="emoji" />', '<img src="./images/emoji/e41d.png" class="emoji" />', '<img src="./images/emoji/e00f.png" class="emoji" />', '<img src="./images/emoji/e41f.png" class="emoji" />', '<img src="./images/emoji/e14c.png" class="emoji" />', '<img src="./images/emoji/e201.png" class="emoji" />', '<img src="./images/emoji/e115.png" class="emoji" />', '<img src="./images/emoji/e428.png" class="emoji" />', '<img src="./images/emoji/e51f.png" class="emoji" />', '<img src="./images/emoji/e429.png" class="emoji" />', '<img src="./images/emoji/e424.png" class="emoji" />', '<img src="./images/emoji/e423.png" class="emoji" />', '<img src="./images/emoji/e253.png" class="emoji" />', '<img src="./images/emoji/e426.png" class="emoji" />', '<img src="./images/emoji/e111.png" class="emoji" />', '<img src="./images/emoji/e425.png" class="emoji" />', '<img src="./images/emoji/e31e.png" class="emoji" />', '<img src="./images/emoji/e31f.png" class="emoji" />', '<img src="./images/emoji/e31d.png" class="emoji" />', '<img src="./images/emoji/e001.png" class="emoji" />', '<img src="./images/emoji/e002.png" class="emoji" />', '<img src="./images/emoji/e005.png" class="emoji" />', '<img src="./images/emoji/e004.png" class="emoji" />', '<img src="./images/emoji/e51a.png" class="emoji" />', '<img src="./images/emoji/e519.png" class="emoji" />', '<img src="./images/emoji/e518.png" class="emoji" />', '<img src="./images/emoji/e515.png" class="emoji" />', '<img src="./images/emoji/e516.png" class="emoji" />', '<img src="./images/emoji/e517.png" class="emoji" />', '<img src="./images/emoji/e51b.png" class="emoji" />', '<img src="./images/emoji/e152.png" class="emoji" />', '<img src="./images/emoji/e04e.png" class="emoji" />', '<img src="./images/emoji/e51c.png" class="emoji" />', '<img src="./images/emoji/e51e.png" class="emoji" />', '<img src="./images/emoji/e11c.png" class="emoji" />', '<img src="./images/emoji/e536.png" class="emoji" />', '<img src="./images/emoji/e003.png" class="emoji" />', '<img src="./images/emoji/e41c.png" class="emoji" />', '<img src="./images/emoji/e41b.png" class="emoji" />', '<img src="./images/emoji/e419.png" class="emoji" />', '<img src="./images/emoji/e41a.png" class="emoji" />', '<img src="./images/emoji/e04a.png" class="emoji" />', '<img src="./images/emoji/e04b.png" class="emoji" />', '<img src="./images/emoji/e049.png" class="emoji" />', '<img src="./images/emoji/e048.png" class="emoji" />', '<img src="./images/emoji/e04c.png" class="emoji" />', '<img src="./images/emoji/e13d.png" class="emoji" />', '<img src="./images/emoji/e443.png" class="emoji" />', '<img src="./images/emoji/e43e.png" class="emoji" />', '<img src="./images/emoji/e04f.png" class="emoji" />', '<img src="./images/emoji/e052.png" class="emoji" />', '<img src="./images/emoji/e053.png" class="emoji" />', '<img src="./images/emoji/e524.png" class="emoji" />', '<img src="./images/emoji/e52c.png" class="emoji" />', '<img src="./images/emoji/e52a.png" class="emoji" />', '<img src="./images/emoji/e531.png" class="emoji" />', '<img src="./images/emoji/e050.png" class="emoji" />', '<img src="./images/emoji/e527.png" class="emoji" />', '<img src="./images/emoji/e051.png" class="emoji" />', '<img src="./images/emoji/e10b.png" class="emoji" />', '<img src="./images/emoji/e52b.png" class="emoji" />', '<img src="./images/emoji/e52f.png" class="emoji" />', '<img src="./images/emoji/e109.png" class="emoji" />', '<img src="./images/emoji/e528.png" class="emoji" />', '<img src="./images/emoji/e01a.png" class="emoji" />', '<img src="./images/emoji/e134.png" class="emoji" />', '<img src="./images/emoji/e530.png" class="emoji" />', '<img src="./images/emoji/e529.png" class="emoji" />', '<img src="./images/emoji/e526.png" class="emoji" />', '<img src="./images/emoji/e52d.png" class="emoji" />', '<img src="./images/emoji/e521.png" class="emoji" />', '<img src="./images/emoji/e523.png" class="emoji" />', '<img src="./images/emoji/e52e.png" class="emoji" />', '<img src="./images/emoji/e055.png" class="emoji" />', '<img src="./images/emoji/e525.png" class="emoji" />', '<img src="./images/emoji/e10a.png" class="emoji" />', '<img src="./images/emoji/e522.png" class="emoji" />', '<img src="./images/emoji/e019.png" class="emoji" />', '<img src="./images/emoji/e054.png" class="emoji" />', '<img src="./images/emoji/e520.png" class="emoji" />', '<img src="./images/emoji/e306.png" class="emoji" />', '<img src="./images/emoji/e030.png" class="emoji" />', '<img src="./images/emoji/e304.png" class="emoji" />', '<img src="./images/emoji/e110.png" class="emoji" />', '<img src="./images/emoji/e032.png" class="emoji" />', '<img src="./images/emoji/e305.png" class="emoji" />', '<img src="./images/emoji/e303.png" class="emoji" />', '<img src="./images/emoji/e118.png" class="emoji" />', '<img src="./images/emoji/e447.png" class="emoji" />', '<img src="./images/emoji/e119.png" class="emoji" />', '<img src="./images/emoji/e307.png" class="emoji" />', '<img src="./images/emoji/e308.png" class="emoji" />', '<img src="./images/emoji/e444.png" class="emoji" />', '<img src="./images/emoji/e441.png" class="emoji" />', '<img src="./images/emoji/e436.png" class="emoji" />', '<img src="./images/emoji/e437.png" class="emoji" />', '<img src="./images/emoji/e438.png" class="emoji" />', '<img src="./images/emoji/e43a.png" class="emoji" />', '<img src="./images/emoji/e439.png" class="emoji" />', '<img src="./images/emoji/e43b.png" class="emoji" />', '<img src="./images/emoji/e117.png" class="emoji" />', '<img src="./images/emoji/e440.png" class="emoji" />', '<img src="./images/emoji/e442.png" class="emoji" />', '<img src="./images/emoji/e446.png" class="emoji" />', '<img src="./images/emoji/e445.png" class="emoji" />', '<img src="./images/emoji/e11b.png" class="emoji" />', '<img src="./images/emoji/e448.png" class="emoji" />', '<img src="./images/emoji/e033.png" class="emoji" />', '<img src="./images/emoji/e112.png" class="emoji" />', '<img src="./images/emoji/e325.png" class="emoji" />', '<img src="./images/emoji/e312.png" class="emoji" />', '<img src="./images/emoji/e310.png" class="emoji" />', '<img src="./images/emoji/e126.png" class="emoji" />', '<img src="./images/emoji/e127.png" class="emoji" />', '<img src="./images/emoji/e008.png" class="emoji" />', '<img src="./images/emoji/e03d.png" class="emoji" />', '<img src="./images/emoji/e00c.png" class="emoji" />', '<img src="./images/emoji/e12a.png" class="emoji" />', '<img src="./images/emoji/e00a.png" class="emoji" />', '<img src="./images/emoji/e00b.png" class="emoji" />', '<img src="./images/emoji/e009.png" class="emoji" />', '<img src="./images/emoji/e316.png" class="emoji" />', '<img src="./images/emoji/e129.png" class="emoji" />', '<img src="./images/emoji/e141.png" class="emoji" />', '<img src="./images/emoji/e142.png" class="emoji" />', '<img src="./images/emoji/e317.png" class="emoji" />', '<img src="./images/emoji/e128.png" class="emoji" />', '<img src="./images/emoji/e14b.png" class="emoji" />', '<img src="./images/emoji/e211.png" class="emoji" />', '<img src="./images/emoji/e114.png" class="emoji" />', '<img src="./images/emoji/e145.png" class="emoji" />', '<img src="./images/emoji/e144.png" class="emoji" />', '<img src="./images/emoji/e03f.png" class="emoji" />', '<img src="./images/emoji/e313.png" class="emoji" />', '<img src="./images/emoji/e116.png" class="emoji" />', '<img src="./images/emoji/e10f.png" class="emoji" />', '<img src="./images/emoji/e104.png" class="emoji" />', '<img src="./images/emoji/e103.png" class="emoji" />', '<img src="./images/emoji/e101.png" class="emoji" />', '<img src="./images/emoji/e102.png" class="emoji" />', '<img src="./images/emoji/e13f.png" class="emoji" />', '<img src="./images/emoji/e140.png" class="emoji" />', '<img src="./images/emoji/e11f.png" class="emoji" />', '<img src="./images/emoji/e12f.png" class="emoji" />', '<img src="./images/emoji/e031.png" class="emoji" />', '<img src="./images/emoji/e30e.png" class="emoji" />', '<img src="./images/emoji/e311.png" class="emoji" />', '<img src="./images/emoji/e113.png" class="emoji" />', '<img src="./images/emoji/e30f.png" class="emoji" />', '<img src="./images/emoji/e13b.png" class="emoji" />', '<img src="./images/emoji/e42b.png" class="emoji" />', '<img src="./images/emoji/e42a.png" class="emoji" />', '<img src="./images/emoji/e018.png" class="emoji" />', '<img src="./images/emoji/e016.png" class="emoji" />', '<img src="./images/emoji/e015.png" class="emoji" />', '<img src="./images/emoji/e014.png" class="emoji" />', '<img src="./images/emoji/e42c.png" class="emoji" />', '<img src="./images/emoji/e42d.png" class="emoji" />', '<img src="./images/emoji/e017.png" class="emoji" />', '<img src="./images/emoji/e013.png" class="emoji" />', '<img src="./images/emoji/e20e.png" class="emoji" />', '<img src="./images/emoji/e20c.png" class="emoji" />', '<img src="./images/emoji/e20f.png" class="emoji" />', '<img src="./images/emoji/e20d.png" class="emoji" />', '<img src="./images/emoji/e131.png" class="emoji" />', '<img src="./images/emoji/e12b.png" class="emoji" />', '<img src="./images/emoji/e130.png" class="emoji" />', '<img src="./images/emoji/e12d.png" class="emoji" />', '<img src="./images/emoji/e324.png" class="emoji" />', '<img src="./images/emoji/e301.png" class="emoji" />', '<img src="./images/emoji/e148.png" class="emoji" />', '<img src="./images/emoji/e502.png" class="emoji" />', '<img src="./images/emoji/e03c.png" class="emoji" />', '<img src="./images/emoji/e30a.png" class="emoji" />', '<img src="./images/emoji/e042.png" class="emoji" />', '<img src="./images/emoji/e040.png" class="emoji" />', '<img src="./images/emoji/e041.png" class="emoji" />', '<img src="./images/emoji/e12c.png" class="emoji" />', '<img src="./images/emoji/e007.png" class="emoji" />', '<img src="./images/emoji/e31a.png" class="emoji" />', '<img src="./images/emoji/e13e.png" class="emoji" />', '<img src="./images/emoji/e31b.png" class="emoji" />', '<img src="./images/emoji/e006.png" class="emoji" />', '<img src="./images/emoji/e302.png" class="emoji" />', '<img src="./images/emoji/e319.png" class="emoji" />', '<img src="./images/emoji/e321.png" class="emoji" />', '<img src="./images/emoji/e322.png" class="emoji" />', '<img src="./images/emoji/e314.png" class="emoji" />', '<img src="./images/emoji/e503.png" class="emoji" />', '<img src="./images/emoji/e10e.png" class="emoji" />', '<img src="./images/emoji/e318.png" class="emoji" />', '<img src="./images/emoji/e43c.png" class="emoji" />', '<img src="./images/emoji/e11e.png" class="emoji" />', '<img src="./images/emoji/e323.png" class="emoji" />', '<img src="./images/emoji/e31c.png" class="emoji" />', '<img src="./images/emoji/e034.png" class="emoji" />', '<img src="./images/emoji/e035.png" class="emoji" />', '<img src="./images/emoji/e045.png" class="emoji" />', '<img src="./images/emoji/e338.png" class="emoji" />', '<img src="./images/emoji/e047.png" class="emoji" />', '<img src="./images/emoji/e30c.png" class="emoji" />', '<img src="./images/emoji/e044.png" class="emoji" />', '<img src="./images/emoji/e30b.png" class="emoji" />', '<img src="./images/emoji/e043.png" class="emoji" />', '<img src="./images/emoji/e120.png" class="emoji" />', '<img src="./images/emoji/e33b.png" class="emoji" />', '<img src="./images/emoji/e33f.png" class="emoji" />', '<img src="./images/emoji/e341.png" class="emoji" />', '<img src="./images/emoji/e34c.png" class="emoji" />', '<img src="./images/emoji/e344.png" class="emoji" />', '<img src="./images/emoji/e342.png" class="emoji" />', '<img src="./images/emoji/e33d.png" class="emoji" />', '<img src="./images/emoji/e33e.png" class="emoji" />', '<img src="./images/emoji/e340.png" class="emoji" />', '<img src="./images/emoji/e34d.png" class="emoji" />', '<img src="./images/emoji/e339.png" class="emoji" />', '<img src="./images/emoji/e147.png" class="emoji" />', '<img src="./images/emoji/e343.png" class="emoji" />', '<img src="./images/emoji/e33c.png" class="emoji" />', '<img src="./images/emoji/e33a.png" class="emoji" />', '<img src="./images/emoji/e43f.png" class="emoji" />', '<img src="./images/emoji/e34b.png" class="emoji" />', '<img src="./images/emoji/e046.png" class="emoji" />', '<img src="./images/emoji/e345.png" class="emoji" />', '<img src="./images/emoji/e346.png" class="emoji" />', '<img src="./images/emoji/e348.png" class="emoji" />', '<img src="./images/emoji/e347.png" class="emoji" />', '<img src="./images/emoji/e34a.png" class="emoji" />', '<img src="./images/emoji/e349.png" class="emoji" />', '<img src="./images/emoji/e036.png" class="emoji" />', '<img src="./images/emoji/e157.png" class="emoji" />', '<img src="./images/emoji/e038.png" class="emoji" />', '<img src="./images/emoji/e153.png" class="emoji" />', '<img src="./images/emoji/e155.png" class="emoji" />', '<img src="./images/emoji/e14d.png" class="emoji" />', '<img src="./images/emoji/e156.png" class="emoji" />', '<img src="./images/emoji/e501.png" class="emoji" />', '<img src="./images/emoji/e158.png" class="emoji" />', '<img src="./images/emoji/e43d.png" class="emoji" />', '<img src="./images/emoji/e037.png" class="emoji" />', '<img src="./images/emoji/e504.png" class="emoji" />', '<img src="./images/emoji/e44a.png" class="emoji" />', '<img src="./images/emoji/e146.png" class="emoji" />', '<img src="./images/emoji/e50a.png" class="emoji" />', '<img src="./images/emoji/e505.png" class="emoji" />', '<img src="./images/emoji/e506.png" class="emoji" />', '<img src="./images/emoji/e122.png" class="emoji" />', '<img src="./images/emoji/e508.png" class="emoji" />', '<img src="./images/emoji/e509.png" class="emoji" />', '<img src="./images/emoji/e03b.png" class="emoji" />', '<img src="./images/emoji/e04d.png" class="emoji" />', '<img src="./images/emoji/e449.png" class="emoji" />', '<img src="./images/emoji/e44b.png" class="emoji" />', '<img src="./images/emoji/e51d.png" class="emoji" />', '<img src="./images/emoji/e44c.png" class="emoji" />', '<img src="./images/emoji/e124.png" class="emoji" />', '<img src="./images/emoji/e121.png" class="emoji" />', '<img src="./images/emoji/e433.png" class="emoji" />', '<img src="./images/emoji/e202.png" class="emoji" />', '<img src="./images/emoji/e135.png" class="emoji" />', '<img src="./images/emoji/e01c.png" class="emoji" />', '<img src="./images/emoji/e01d.png" class="emoji" />', '<img src="./images/emoji/e10d.png" class="emoji" />', '<img src="./images/emoji/e136.png" class="emoji" />', '<img src="./images/emoji/e42e.png" class="emoji" />', '<img src="./images/emoji/e01b.png" class="emoji" />', '<img src="./images/emoji/e15a.png" class="emoji" />', '<img src="./images/emoji/e159.png" class="emoji" />', '<img src="./images/emoji/e432.png" class="emoji" />', '<img src="./images/emoji/e430.png" class="emoji" />', '<img src="./images/emoji/e431.png" class="emoji" />', '<img src="./images/emoji/e42f.png" class="emoji" />', '<img src="./images/emoji/e01e.png" class="emoji" />', '<img src="./images/emoji/e039.png" class="emoji" />', '<img src="./images/emoji/e435.png" class="emoji" />', '<img src="./images/emoji/e01f.png" class="emoji" />', '<img src="./images/emoji/e125.png" class="emoji" />', '<img src="./images/emoji/e03a.png" class="emoji" />', '<img src="./images/emoji/e14e.png" class="emoji" />', '<img src="./images/emoji/e252.png" class="emoji" />', '<img src="./images/emoji/e137.png" class="emoji" />', '<img src="./images/emoji/e209.png" class="emoji" />', '<img src="./images/emoji/e154.png" class="emoji" />', '<img src="./images/emoji/e133.png" class="emoji" />', '<img src="./images/emoji/e150.png" class="emoji" />', '<img src="./images/emoji/e320.png" class="emoji" />', '<img src="./images/emoji/e123.png" class="emoji" />', '<img src="./images/emoji/e132.png" class="emoji" />', '<img src="./images/emoji/e143.png" class="emoji" />', '<img src="./images/emoji/e50b.png" class="emoji" />', '<img src="./images/emoji/e514.png" class="emoji" />', '<img src="./images/emoji/e513.png" class="emoji" />', '<img src="./images/emoji/e50c.png" class="emoji" />', '<img src="./images/emoji/e50d.png" class="emoji" />', '<img src="./images/emoji/e511.png" class="emoji" />', '<img src="./images/emoji/e50f.png" class="emoji" />', '<img src="./images/emoji/e512.png" class="emoji" />', '<img src="./images/emoji/e510.png" class="emoji" />', '<img src="./images/emoji/e50e.png" class="emoji" />', '<img src="./images/emoji/e21c.png" class="emoji" />', '<img src="./images/emoji/e21d.png" class="emoji" />', '<img src="./images/emoji/e21e.png" class="emoji" />', '<img src="./images/emoji/e21f.png" class="emoji" />', '<img src="./images/emoji/e220.png" class="emoji" />', '<img src="./images/emoji/e221.png" class="emoji" />', '<img src="./images/emoji/e222.png" class="emoji" />', '<img src="./images/emoji/e223.png" class="emoji" />', '<img src="./images/emoji/e224.png" class="emoji" />', '<img src="./images/emoji/e225.png" class="emoji" />', '<img src="./images/emoji/e210.png" class="emoji" />', '<img src="./images/emoji/e232.png" class="emoji" />', '<img src="./images/emoji/e233.png" class="emoji" />', '<img src="./images/emoji/e235.png" class="emoji" />', '<img src="./images/emoji/e234.png" class="emoji" />', '<img src="./images/emoji/e236.png" class="emoji" />', '<img src="./images/emoji/e237.png" class="emoji" />', '<img src="./images/emoji/e238.png" class="emoji" />', '<img src="./images/emoji/e239.png" class="emoji" />', '<img src="./images/emoji/e23b.png" class="emoji" />', '<img src="./images/emoji/e23a.png" class="emoji" />', '<img src="./images/emoji/e23d.png" class="emoji" />', '<img src="./images/emoji/e23c.png" class="emoji" />', '<img src="./images/emoji/e24d.png" class="emoji" />', '<img src="./images/emoji/e212.png" class="emoji" />', '<img src="./images/emoji/e24c.png" class="emoji" />', '<img src="./images/emoji/e213.png" class="emoji" />', '<img src="./images/emoji/e214.png" class="emoji" />', '<img src="./images/emoji/e507.png" class="emoji" />', '<img src="./images/emoji/e203.png" class="emoji" />', '<img src="./images/emoji/e20b.png" class="emoji" />', '<img src="./images/emoji/e22a.png" class="emoji" />', '<img src="./images/emoji/e22b.png" class="emoji" />', '<img src="./images/emoji/e226.png" class="emoji" />', '<img src="./images/emoji/e227.png" class="emoji" />', '<img src="./images/emoji/e22c.png" class="emoji" />', '<img src="./images/emoji/e22d.png" class="emoji" />', '<img src="./images/emoji/e215.png" class="emoji" />', '<img src="./images/emoji/e216.png" class="emoji" />', '<img src="./images/emoji/e217.png" class="emoji" />', '<img src="./images/emoji/e218.png" class="emoji" />', '<img src="./images/emoji/e228.png" class="emoji" />', '<img src="./images/emoji/e151.png" class="emoji" />', '<img src="./images/emoji/e138.png" class="emoji" />', '<img src="./images/emoji/e139.png" class="emoji" />', '<img src="./images/emoji/e13a.png" class="emoji" />', '<img src="./images/emoji/e208.png" class="emoji" />', '<img src="./images/emoji/e14f.png" class="emoji" />', '<img src="./images/emoji/e20a.png" class="emoji" />', '<img src="./images/emoji/e434.png" class="emoji" />', '<img src="./images/emoji/e309.png" class="emoji" />', '<img src="./images/emoji/e315.png" class="emoji" />', '<img src="./images/emoji/e30d.png" class="emoji" />', '<img src="./images/emoji/e207.png" class="emoji" />', '<img src="./images/emoji/e229.png" class="emoji" />', '<img src="./images/emoji/e206.png" class="emoji" />', '<img src="./images/emoji/e205.png" class="emoji" />', '<img src="./images/emoji/e204.png" class="emoji" />', '<img src="./images/emoji/e12e.png" class="emoji" />', '<img src="./images/emoji/e250.png" class="emoji" />', '<img src="./images/emoji/e251.png" class="emoji" />', '<img src="./images/emoji/e14a.png" class="emoji" />', '<img src="./images/emoji/e149.png" class="emoji" />', '<img src="./images/emoji/e23f.png" class="emoji" />', '<img src="./images/emoji/e240.png" class="emoji" />', '<img src="./images/emoji/e241.png" class="emoji" />', '<img src="./images/emoji/e242.png" class="emoji" />', '<img src="./images/emoji/e243.png" class="emoji" />', '<img src="./images/emoji/e244.png" class="emoji" />', '<img src="./images/emoji/e245.png" class="emoji" />', '<img src="./images/emoji/e246.png" class="emoji" />', '<img src="./images/emoji/e247.png" class="emoji" />', '<img src="./images/emoji/e248.png" class="emoji" />', '<img src="./images/emoji/e249.png" class="emoji" />', '<img src="./images/emoji/e24a.png" class="emoji" />', '<img src="./images/emoji/e24b.png" class="emoji" />', '<img src="./images/emoji/e23e.png" class="emoji" />', '<img src="./images/emoji/e532.png" class="emoji" />', '<img src="./images/emoji/e533.png" class="emoji" />', '<img src="./images/emoji/e534.png" class="emoji" />', '<img src="./images/emoji/e535.png" class="emoji" />', '<img src="./images/emoji/e21a.png" class="emoji" />', '<img src="./images/emoji/e219.png" class="emoji" />', '<img src="./images/emoji/e21b.png" class="emoji" />', '<img src="./images/emoji/e02f.png" class="emoji" />', '<img src="./images/emoji/e024.png" class="emoji" />', '<img src="./images/emoji/e025.png" class="emoji" />', '<img src="./images/emoji/e026.png" class="emoji" />', '<img src="./images/emoji/e027.png" class="emoji" />', '<img src="./images/emoji/e028.png" class="emoji" />', '<img src="./images/emoji/e029.png" class="emoji" />', '<img src="./images/emoji/e02a.png" class="emoji" />', '<img src="./images/emoji/e02b.png" class="emoji" />', '<img src="./images/emoji/e02c.png" class="emoji" />', '<img src="./images/emoji/e02d.png" class="emoji" />', '<img src="./images/emoji/e02e.png" class="emoji" />', '<img src="./images/emoji/e332.png" class="emoji" />', '<img src="./images/emoji/e333.png" class="emoji" />');
		
		$fixed_text = str_replace($unicode_emoji, $html_emoji, $text);
		
		return $fixed_text;
	
	} else {
		
		return $text;
	}
}

?>

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] iPhone Emoji for phpBB3

Post by 4_seven » Sat May 12, 2012 9:07 pm

use notepad++ for this test - nothing else, and follow this
http://www.phpbb.com/community/viewtopi ... #p13145820
Current Mods | Mod Base | php(BB) programming | No help via PM

Locked

Return to “[3.0.x] MODs in Development”