Page 1 of 1

Where is code to delete smileys completely from guestbook?

Posted: Thu Mar 03, 2011 6:24 am
by tandyd25
Script URL: ?
Version of script: 1.7
Hosting company: justhost
URL of phpinfo.php: ?
URL of session_test.php: ?
What terms did you try when SEARCHING for a solution: smiley delete disable

Write your message below:

I am trying to disable/delete smileys all together from the code. These are the things I have tried:

deleted emotioconpopup.php
deleted emotiocons.php
deleted smilies
deleting the smiley images which resulted in x boxes where the pictures used to be

so far nothing works and I don't want them to appear at all where is the code to delete it from the guestbook completely? Thank you

Re: Where is code to delete smileys completely from guestboo

Posted: Thu Mar 03, 2011 6:38 am
by Henrie
Open settings.php file in your gbook folder

Search for $settings['smileys']=1; and change it to $settings['smileys']=0;

This will not disable the possibility to enter smileys, but it will make them display as plain text.

For example :( will be displayed as : ( and not as image.

Greetings,
Henrie

Re: Where is code to delete smileys completely from guestboo

Posted: Thu Mar 03, 2011 6:45 am
by tandyd25
I did that first, sorry I forgot to post that step but they are still visable on the page. Is this a possible code error or problem with my host?

Re: Where is code to delete smileys completely from guestboo

Posted: Thu Mar 03, 2011 6:46 am
by tandyd25
Are the emotocons still visable on the sign guestbook page, this is what I would like to delete, not only disable. Does that make sense?

Re: Where is code to delete smileys completely from guestboo

Posted: Thu Mar 03, 2011 3:56 pm
by Klemen
If I understand correctly, you need this:
viewtopic.php?f=7&t=3081&p=13179

Re: Where is code to delete smileys completely from guestboo

Posted: Thu Mar 03, 2011 7:38 pm
by Henrie
Indeed, for removing the ability to add smileys, use the link that Klemen showed you.

To not display smileys that have already been posted, there are 2 options:
1. Edit the entries.txt (or what you renamed it to) and remove all code that links to smileys.
2. The easiest way is to go to the templates folder and edit the style.css file. Add the following at the ende of the file

Code: Select all

span.gbook_comment img {display:none;}
This will not remove the smileys from the entries.txt file, but will prevent them from displaying on screen.

Greetings,
Henrie