Community Add-Ons

Maintainers: ctr17163
Add file to this package
Top » InfoBoxes

Simple Search Box
for osCommerce Online Merchant v2.2

Ok I have been designing oscommerce for a while now and I have noticed a major problem with the search box and the search button lining up on with each other if you are wanting to add a search box to the header ect... So I wrote 1 that work with basic html. This allows you to add a search box anywhere on your site and it lines up!

If you have any questions feel free

Legend:  Download   Report
Expand All / Collapse All
UPDATE_Simple Search Box v2.3 by faaliyet (FullPackage) octav38 19 Oct 2008  



Sorry for my bad english:(


For work and write in all the languages


1)Open includes/languages/english.php file and other lang. files

And add before ?>

This:

For english:

define('SEARCH_VALUE','Search...');

For french:

define('SEARCH_VALUE','Recherche...');

For dutch:

define('SEARCH_VALUE','Zoek...');

For german:

define('SEARCH_VALUE','Suche...');

..............
.........

2)Add new file(search2.php) into into catalog/includes/boxes path folder.

###Then take this code and add it anywhere you want your search box to show up at:


<?php include(DIR_WS_BOXES . 'search2.php'); ?>


3) And in the file:catalog/includesboxessearch2.php

reply LINE 31

<input type="text" name="keywords" maxlength="30" value="Search...." onFocus="clearDefault(this)" onBlur="Default(this)">

With this:

<input type="text" name="keywords" maxlength="30" value="<?php echo SEARCH_VALUE; ?>" onFocus="clearDefault(this)" onBlur="Default(this)">

Now it,s work and write in wich language you use.

No zip arhive

All the merit for faaliyet

Have a nice day!

Simple Search Box v2.3 by faaliyet (FullPackage) faaliyet 18 Aug 2008  
Simple Search Box v2.2 nimz 10 Dec 2007  
Simple Search Box v2.1 Legend107 4 Jan 2006  
Blue search in header cosmin 2 Jan 2006  
SImple Search w/ Advanced link AlaneinHilo 7 Dec 2005  
Simple Search Box ctr17163 7 Jul 2005