Where is code to delete smileys completely from guestbook?

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
tandyd25
Posts: 3
Joined: Thu Mar 03, 2011 6:15 am

Where is code to delete smileys completely from guestbook?

Post 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
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Re: Where is code to delete smileys completely from guestboo

Post 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
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.
tandyd25
Posts: 3
Joined: Thu Mar 03, 2011 6:15 am

Re: Where is code to delete smileys completely from guestboo

Post 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?
tandyd25
Posts: 3
Joined: Thu Mar 03, 2011 6:15 am

Re: Where is code to delete smileys completely from guestboo

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

Re: Where is code to delete smileys completely from guestboo

Post by Klemen »

If I understand correctly, you need this:
viewtopic.php?f=7&t=3081&p=13179
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
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Re: Where is code to delete smileys completely from guestboo

Post 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
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