Page 1 of 1
Can I Add More Smilies?
Posted: Sat Oct 29, 2005 9:51 pm
by Dean Saliba
I would like to add more smilies. Is this possible?
Posted: Tue Nov 01, 2005 9:59 pm
by Klemen
It would include messing with the PHP code and I don't recommen that unless you are familiar with PHP. You could simply replace a few existing file images with your own (replace some original ones with new ones).
Posted: Thu May 18, 2006 11:59 am
by tungsten
first off let me say that this is an AWESOME script !! So simple it's incredible !
Thank you !
How do I add more smilies ?
I uploaded a few more to the images folder
eg: band.gif
I went to smileys.htm & went into edit mode & added the following:
<a href="javascript:void(0)" onClick="Javascript:insertSmiley(':band:');return false;"><img src="images/band.gif" border="0" alt=""></a>
When I add an entry to the GBook & see the "new" smiley gif(in popup window) I imported but when I sview my post all I see is :band: - No image
Please tell me what I am missing
Thank you in advance
Edit: Im having an issue w/ the gbook not a message board
Posted: Thu May 18, 2006 7:15 pm
by Klemen
HI,
Both in MBoard and GBook use have function "processsmileys" in the main php file (mboard.php or gbook.php). You must add a line there to process your new smileys, for example:
Code: Select all
$text = str_replace(':band:','<img src="images/icon_band.gif" border="0" alt="">',$text);
Regards
Posted: Thu May 18, 2006 7:37 pm
by tungsten
Thank you I had figured it out about 1hr ago !
Thank you again