Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:
Write your message below:
Recently upgraded to gbook 1.7 and all went well. But when I change the settings.php file for Allow smileys to "0". The smileys are still showing up in the Sign Guestbook form. I do not want the smileys available or appearing on the Sign Guestbook form.
Refreshed browser, tried from another pc, the smileys still show up and the Settings.php file is set to "0"
Loaded the original settings.php and it does the same thing.
Am I missing another location to not allow smileys?
Allow Smileys
Hi,
Actually you just found a small bug - when templates were introduced the smiley functionality was hard-coded inside.
I will release a fix later this week, for now you can manually remove lines 61-73 from file "templates/default/sign_form.php"
Actually you just found a small bug - when templates were introduced the smiley functionality was hard-coded inside.
I will release a fix later this week, for now you can manually remove lines 61-73 from file "templates/default/sign_form.php"
Code: Select all
<a href="#" onclick="document.getElementById('cmnt').value += ' :D ';return false;"><img src="<?php echo $settings['tpl_path']; ?>images/emoticons/bigsmile.gif" alt=":D" title=":D" width="19" height="19" /></a>
<a href="#" onclick="document.getElementById('cmnt').value += ' :!cool: ';return false;"><img src="<?php echo $settings['tpl_path']; ?>images/emoticons/cool.gif" alt=":!cool:" title=":!cool:" width="19" height="19" /></a>
<a href="#" onclick="document.getElementById('cmnt').value += ' :!cry: ';return false;"><img src="<?php echo $settings['tpl_path']; ?>images/emoticons/crying.gif" alt=":!cry:" title=":!cry:" width="19" height="19" /></a>
<a href="#" onclick="document.getElementById('cmnt').value += ' :!devil: ';return false;"><img src="<?php echo $settings['tpl_path']; ?>images/emoticons/devil.gif" alt=":!devil:" title=":!devil:" width="19" height="19" /></a>
<a href="#" onclick="document.getElementById('cmnt').value += ' :) ';return false;"><img src="<?php echo $settings['tpl_path']; ?>images/emoticons/smile.gif" alt=":)" title=":)" width="19" height="19" /></a>
<a href="#" onclick="document.getElementById('cmnt').value += ' :!mad: ';return false;"><img src="<?php echo $settings['tpl_path']; ?>images/emoticons/mad.gif" alt=":!mad:" title=":!mad:" width="19" height="19" /></a>
<a href="#" onclick="document.getElementById('cmnt').value += ' :!thinking: ';return false;"><img src="<?php echo $settings['tpl_path']; ?>images/emoticons/thinking.gif" alt=":!thinking:" title=":!thinking:" width="19" height="19" /></a>
<a href="#" onclick="document.getElementById('cmnt').value += ' :p ';return false;"><img src="<?php echo $settings['tpl_path']; ?>images/emoticons/tongueout.gif" alt=":p" title=":p" width="19" height="19" /></a>
<a href="#" onclick="document.getElementById('cmnt').value += ' ;) ';return false;"><img src="<?php echo $settings['tpl_path']; ?>images/emoticons/wink.gif" alt=";)" title=";)" width="19" height="19" /></a>
<a href="#" onclick="document.getElementById('cmnt').value += ' :o ';return false;"><img src="<?php echo $settings['tpl_path']; ?>images/emoticons/blush.gif" alt=":o" title=":o" width="19" height="19" /></a>
<a href="javascript:openSmiley()" class="gbook_submitted"><?php echo $lang['t26']; ?></a><br />
<label><input type="checkbox" name="nosmileys" value="Y" class="gbook_checkbox" <?php echo $nosmileys; ?> /><span class="gbook_entries"><?php echo $lang['t28']; ?></span></label><br class="clear" />
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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