- Code: Alles auswählen
#
#-----[ OPEN ]----------------------------------------------------------------
#
search.php
#
#-----[ FIND ]----------------------------------------------------------------
#
$base_url = "search.$phpEx?search_id=$search_id";
#
#-----[ BEFORE, ADD ]---------------------------------------------------------
#
if ( $watched )
{
$search_id = 'watched';
}
Zugefügt nach 1 Stunde(n) 47 Minute(n):
Ich habe dem Autor eviL<3 diesen Fix mitgeteilt und er wird ihn in das nächste release übernehmen.
Zugefügt nach weiteren 27 Tag(en) 5 Stunde(n) 18 Minute(n):
Vergesst den Fix! IPB_Refugee hat das Problem im Kern beseitigt.
- Code: Alles auswählen
#
#-----[ OPEN ]------------------------------------------
#
search.php
#
#-----[ FIND ]------------------------------------------
#
$watched = ( $search_id == 'watched' ) ? true : false;
#
#-----[ REPLACE WITH ]------------------------------------------
#
$watched = ( $search_id == 'watched' ) ? true : false;
$watched_tpl = ( $watched || isset($HTTP_GET_VARS['watched']) ) ? true : false;
#
#-----[ FIND ]------------------------------------------
#
if ( $watched )
{
$template->set_filenames(array(
'body' => 'search_results_watch.tpl')
);
}
#
#-----[ REPLACE WITH ]------------------------------------------
#
if ( $watched_tpl )
{
$template->set_filenames(array(
'body' => 'search_results_watch.tpl')
);
}
#
#-----[ FIND ]------------------------------------------
#
$base_url = "search.$phpEx?search_id=$search_id";
$template->assign_vars(array(
#
#-----[ REPLACE WITH ]------------------------------------------
#
$base_url = "search.$phpEx?search_id=$search_id&watched";
$template->assign_vars(array(
Zugefügt nach weiteren 1 Minute(n):
Und hier noch ein Fix von Autor selber:
- Code: Alles auswählen
#
#-----[ OPEN ]------------------------------------------
#
search.php
#
#-----[ FIND ]------------------------------------------
#
if (intval($row['last_search_time']) > 0 && ($current_time - intval($row['last_search_time'])) < intval($board_config['search_flood_interval']))
#
#-----[ IN-LINE FIND ]------------------------------------------
#
intval($board_config['search_flood_interval'])
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
&& !$watched
#
#-----[ FIND ]------------------------------------------
#
$base_url = "search.$phpEx?search_id=$search_id&watched";
#
#-----[ REPLACE WITH ]------------------------------------------
#
$base_url = "search.$phpEx?search_id=$search_id";
$base_url .= ($watched) ? '&watched' : '';