Page 1 of 1

Add/Change Smiles

Posted: Thu Jul 12, 2007 1:25 am
by thegrrl
Script URL: http://silver-charm.org/gb/
Version of script: 1.5
Hosting company: tfcph.com
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: smilies

Write your message below:
Pretty simple it was asked before but was never answered. Can you change/add smilies?

If so is it as simple as just replacing the current smilies?

As for adding just add the same code and replace with image name of new smiley?

Just want to be sure and also incase someone else wants to know, thank you :)

Posted: Thu Jul 12, 2007 11:45 am
by Klemen
The problem with this type of questions is the answer is always the same: yes, it IS possible, but you need to know PHP and understand how the code works.

An example was once posted in the MBoard forum (which uses the same system as GBook), see if you can get it working:
viewtopic.php?t=499&highlight=smilies

Posted: Thu Jul 12, 2007 2:15 pm
by thegrrl
Ok great I did that, I added some new smilies edited both files, they are showing up except for one, this is the code on both files

on smilies.htm:

<a href="javascript:void(0)" onClick="Javascript:insertSmiley(':omg:');return false;"><img src="images/icon_omg.gif" border="0" alt=""></a> &nbsp;

and on the gbook.php file

$text = str_replace(':omg:','<img src="images/icon_omg.gif" border="0" alt="" />',$text);

Is there any reason why this would not show up? it only shows as mg:

other than that the other images show up fine, I tested it, and this is the only one that don't show, could it be because of the o?

Anyway thanks so much for this wonderful guestbook its so hard to find a good gbook and easy to install. :)

Posted: Thu Jul 12, 2007 5:04 pm
by Klemen
Probably because :o is already used for some other smiley. Try something else instead of :omg: , maybe just :mg: