

Code: Select all
}
else
{
redirect(append_sid("login.$phpEx?redirect=search.$phpEx&search_id=newposts", true));
}
$show_results = 'topics';
$sort_by = 0;
$sort_dir = 'DESC';
}
else if ( $search_id == 'egosearch' )
{
if ( $userdata['session_logged_in'] )
{
$sql = "SELECT post_id
FROM " . POSTS_TABLE . "
WHERE poster_id = " . $userdata['user_id'];
}
else
{
redirect(append_sid("login.$phpEx?redirect=search.$phpEx&search_id=egosearch", true));
}
$show_results = 'topics';
$sort_by = 0;
$sort_dir = 'DESC';
//-- mod : List watched Topics ------------------------------------------------------------
//-- add
elseif ( $watched ) <--------------- line 251
{
if ( $userdata['session_logged_in'] )
{
$sql = 'SELECT t.topic_first_post_id as post_id
FROM ' . TOPICS_TABLE . ' t, ' . TOPICS_WATCH_TABLE . ' tw
WHERE t.topic_id = tw.topic_id
AND tw.user_id = ' . $userdata['user_id'];
}
else
{
redirect(append_sid("login.$phpEx?redirect=search.$phpEx&search_id=watched", true));
}
$show_results = 'topics';
$sort_by = 0;
$sort_dir = 'DESC';
}
//-- fin mod : List watched Topics --------------------------------------------------------Code: Select all
#
#-----[ FIND ]------------------------------------------
#
$sort_by = 0;
$sort_dir = 'DESC';
}Code: Select all
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/index_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<a href="{U_SEARCH_NEW}"
#
#-----[ AFTER, ADD ]------------------------------------------
#
<a href="{U_SEARCH_WATCHED}" class="gensmall">{L_SEARCH_WATCHED}</a><br />Code: Select all
#
#-----[ FIND ]------------------------------------------
#
message_die(GENERAL_MESSAGE, $lang['No_search_match']);
#
#-----[ FIND ]------------------------------------------
#
message_die(GENERAL_MESSAGE, $lang['No_search_match']);
#
#-----[ BEFORE, ADD ]------------------------------------------
#
//-- mod : List watched Topics ------------------------------------------------------------
//-- add
$msg = ( !$watched ) ? $lang['No_search_match'] : $lang['No_watched_topics'];
//-- fin mod : List watched Topics --------------------------------------------------------
#
#-----[ IN-LINE FIND ]------------------------------------------
#
$lang['No_search_match']
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
$msg
Code: Select all
#
#-----[ FIND ]------------------------------------------
#
$page_title = $lang['Search'];
#
#-----[ IN-LINE FIND ]------------------------------------------
#
$lang['Search']
#
#-----[ IN-LINE BEFORE, ADD ]------------------------------------------
#
( !$watched ) ?
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
: $lang['Search_watched_topics']
Code: Select all
message_die(GENERAL_MESSAGE, $lang['No_search_match']);Code: Select all
message_die(GENERAL_MESSAGE, $lang['No_search_match']);Code: Select all
//-- mod : List watched Topics ------------------------------------------------------------
//-- add
$msg = ( !$watched ) ? $lang['No_search_match'] : $lang['No_watched_topics'];
//-- fin mod : List watched Topics --------------------------------------------------------Code: Select all
$page_title = ( !$watched ) ? $lang['Search'] : $lang['Search_watched_topics'];Any thoughts on what might be going on? Thanks for your help, and thanks for developing this great mod!Critical Error
FIND FAILED: In file [search.php] could not find:
if (intval($row['last_search_time']) > 0 && ($current_time - intval($row['last_search_time'])) < intval($board_config['search_flood_interval']))
Users browsing this forum: No registered users and 1 guest