Emoticons not displaying in older posts

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
polaj
Posts: 4
Joined: Wed Sep 21, 2011 9:50 am

Emoticons not displaying in older posts

Post by polaj »

Script URL: http://tinyurl.com/ow7kjkk
Version of script: 1.7
Hosting company: Siteground
URL of phpinfo.php: http://tinyurl.com/mavcmwd
URL of session_test.php: http://tinyurl.com/mrg8zro
What terms did you try when SEARCHING for a solution: smiley, emoticon

Write your message below:

Hello, I am noticing that new guestbook posts containing emoticons are displaying the emoticons correctly. However, older posts just show the code representing the emoticon instead of the emoticon itself. I think this is due to the fact that I may have have emoticons disabled at some point in my configuration file. However, users apparently were able to click on emoticon icons anyway and insert them into their guestbook entries. So now I have a few entries in my guestbook that are showing the code rather than the actual emoticon. I'm wondering if there is a way to go back and fix this.
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Re: Emoticons not displaying in older posts

Post by Henrie »

Hello polaj,

The only way to fix this, is to open the gbook entries file and find the emoticons and fix the code for each emoticon separately so they are displayed correctly.

Greetings,
Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
polaj
Posts: 4
Joined: Wed Sep 21, 2011 9:50 am

Re: Emoticons not displaying in older posts

Post by polaj »

The code in the entries file appears to be correct, though.
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Re: Emoticons not displaying in older posts

Post by Henrie »

I found for example the following :!cry: in the post of Added: September 20, 2013

This is not the correct code, this code is only displayed when you sign the guestbook. When posting the message, the code :!cry: is converted to <img src="./templates/default/images/emoticons/crying.gif" border="0" alt=":!cry:" title=":!cry:"/> and stored inside your gbook entries file.

In the file emoticons.php which can be found in the templates\default\ folder you can find which code converts to what image.

Greetings,
Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
Post Reply