Customizing SMF > Modifications and Packages
Search Focus Dropdown
Brettflan:
Link to Mod
This mod adds a dropdown to the search field at the top of the page, similar to the one on the official SMF community forum.
When viewing a topic, the dropdown options will be "this topic" (default), "this board", "entire forum", or "Google".
When viewing a board, the dropdown options will be "this board" (default), "entire forum", or "Google".
On any other page, the dropdown options will be "entire forum" (default) or "Google".
The "Google" site-search option can be disabled in the Admin panel by going to Forum->Search->Settings and unchecking the new option there. Similarly, there is another option to enable "Bing" site-search in the same place.
You will also see a list of all your forum's boards there for possible inclusion in the dropdown as choices. These board choices will shown everywhere, just above the "entire forum" option. You can use this to add your "FAQ" or "Support" board (or whatever you like) to the dropdown for easy searching from anywhere in the forum.
Other than English, language strings are also provided for these languages: Brazilian Portuguese, French, German, Italian, Romanian, Russian, Spanish, Turkish.
Note: since support for SMF 2.0 RC1 was removed with version 1.6.0, 1.54 is still available with support for it. Though honestly, if you're still running 2.0 RC1, your forum has been outdated for nearly two years now.
Changelog
version 1.6.1:
* fix for bug on SMF 1.1.x versions which kept the mod from working at allversion 1.6.0:
* Complete overhaul of codebase. The old code was a bit kludgy in places. The changes needed for each theme's index.template.php file are very compact now as most of the display code has been consolidated into a couple of separate new files.
* New "Bing" site-search option. Works the same as the Google option, but (naturally) uses Bing. Defaults to disabled.
* You can now add whatever boards you want to the dropdown as separate options, to be shown on every page just above the "Entire site" option. Could be useful for your "FAQ" or "Support" board if you have one. NOTE that this is only available in SMF 2.0. If you are using SMF 1.1.x, sorry. Consider upgrading.
* If you have Visual Verification required for searches (for Guests, or whatever), the search focus will be properly passed through that instead of being lost.
* Attempted to improve vertical alignment of search form elements.
* Removed support for old 2.0 RC1 installations; if you're still using it, you should have updated a long long time ago.version 1.54:
* support for Antechinus' Prince of Darkness theme outdated release named "Ants_Curve_Variants_20"version 1.53:
* better support for Antechinus' newest Prince of Darkness and Chocolate Curvaceous theme releases ("201" versions)version 1.52:
* support for installation on SMF 2.0 Finalversion 1.51:
* support for SMF 1.1.12 and 2.0 RC4
* added built-in Romanian language support, updated German and Russian translationsversion 1.5:
* rewrite of mod to clean up the code and reduce the chance of conflicts with other mods during uninstallation
* dropdown is now shown on every page
* new "Google" search option which does a Google site-search for your domain; this option can be disabled in the Admin panelversion 1.44:
* minor: fixed installation support for SMF 1.1.11 (it somehow got broken on the last update, my mistake)version 1.43:
* minor: installation support for SMF 2.0 RC3version 1.42:
* minor: installation support for SMF 1.1.11version 1.41:
* improved theme support for Antechinus' Prince of Darkness, Blue Steel, and Chocolate Curvaceous variants (looked a bit funky, oops)version 1.4:
* support for SMF 2.0 RC2 and Curve theme
* additional theme support for Antechinus' Prince of Darkness, Blue Steel, and Chocolate Curvaceous variants
* added built-in French language supportversion 1.31:
* minor: installation support for SMF 1.1.10 and 2.0RC1.2version 1.3:
* added support for SMF 1.1.9 and 2.0RC1-1
* added built-in Spanish and German language supportversion 1.2:
* added support for SMF 1.1.8
* added built-in Italian and Brazilian Portuguese language supportversion 1.1:
* initial public release.
edi67:
Great let me try it
Work perfectly thx
Italian language
// Search field scope mod
--- Code: ---$txt['search_scope_topic'] = 'In questo topic';
$txt['search_scope_board'] = 'In questa sezione';
$txt['search_scope_all'] = 'In Tutto il forum';
--- End code ---
Chandy:
Thx man :) !
Portuguese Brazil language
// Search field scope mod
--- Code: ---$txt['search_scope_topic'] = 'Neste tópico';
$txt['search_scope_board'] = 'Nesta seção';
$txt['search_scope_all'] = 'Tudo no forum';
--- End code ---
NHWD:
please make this mod compatible to 1.1.8!
Brettflan:
--- Quote from: CL0WNER on February 14, 2009, 10:19:23 PM ---please make this mod compatible to 1.1.8!
--- End quote ---
I'll see what I can do. It will be a few days though until I have time to make an installation of 1.1.8 and work on it.
Navigation
[0] Message Index
[#] Next page
Go to full version