With the search box being the in the 'overall_header.tpl' it normally searches the whole forum, the following changes will allow you to search the forum your viewing. Or the whole forum if viewing the index page.
- Code: Select all
#
#-----[ OPEN ]-------------------------------------------------------
#
templates/aphrodite_mc/overall_header.tpl
#
#-----[ FIND ]-------------------------------------------------------
#
<td class="forum-header header-search" align="right" valign="bottom">
<form action="{U_SEARCH}" method="get"><input name="search_keywords" type="text" class="post" style="width: 100px;" /> <input type="submit" class="liteoption" value="{L_SEARCH}" /></form>
</td>
#
#-----[ REPLACE WITH ]-----------------------------------------------
#
<td class="forum-header header-search" align="right" valign="bottom">
<form action="{AMC_SEARCH_INDEX}" method="POST"><input name="show_results" type="hidden" value="topics" /><input type="hidden" name="search_forum" value="{AMC_SEARCH_FORUM}" /><input type="hidden" name="search_fields" value="all"><input type="hidden" name="search_terms" value="all"><input name="search_keywords" type="text" class="post" style="width: 100px;" /> <input type="submit" class="liteoption" value="{L_SEARCH}" /></form>
</td>
#
#-----[ OPEN ]-------------------------------------------------------
#
templates/aphrodite_mc/aphrodite_mc.cfg
#
#-----[ FIND ]-------------------------------------------------------
#
'TPL_COLOR' => $color
));
#
#-----[ REPLACE WITH ]-----------------------------------------------
#
'TPL_COLOR' => $color,
// search stuff
'AMC_SEARCH_INDEX' => append_sid('search.php?mode=results'),
'AMC_SEARCH_FORUM' => isset($forum_id) ? $forum_id : '-1',
));
#
#-----[ SAVE/CLOSE ALL FILES ]---------------------------------------
#
# EoM


