Re: Help with Seach sidebox
This is usually the result of an incorrect edit in one of your language DEFINES.
You need to find instances where HEADER_SEARCH_DEFAULT_TEXT appears in your language php files, and when I use ADMIN>>>TOOLS>>>DEVELOPERS TOOL KIT, I find it appears in TWO of my files.
They are:-
/includes/languages/english/header.php
Line #28 : define('HEADER_SEARCH_DEFAULT_TEXT', 'Enter search keywords here');
/includes/languages/english/your_template/header.php
Line #28 : define('HEADER_SEARCH_DEFAULT_TEXT', 'Enter search keywords here');
If you now call up your copies to see what's appearing in the text strings, you may find you (or someone) has deleted the single quote marks along with the text... eg:
define('HEADER_SEARCH_DEFAULT_TEXT', );
whereas (if you want no phrase to appear) it should be:
define('HEADER_SEARCH_DEFAULT_TEXT', ' ');
To fix, simply make sure your text phrase is between two single quote marks:-
define('HEADER_SEARCH_DEFAULT_TEXT', 'Whatever text you want goes in here');
Re: Help with Seach sidebox
Hi,
I have looked as you suggested and this is what I have shown
/var/www/sites/horsemansshop/horsemansshop.com.au/subdomains/www/html/shop/includes/languages/english/classic/header.php
Line #28 : define('HEADER_SEARCH_DEFAULT_TEXT','Enter search keywords here');
/var/www/sites/horsemansshop/horsemansshop.com.au/subdomains/www/html/shop/includes/languages/english/header.php
Line #12 : /*define('HEADER_SEARCH_DEFAULT_TEXT', 'Enter search keywords here');*/?>
/var/www/sites/horsemansshop/horsemansshop.com.au/subdomains/www/html/shop/includes/languages/english/rustic/header.php
Line #28 : define('HEADER_SEARCH_DEFAULT_TEXT', 'Enter search keywords here');
I havn't changed anything can you see what is wrong?
Johanna
Re: Help with Search sidebox
Below is a copy of my file :
includes/languages/english/header.php
PHP Code:
<?php
/**
* @package languageDefines
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: header.php 2940 2006-02-02 04:29:05Z drbyte $
*/
// header text in includes/header.php
define('HEADER_TITLE_CREATE_ACCOUNT', 'Create Account');
define('HEADER_TITLE_MY_ACCOUNT', 'My Account');
define('HEADER_TITLE_CART_CONTENTS', 'Shopping Cart');
define('HEADER_TITLE_CHECKOUT', 'Checkout');
define('HEADER_TITLE_TOP', 'Top');
define('HEADER_TITLE_CATALOG', 'Home');
define('HEADER_TITLE_LOGOFF', 'Log Out');
define('HEADER_TITLE_LOGIN', 'Log In');
// added defines for header alt and text
define('HEADER_ALT_TEXT', 'Powered by Zen Cart :: The Art of E-Commerce');
define('HEADER_SALES_TEXT', 'TagLine Here');
define('HEADER_LOGO_WIDTH', '192px');
define('HEADER_LOGO_HEIGHT', '64px');
define('HEADER_LOGO_IMAGE', 'logo.gif');
// header Search Button/Box Search Button
define('HEADER_SEARCH_BUTTON','Search');
define('HEADER_SEARCH_DEFAULT_TEXT', 'Enter search keywords here');
?>
For some reason, you've got:-
/*define('HEADER_SEARCH_DEFAULT_TEXT', 'Enter search keywords here');*/?>
Not sure why an attempt has been made to comment out the line - and besides, this is not how tyou comment out a line in PHP - but is the method for CSS.