Habe den kleinen Who's playing what Mod für den Arcade Mod eingebaut.
Hab die includes/functions_arcade.php und die includes/page_header.php laut Anleitung geändert und beim Aufrufen des Forums kommt eine weiße Seite.....
Hab das wieder rausgenommen und das Forum öffnet wieder einwandfrei.
Verwende arcade Mod 2.1.8.
Hab auch den Intro und Portal-Mod eingebaut.
Muß ich da in der portal.php auch was ändern?
Code: Alles auswählen
#-----[ OPEN ]------------------------------------------
#
OPEN includes/page_header.php
#
#-----[ FIND ]------------------------------------------
#
if (defined('SHOW_ONLINE'))
{
#
#-----[ AFTER ADD ]------------------------------------------
#
include_once($phpbb_root_path.'includes/functions_arcade.'.$phpEx);
#
#-----[ FIND ]------------------------------------------
#
$sql = "SELECT u.username, u.user_id, u.user_allow_viewonline, u.user_level, s.session_logged_in, s.session_ip
FROM ".USERS_TABLE." u, ".SESSIONS_TABLE." s
WHERE u.user_id = s.session_user_id
AND s.session_time >= ".( time() - 300 ) . "
$user_forum_sql
ORDER BY u.username ASC, s.session_ip ASC";
#
#-----[ REPLACE WITH ]------------------------------------------
#
$sql = "SELECT u.username, u.user_id, u.user_allow_viewonline, u.user_level, s.session_logged_in, s.session_ip, g.game_name, g.game_path, g.image_path, g.game_desc
FROM ".USERS_TABLE." u, ".SESSIONS_TABLE." s
LEFT JOIN ".iNA_SESSIONS." z ON u.user_id = z.user_id
LEFT JOIN ".iNA_GAMES." g ON z.game_name = g.game_name
WHERE u.user_id = s.session_user_id
AND s.session_time >= ".( time() - 300 ) . "
$user_forum_sql
ORDER BY u.username ASC, s.session_ip ASC";
#
#-----[ FIND ]------------------------------------------
#
if ( $row['session_logged_in'] )
{
#
#-----[ AFTER ADD ]------------------------------------------
#
$image_path = ina_find_image($row['game_path'],$row['game_name'],$row['image_path'],'./../');
#
#-----[ FIND ]------------------------------------------
#
if ( $row['user_allow_viewonline'] )
{
$user_online_link = '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']) . '"' . $style_color .'>' . $row['username'] . '</a>';
$logged_visible_online++;
}
#
#-----[ REPLACE WITH ]------------------------------------------
#
if ( $row['user_allow_viewonline'] )
{
if($row['game_name'])
{
$user_online_link = '<img src="'.$image_path.'" alt="'.$row['game_desc'].'" border="0" width="15" height="15" /> <a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']) . '"' . $style_color .'>' . $row['username'] . '</a>';
}
else
{
$user_online_link = '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']) . '"' . $style_color .'>' . $row['username'] . '</a>';
}
$logged_visible_online++;
}
#
#-----[ SAVE AND CLOSE ]------------------------------------------
lg
Powersilie