Mit diesem Snippet wird im Portal ein Block angezeigt, in welchem dargestellt wird, ob und wer gerade welches Spiel spielt.
Grundlage ist der MOD "[BETA] phpBB Arcade 0.4.3" von JRSweets
Neue Datei erstellen in \root\styles\prosilver\template\portal\block\
Code: Select all
<div class="panel">
	<div class="inner">
		<span class="corners-top"><span></span></span>
		<h3>{L_ARCADE_ONLINE}</h3>
		<!-- IF .arcade_online_row -->
		<p>
			<!-- BEGIN arcade_online_row -->
			{arcade_online_row.GAME}: {arcade_online_row.PLAYER_LIST}<!-- IF not arcade_online_row.S_LAST_ROW --><br /><!-- ENDIF -->
			<!-- END arcade_online_row -->
		</p>
		<!-- ELSE -->
		<p>{L_ARCADE_OFFLINE}</p>
		<!-- ENDIF -->
		<span class="corners-bottom"><span></span></span>
	</div>
</div>
<br style="clear:both" />Öffne
\root\styles\prosilver\template\portal\portal_body.html
hinzufügen (wo auch immer man den Block haben möchte)
Code: Select all
			<!-- INCLUDE portal/block/arcade_playing.html -->Öffne
\root\portal.php
Finde
Code: Select all
$template->assign_vars(array(
	'S_DISPLAY_JUMPBOX' 	=> $load_center,
	'PORTAL_LEFT_COLLUMN' 	=> $portal_config['portal_left_collumn_width'],
	'PORTAL_RIGHT_COLLUMN' 	=> $portal_config['portal_right_collumn_width'],
));Code: Select all
        if (file_exists($phpbb_root_path . 'includes/arcade/arcade_class.' . $phpEx))
        {
            include($phpbb_root_path . 'includes/arcade/arcade_class.' . $phpEx);        
            $arcade = new arcade(false);
            display_arcade_online();            
        }1. Cache leeren
2. Cache leeren
3. Cache leeren
und - natürlich -
4. Cache leeren






 
 



 
 
