Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: show search form or link to search.php on home page

this is my coustom code in search-form:

<form action="<?php bb_option('uri'); ?>search.php" method="get">
<p><?php _e('Search:'); ?>
<input type="text" size="70" maxlength="200" name="q" value="<?php echo attribute_escape( $q ); ?>" />
<?php if( empty($q) ) : ?>
<input type="submit" value="<?php echo attribute_escape( __('Search &raquo;') ); ?>" class="inputButton" />
<?php else : ?>
<input type="submit" value="<?php echo attribute_escape( __('Search again &raquo;') ); ?>" class="inputButton" />
<?php endif; ?>
</p>
</form>

Skip to toolbar