Ich habe ein Problem mit dem Bookmark Mod von PhillipK ( Download siehe Hier ). Die Installation hat wunderbar funktioniert, nur in der search.php gab es ein kleines Problem, Ich denke das mein Fehler damit zusammenhängt.
Fehler => Nach dem klicken auf die Lesezeichen, erscheint die Suche nur noch mit einer weissen Seite. Ich habe schon alles mögliche ausprobiert und gemacht. Das Problem beginnt immer an derselben Stelle. In der Installationsanleitung heisst es:
Code: Alles auswählen
#
#-----[ FIND ]------------------------------------------------
#
else
{
message_die(GENERAL_MESSAGE, $lang['No_search_match']);
}
//
// Delete old data from the search result table
//
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
else if ( $search_id == 'bookmarks' )
{
if ( $userdata['session_logged_in'] )
{
if ( $auth_sql != '' )
{
$sql = "SELECT t.topic_id, f.forum_id
FROM " . TOPICS_TABLE . " t, " . BOOKMARK_TABLE . " b, " . FORUMS_TABLE . " f
WHERE t.topic_id = b.topic_id
AND t.forum_id = f.forum_id
AND b.user_id = " . $userdata['user_id'] . "
AND $auth_sql";
}
else
{
$sql = "SELECT t.topic_id
FROM " . TOPICS_TABLE . " t, " . BOOKMARK_TABLE . " b
WHERE t.topic_id = b.topic_id
AND b.user_id = " . $userdata['user_id'];
}
}
else
{
redirect(append_sid("login.$phpEx?redirect=search.$phpEx?search_id=bookmarks", true));
}
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain post ids', '', __LINE__, __FILE__, $sql);
}
$search_ids = array();
while( $row = $db->sql_fetchrow($result) )
{
$search_ids[] = $row['topic_id'];
}
$db->sql_freeresult($result);
$total_match_count = count($search_ids);
if ($total_match_count <= $start) // No results for the selected page
{
$start = $total_match_count - 1;
$start = intval($start / $board_config['topics_per_page']) * $board_config['topics_per_page'];
}
//
// Basic requirements
//
$show_results = 'bookmarks';
$sort_by = 0;
$sort_dir = 'DESC';
}Code: Alles auswählen
else
{
message_die(GENERAL_MESSAGE, $lang['No_search_match']);
}Anmerkung: Die ganze search.php ist fertig gemoddet, ausser o.g. Stelle und die Suche funktioniert noch. Nur nach einfügen von oben genannten wird die Seite weiss.
Kann mir dabei jemand helfen bitte *verzweifel* ¦4 ¦4
Im Anhang ist noch die search.php
Vielen Dank schonmal im vorraus für die Mühen und die Hilfe