How to disable search function?

Started by avord, March 30, 2011, 10:54:46 PM

Previous topic - Next topic

avord

Hello,

I would like to disable "search" field and button from the main page of my forum. Please advice.

Thanks

avord

Anyone can help me?
I tried to delete this code from /themes/celeste/index.template.php
            <form id="search_form" style="margin: 0;" action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '">
               <input type="text" name="search" value="" class="input_text" />&nbsp;
               <input type="submit" name="submit" value="', $txt['search'], '" class="button_submit" />
               <input type="hidden" name="advanced" value="0" />';
</form>

But after this I'm getting Template parse error.
Is there any other way to disable search field and search button from the main page of my forum?

Thanks

Matthew K.

Would you please attach your index.template.php? By the way, welcome to the SMF Community! :)

avord


Matthew K.

Try this.

Best Regards,
Doctor Octopus

SlammedDime

Your topic title and post are confusing... do you want to actually disable the search function altogether or just not make it visible?  If you want to disable it, you can easily do that by removing the permissions to search from each membergroup.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Matthew K.

From the topic starters second post, it appears they want to just remove it from the index.

avord

Quote from: Doc Ock on April 01, 2011, 12:26:27 PM
Try this.

Best Regards,
Doctor Octopus

It's removed now! Thanks a lot for your help! I really appreciate it :)

Matthew K.


Advertisement: