News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

help for Search Focus Dropdown

Started by alsaka, January 14, 2011, 02:51:14 PM

Previous topic - Next topic

alsaka

i installed successfully this mod but i working with other themes
themes name ( smf pro alpha )

i know i must do this in me theme
/Themes/default/index.template.php
find this
<input type="submit" name="submit" value="', $txt['search'] <<<Does not exist

add befor
';

loadLanguage('SearchFocus');

// Viewing a topic?
if (!empty($context['current_topic']))
{
echo '
<input type="hidden" name="brd[', $context['current_board'], ']" value="', $context['current_board'], '" />';
$focus_options = '
<option value="topic" selected="selected">' . $txt['search_focus_topic'] . '</option>
<option value="board">' . $txt['search_focus_board'] . '</option>
<option value="all">' . $txt['search_focus_all'] . '</option>';
}
// Viewing a board?
elseif (!empty($context['current_board']))
$focus_options = '
<option value="board" selected="selected">' . $txt['search_focus_board'] . '</option>
<option value="all">' . $txt['search_focus_all'] . '</option>';
// Viewing something else, such as index
else
$focus_options = '
<option value="all" selected="selected">' . $txt['search_focus_all'] . '</option>';

// Google option enabled?
if (!empty($modSettings['search_focus_enable_google']))
$focus_options .= '
<option value="google">' . $txt['search_focus_google'] . '</option>';

// Show the search focus dropdown
echo '
<select name="search_focus" id="search_focus">' . $focus_options . '
</select>';

echo '


i don't find this code in my theme

Yigal

That's because it's not the default theme.  You should post this in the Modification Support Topic or the Theme support topic.
Yigal V.
Contact me by PM


do yourself a favour and not annoy support helpers by spamming or messaging for support
1.x Support | 2.x Support | 5Mods

alsaka

ok i will past in Modification Support 

any one can help me post here please

Yigal

Let's keep it down to one place rather than two, that'd be spam.

I'll mark this topic solved.
Yigal V.
Contact me by PM


do yourself a favour and not annoy support helpers by spamming or messaging for support
1.x Support | 2.x Support | 5Mods

alsaka

I do not mean spam brother
Only I did not know where I put this topic
its ok solved solved


:o but its not solved  ;D

Thank you to guide me to the right place

Yigal

I know it's not solved, there's just no reason for it to be here xP.
Thanks for your understanding, I hope your topic gets solved :)
Yigal V.
Contact me by PM


do yourself a favour and not annoy support helpers by spamming or messaging for support
1.x Support | 2.x Support | 5Mods

Advertisement: