Does anyone know how to remove the "All Forums" from the "Search Where" box when you do a search? I want people to be able to choose specific forums when searching....not search on all of them at once, because it uses up alot resources on the site when they choose "All"
Thanks!
Need help removing a certain part in the Search Funtion
Started by visionz510, Jul 25 2010 05:04 PM
1 reply to this topic
#2
Posted 25 July 2010 - 05:44 PM
Try this:
Note this is untested as I tried it with an almost empty database so have no 'results' anyway.
Open /sources/action_public/search.php
Around line 756:
Replace with:
You are effectively just removing this line:
Does remove the 'All Forums' option from the search page, although check a search in a forum (or multiple forums) to confirm it does work properly.
Note this is untested as I tried it with an almost empty database so have no 'results' anyway.
Open /sources/action_public/search.php
Around line 756:
$forums = "<select name='forums[]' class='forminput' size='10' multiple='multiple'>\n" ."<option value='all'".$init_sel.">".$this->ipsclass->lang['all_forums']."</option>" . $the_html . "</select>";
Replace with:
$forums = "<select name='forums[]' class='forminput' size='10' multiple='multiple'>\n" . $the_html . "</select>";
You are effectively just removing this line:
."<option value='all'".$init_sel.">".$this->ipsclass->lang['all_forums']."</option>"
Does remove the 'All Forums' option from the search page, although check a search in a forum (or multiple forums) to confirm it does work properly.
View my tutorials
Please do NOT pm me with support related questions unless requested.
If you are in need of help or assistance, please post on the forum in the appropriate section!
A Look Back - 1.0.1 - 1.3.1 - 2.0.0 - 2.1.7 - 2.2.0 - 2.3.6
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users





Contributor










