ich habe die Topic_in_Who_is_online-MOD von Niels (ehemals http://mods.db9.dk) eingebaut, aber es funktioniert leider noch nicht so richtig. Es geht um folgende Zeilen der viewonline.php:
Code: Alles auswählen
$is_auth_ary = array();
$is_auth_ary = auth(AUTH_ALL, AUTH_LIST_ALL, $userdata);
.
.
.
// Start replacement - Topic in Who is online MOD
// if ( $row['session_topic'] )
if ( $row['session_topic'] && $is_auth_ary[$row['session_topic']]['auth_view'] )
{
//
// Topic info
//
$sql = "SELECT topic_title FROM " . TOPICS_TABLE . " WHERE topic_id=" . $row['session_topic'];
if ( $result2 = $db->sql_query($sql) )
{
$topic_title = $db->sql_fetchrow($result2);
}
else
{
message_die(GENERAL_ERROR, 'Could not obtain user/online forums information', '', __LINE__, __FILE__, $sql);
}
$location_url = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . '=' . $row['session_topic']);
$location = $forum_data[$row['session_page']] .' -> '.$topic_title['topic_title'];
} else
{
$location_url = append_sid("viewforum.$phpEx?" . POST_FORUM_URL . '=' . $row['session_page']);
$location = $forum_data[$row['session_page']];
}
// End replacement - Topic in Who is online MOD
Könnt Ihr mir sagen was ich falsch gemacht habe? Ist bestimmt nur eine Kleinigkeit. Niels' Board gibt es nicht mehr, aber Ihr könnt mir bestimmt auch helfen!
Danke im voraus.
LG Lula