*Who is playing?* in the portal"
Passend für die aktuelle Versionen des Portals (1.0.0 RC1) und der Arcade (0.5.x + 0.6.0).
Updated for current versions of the portal (1.0.0 RC1) and the Arcade (0.5.x + 0.6.0).
Im Portal wird ein Block angezeigt, in welchem dargestellt wird, ob und wer gerade welches Spiel spielt.
Displays a block in the portal where it shows if and who is playing which game currently.
create new file 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 -->
<strong>
<!-- 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 -->
</strong>
<!-- ELSE -->
<strong>{L_ARCADE_OFFLINE}</strong>
<!-- ENDIF -->
<span class="corners-bottom"><span></span></span>
</div>
</div>
<br style="clear:both" />
open
\root\styles\prosilver\template\portal\portal_body.html
add (wherever you want it to be displayed)
Code: Select all
<!-- INCLUDE portal/block/arcade_playing.html -->
\root\portal.php
find
Code: Select all
$template->assign_vars(array(
'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_common.' . $phpEx))
{
include($phpbb_root_path . 'includes/arcade/arcade_common.' . $phpEx);
// Initialize arcade auth
$auth_arcade->acl($user->data);
// Initialize arcade class
$arcade = new arcade(false);
display_arcade_online();
}