habe WHOS PLAYING WHAT mal eingebaut , beomme aber nach Einbau nur einen weißen Bildschirm bei Forumaufruf . Benutze phpBB2 und Arcade2.1.8 .
Hier die Installanweisung :
( Meine Dateien sind unten Verlinkt )
Code: Alles auswählen
#
#-----[ OPEN ]------------------------------------------
#
includes/functions_arcade.php
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE ADD ]------------------------------------------
#
function ina_find_image($game_path, $game_name, $image_path = "", $phpbb_root_path = './')
{
global $arcade;
if ( $image_path == "")
{
if( @file_exists($phpbb_root_path . $arcade->arcade_config['games_path'] . $game_name .".gif") )
{
$image_path = $phpbb_root_path . $arcade->arcade_config['games_path'] . $game_name . '.gif';
}
else if( @file_exists($phpbb_root_path . $game_path . $game_name .".gif") )
{
$image_path = $phpbb_root_path . $game_path . $game_name . '.gif';
@copy($image_path, $arcade->arcade_config['games_path'] . $game_name .".gif");
}
else
{
$image_path = $phpbb_root_path . $arcade->arcade_config['games_default_img'];
}
}
else if ( strlen( $image_path ) < 5 )
{
$image_path = $phpbb_root_path . $game_path . '/' . $game_name . $image_path;
}
return $image_path;
}
#
#-----[ 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>' . $row['username'] . '</a>';
$logged_visible_online++;
}
#
#-----[ REPLACE WITH ]------------------------------------------
#
if ( $row['user_allow_viewonline'] )
{
if($row['game_name'])
{
$user_online_link = '<img> <a>' . $row['username'] . '</a>';
}
else
{
$user_online_link = '<a>' . $row['username'] . '</a>';
}
$logged_visible_online++;
}
#
#-----[ SAVE AND CLOSE ]------------------------------------------
#
http://dienstagssauna.di.funpic.de/webd ... arcade.txt
http://dienstagssauna.di.funpic.de/webd ... header.txt