News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Removal of search area

Started by The Domain Shop, February 28, 2011, 04:16:06 PM

Previous topic - Next topic

The Domain Shop

How do i remove the search area completely from in the header area?



Hj Ahmad Rasyid Hj Ismail

Normally it is in index.template.php. Try to find it there.

The Domain Shop

Here's what i found, just not sure what im removing.

<div id="searcharea">
<form action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '">
  <input class="inputbox" type="text" name="search" value="', $txt['search'], '..." onfocus="this.value = \'\';" onblur="if(this.value==\'\') this.value=\'', $txt['search'], '...\';" /> ';

// Search within current topic?
if (!empty($context['current_topic']))
echo '
<input type="hidden" name="topic" value="', $context['current_topic'], '" />';

// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="brd[', $context['current_board'], ']" value="', $context['current_board'], '" />';

echo '
</form>
</div>';

Matthew K.

Trax, you're safe to remove all of that...

Arantor

Assuming the trailing '; is left in, that is - that's an already open echo at the start of the code block ;)

The Domain Shop

#7
Cheers guys for your help and thanks for pointing that out Arantor because i did remove all the code and obviously got template parse error ;)

Advertisement: