[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
Drakken
Registered User
Posts: 144
Joined: Thu Jun 12, 2003 6:59 pm
Contact:

Re: [DEV] iPhone Emoji for phpBB3

Post by Drakken » Mon May 14, 2012 1:48 pm

Followed the steps above, however still receiving the same error.

Image

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;
	}
}

?>
Thanks for trying 4_seven :mrgreen:

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 » Mon May 14, 2012 5:51 pm

Drakken wrote:Followed the steps above, however still receiving the same error.

Image
Have you checked in mysql (mysqldumper), that your sql column post_text is utf8 or utf8-bin encoded?
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 » Mon May 14, 2012 8:07 pm

yes sir

Code: Select all

post_text	mediumtext	utf8_bin		No	None	

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 » Mon May 14, 2012 8:19 pm

then we should wait for the author. seems that this file was not right encoded from the very beginning.
Current Mods | Mod Base | php(BB) programming | No help via PM

User avatar
Neuropass
Registered User
Posts: 1158
Joined: Fri Apr 17, 2009 2:02 pm
Location: SciTE4AutoIt3

Re: [DEV] iPhone Emoji for phpBB3

Post by Neuropass » Mon Jun 25, 2012 5:06 pm

@dpaanlka

did you fix the issue described above?

vvasabi
Registered User
Posts: 3
Joined: Thu Apr 01, 2004 3:57 am

Re: [DEV] iPhone Emoji for phpBB3

Post by vvasabi » Tue Nov 06, 2012 12:23 am

(Kind of) based on @dpaanlka’s work, I have created a JS version that does the same thing. See my github repo for details:
https://github.com/vvasabi/phpbb3-emoji

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 » Thu Mar 07, 2013 2:39 am

Sorry guys, haven't looked at this in awhile. In fact, I'll probably not be using it on my board any longer.
phpBB user and evangelist since 2005.
My boards: Info-Mac | System 7 Today

Locked

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