Seite 1 von 2
Wer spielt was? - Mod gesucht
Verfasst: 06.07.2007 15:02
von powersilie
Hallo!
Möchte für meinen Arcade Mod im "Wer ist online?" Bereich vor jedem User, der gerade spielt, ein Mini-Icon des jeweiligen Spieles haben.
Beim Arcade Mod Support gibt es eine Anleitung, aber die ist chaotisch und unübersichtlich. Ich finde nicht mal die Stelle in der includes/functions_arcade.php .
Er hat auch irgendwas geschrieben, daß es mit CH Mod nicht klappen soll - kann aber damit nichts anfangen.
So: hat jemand diesen "Who's playing what" Mod in einer lesbaren Ausführung und funktioniert der auch?
Danke und lg
Powersilie
Verfasst: 06.07.2007 15:14
von Boecki91
Kannst du die nicht lesbare Anleitung mal verlinken??
Mit dem CH-Mod ist das natürlich so eine Sache....
Verfasst: 06.07.2007 15:51
von powersilie
Hallo!
Der Text ist kurz, kann ich so reinkopieren:
Code: Alles auswählen
############################################################## # #-----[ =
OPEN=20
]------------------------------------------ # =
includes/functions_arcade.php #=20
#-----[ FIND ]------------------------------------------
# ?> # =
#-----[=20
BEFORE ADD ]------------------------------------------ # function=20
ina_find_image($game_path, $game_name, $image_path =3D "", =
$phpbb_root_path =3D=20
'./') { global $arcade; if ( $image_path =3D=3D "") { if(=20
@file_exists($phpbb_root_path . $arcade->arcade_config['games_path'] =
.=20
$game_name .".gif") ) { $image_path =3D $phpbb_root_path .=20
$arcade->arcade_config['games_path'] . $game_name . '.gif'; } else =
if(=20
@file_exists($phpbb_root_path . $game_path . $game_name .".gif") ) { =
$image_path=20
=3D $phpbb_root_path . $game_path . $game_name . '.gif'; =
@copy($image_path,=20
$arcade->arcade_config['games_path'] . $game_name .".gif"); } else {=20
$image_path =3D $phpbb_root_path . =
$arcade->arcade_config['games_default_img'];=20
} } else if ( strlen( $image_path ) < 5 ) { $image_path =3D =
$phpbb_root_path .=20
$game_path . '/' . $game_name . $image_path; } return $image_path; } # =
#-----[=20
OPEN ]------------------------------------------ # OPEN =
includes/page_header.php=20
# #-----[ FIND ]------------------------------------------ # if=20
(defined('SHOW_ONLINE')) { # #-----[ AFTER ADD=20
]------------------------------------------ #=20
include_once($phpbb_root_path.'includes/functions_arcade.'.$phpEx); # =
#-----[=20
FIND ]------------------------------------------ # $sql =3D "SELECT =
u.username,=20
u.user_id, u.user_allow_viewonline, u.user_level, s.session_logged_in,=20
s.session_ip FROM ".USERS_TABLE." u, ".SESSIONS_TABLE." s WHERE =
u.user_id =3D=20
s.session_user_id AND s.session_time >=3D ".( time() - 300 ) . "=20
$user_forum_sql ORDER BY u.username ASC, s.session_ip ASC"; # #-----[ =
REPLACE=20
WITH ]------------------------------------------ # $sql =3D "SELECT =
u.username,=20
u.user_id, u.user_allow_viewonline, u.user_level, s.session_logged_in,=20
s.session_ip, g.game_name, g.game_path, g.image_path, g.game_desc FROM=20
".USERS_TABLE." u, ".SESSIONS_TABLE." s LEFT JOIN ".iNA_SESSIONS." z ON=20
u.user_id =3D z.user_id LEFT JOIN ".iNA_GAMES." g ON z.game_name =3D =
g.game_name=20
WHERE u.user_id =3D s.session_user_id AND s.session_time >=3D ".( =
time() - 300 )=20
. " $user_forum_sql ORDER BY u.username ASC, s.session_ip ASC"; # =
#-----[ FIND=20
]------------------------------------------ # if ( =
$row['session_logged_in'] ) {=20
# #-----[ AFTER ADD ]------------------------------------------ # =
$image_path =3D=20
ina_find_image($row['game_path'],$row['game_name'],$row['image_path'],'./=
../');=20
# #-----[ FIND ]------------------------------------------ # if (=20
$row['user_allow_viewonline'] ) { $user_online_link =3D '<A=20
href=3D"http://www.phpbb-arcade.com/'%20.%20append_sid(" .? $style_color =
.=20
?=3D" . $row['user_id']) . '" POST_USERS_URL=20
profile.$phpEx?mode=3D'viewprofile&"'>' . $row['username'] . '</A>'; =
$logged_visible_online++; } # #-----[ REPLACE WITH=20
]------------------------------------------ # if ( =
$row['user_allow_viewonline']=20
) { if($row['game_name']) { $user_online_link =3D '<IMG height=3D15=20
alt=3D"'.$row['game_desc'].'" src=3D"" width=3D15 border=3D0> <A=20
href=3D"http://www.phpbb-arcade.com/'%20.%20append_sid(" .? $style_color =
.=20
?=3D" . $row['user_id']) . '" POST_USERS_URL=20
profile.$phpEx?mode=3D'viewprofile&"'>' . $row['username'] . '</A>'; =
} else {=20
$user_online_link =3D '<A =
href=3D"http://www.phpbb-arcade.com/'%20.%20append_sid("=20
.? $style_color . ?=3D" . $row['user_id']) . '" POST_USERS_URL=20
profile.$phpEx?mode=3D'viewprofile&"'>' . $row['username'] . '</A>'; =
}=20
$logged_visible_online++; } # #-----[ SAVE AND CLOSE=20
]------------------------------------------ # </BODY></HTML>
lg
Powersilie
P.S.: mit viel gutem Willen gehts sicher, aber wenn der dann nicht funzt?
Verfasst: 06.07.2007 18:02
von Andi1111
frag mal sausebaby, die hat das drin, kannst dich entweder anmelden
http://www.sausebaby-tour.de/gamesboard/portal.php oder ihr auf meinem board eine pn schicken.
Re: Wer spielt was? - Mod gesucht
Verfasst: 07.07.2007 01:57
von easygo
powersilie hat geschrieben:Beim Arcade Mod Support gibt es eine Anleitung, aber die ist chaotisch und unübersichtlich.
Ganz schön große Töne!
Schon mal versucht, den Download-Hinweis umzusetzen?
dEfEndEr hat geschrieben:When downloading
Rick Click the Download link and use SAVE AS
Quelle:
Who's Playing What on Index
Wohl kaum! Dann hättest du nicht dieses Chaos :/ easy
Verfasst: 07.07.2007 11:16
von powersilie
Ok, Easy 1:0 für Dich - Danke!
Aber sei mir nicht bös, ist ja auch der Arcade 2.1.8 nicht ganz ohne. Wenn man nicht dort im Support drin ist, dann weiß man nicht, daß da einige Zusätze notwendig sind, sonst gibts Fehlermeldungen.
Da sitzt man rum und grübelt, was man falsch gemacht hat .... gar nichts hat man falsch gemacht, es fehlte bloß was
Ich hab Gott sei Dank hier im Forum den Hinweis auf diese Anleitung bekommen und dann hats geklappt.
lg
Powersilie
Re: Wer spielt was? - Mod gesucht
Verfasst: 25.02.2009 12:48
von MadiMac
easygo hat geschrieben:powersilie hat geschrieben:Beim Arcade Mod Support gibt es eine Anleitung, aber die ist chaotisch und unübersichtlich.
Ganz schön große Töne!
Schon mal versucht, den Download-Hinweis umzusetzen?
dEfEndEr hat geschrieben:When downloading
Rick Click the Download link and use SAVE AS
Quelle:
Who's Playing What on Index
Wohl kaum! Dann hättest du nicht dieses Chaos :/ easy
link ist down, hat jemand noch zu hand.
mfg
Re: Wer spielt was? - Mod gesucht
Verfasst: 25.02.2009 15:17
von FF27Q
ich such den auch
Re: Wer spielt was? - Mod gesucht
Verfasst: 25.02.2009 19:21
von double78
hi,
Code: Alles auswählen
##############################################################
## MOD Title: Who's Playing What on Index
## MOD Author: wizzzzzzzz
## MOD Version: 1.0.0 (First Release)
## #######################################################
##
## Installation Level: (Easy)
## Installation Time: 1-2 Minutes
## Files To Edit: includes/functions_arcade.php
## includes/page_header.php
###########################################################
##
## Included Files: non
##
############################################################
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2 of the License, or
## (at your option) any later version.
##
#############################################################
##
## This is a MOD for phpbb v2.0.+ The phpbb group has all rights to the
## phpbb source. They can be contacted at :
##
## I-Net : www.phpbb.com
## E-Mail: support@phpbb.com
##
################################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ 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, s.SearchBot, 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 ]------------------------------------------
#
Re: Wer spielt was? - Mod gesucht
Verfasst: 25.02.2009 21:13
von FF27Q
Das ist aber der ganze normale "Who playing what" Mod (der übrigens nicht funktioniert , hatte ihn heute eingebaut).
Im ersten post steht "der who playing what" mod , für/in "Wer is online" .
Naja ich hätte gerne beide .aber leider funktioniert der nicht.
double78 hat geschrieben:hi,
Code: Alles auswählen
##############################################################
## MOD Title: Who's Playing What on Index
## MOD Author: wizzzzzzzz
## MOD Version: 1.0.0 (First Release)
## #######################################################
##
## Installation Level: (Easy)
## Installation Time: 1-2 Minutes
## Files To Edit: includes/functions_arcade.php
## includes/page_header.php
###########################################################
##
## Included Files: non
##
############################################################
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2 of the License, or
## (at your option) any later version.
##
#############################################################
##
## This is a MOD for phpbb v2.0.+ The phpbb group has all rights to the
## phpbb source. They can be contacted at :
##
## I-Net : www.phpbb.com
## E-Mail: support@phpbb.com
##
################################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ 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, s.SearchBot, 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 ]------------------------------------------
#