Add/Change Smiles

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
thegrrl
Posts: 6
Joined: Fri Jun 22, 2007 11:36 pm

Add/Change Smiles

Post 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 :)
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
thegrrl
Posts: 6
Joined: Fri Jun 22, 2007 11:36 pm

Post 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. :)
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Probably because :o is already used for some other smiley. Try something else instead of :omg: , maybe just :mg:
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply