Wer spielt was? - Mod gesucht

Du suchst einen bestimmten Mod, weißt aber nicht genau wo bzw. ob er überhaupt existiert? Wenn dir dieser Artikel nicht weiterhilft, kannst du hier den von dir gewünschten/gesuchten Mod beschreiben ...
Falls ein Mod-Autor eine der Anfragen hier aufnimmt um einen neuen Mod zu entwicklen, geht's in phpBB 2.0: Mods in Entwicklung weiter.
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.0, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Benutzeravatar
powersilie
Mitglied
Beiträge: 822
Registriert: 09.10.2004 13:35
Wohnort: Österreich
Kontaktdaten:

Wer spielt was? - Mod gesucht

Beitrag 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
Boecki91
Ehemaliges Teammitglied
Beiträge: 4744
Registriert: 18.06.2006 15:21

Beitrag von Boecki91 »

Kannst du die nicht lesbare Anleitung mal verlinken??

Mit dem CH-Mod ist das natürlich so eine Sache....
Standart: Am besten mit beiden Beinen auf dem Boden
Standardmäßig antworte ich nicht auf PMs
Benutzeravatar
powersilie
Mitglied
Beiträge: 822
Registriert: 09.10.2004 13:35
Wohnort: Österreich
Kontaktdaten:

Beitrag 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?
Andi1111
Mitglied
Beiträge: 1301
Registriert: 26.05.2006 13:21
Wohnort: Berlin
Kontaktdaten:

Beitrag 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.
Benutzeravatar
easygo
Mitglied
Beiträge: 2170
Registriert: 03.09.2004 13:45
Kontaktdaten:

Re: Wer spielt was? - Mod gesucht

Beitrag 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! 8)

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
Benutzeravatar
powersilie
Mitglied
Beiträge: 822
Registriert: 09.10.2004 13:35
Wohnort: Österreich
Kontaktdaten:

Beitrag 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 :D
Ich hab Gott sei Dank hier im Forum den Hinweis auf diese Anleitung bekommen und dann hats geklappt.

lg
Powersilie
MadiMac
Mitglied
Beiträge: 161
Registriert: 24.05.2008 17:41

Re: Wer spielt was? - Mod gesucht

Beitrag 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! 8)

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
FF27Q
Mitglied
Beiträge: 150
Registriert: 27.01.2009 16:17

Re: Wer spielt was? - Mod gesucht

Beitrag von FF27Q »

ich such den auch
http://www.Florian-Fromlowitz.de.gg <-- Fanpage
http://www.TimWiese-Fanpage.de.vu <-- Fanpage
http://keeperboard.ohost.de <--- Für alle Fußball & Mini Games Fans/ Registrieren&Mitmachen !
Benutzeravatar
double78
Mitglied
Beiträge: 157
Registriert: 22.10.2006 23:18
Wohnort: Köln
Kontaktdaten:

Re: Wer spielt was? - Mod gesucht

Beitrag 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 ]------------------------------------------ 
# 
Gruß Laubi
FF27Q
Mitglied
Beiträge: 150
Registriert: 27.01.2009 16:17

Re: Wer spielt was? - Mod gesucht

Beitrag 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 ]------------------------------------------ 
# 
http://www.Florian-Fromlowitz.de.gg <-- Fanpage
http://www.TimWiese-Fanpage.de.vu <-- Fanpage
http://keeperboard.ohost.de <--- Für alle Fußball & Mini Games Fans/ Registrieren&Mitmachen !
Antworten

Zurück zu „phpBB 2.0: Mod Suche/Anfragen“