Perso ca marche très bien sur alternc.
J'ai modifié le post_smiles.php car je voulais un truc plus simple si j'ajoutais des smiley, et également parce que onClick="insertThis" me plaçait 2x les smiley sous mozilla...
Le code html est assez crade, a modifier. Voila donc mon post_smiles.php :
<br>
<table border="0" cellpadding="0" cellspacing="4" width="100%">
<tr>
<td width="101%" colspan="5">
<p align="right"><b>Insert Smiley's</b></td>
</tr>
<tr>
<td width="101%" align="center">
<?php
// Display the smiley set
//require $pun_root.'include/parser.php';
$smiley_text = array(':)', '=)', ':(', '=(', ':D', '=D', ';)', ':x', ':rolleyes:', ':-)', ':grin:', ':smile:', ':-o', '8)', '8-)', ':evil:' );
$smiley_img = array('smile.png', 'smile.png', 'sad.png', 'sad.png', 'big_smile.png', 'big_smile.png', 'wink.png', 'mad.png', 'roll.png', 'meza2.gif', 'eins2.gif', 'alizee2.gif', 'asianballs.gif', 'drwar.gif', 'Drumkid2.gif', 'lionouls.gif' );
$num_smilies = count($smiley_text);
for ($i = 0; $i < $num_smilies; ++$i)
{
// Is there a smiley at the current index?
if (!isset($smiley_text[$i]))
continue;
// Save the current text and image
$cur_img = $smiley_img[$i];
$cur_text = $smiley_text[$i];
// Loop through the rest of the array and see if there are any duplicate images
// (more than one text representation for one image)
for ($next = $i + 1; $next < $num_smilies; ++$next)
{
// Did we find a dupe?
if ($smiley_img[$i] == $smiley_img[$next])
{
// Remove the dupe so we won't display it twice
unset($smiley_text[$next]);
unset($smiley_img[$next]);
}
}
echo "<img src=\"img/smilies/".$cur_img."\" onclick=\"formatThis('".$cur_text."', ' ')\" >";
}
?>
</td>
</tr>
</table>
$smiley_text et $smiley_img copiés de parse.php