Jump to content

Recommended Posts

I am setting up a PHP guestbook. I have also set up a script to use smilies. It uses a text file to store messages. In the stored message the smilies are saved as code, IE -

<img src="image/smile/tongue.gif">

When I edit a message with smilies in it, the text part comes up in the edit box but not the smiley code so that you have to reinsert smilies into a message. Any idea how to remedy this? ThanksĀ  :)

Link to comment
https://forums.phpfreaks.com/topic/66218-php-guestbook-smileyedit-question/
Share on other sites

looks like you are replacing the smilie code ( eg: :P) when you save the submitted text into the text file, or however you store it. What you should do is process the smilie code when you go to display the data stored on your page instead. That way when you go to edit the text later on it'll still be in its rawest form (no fomatting, basic text).

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.