Neu ist unter anderem, dass der Server nun protokollieren kann, wer auf welchem Flugplatz fliegt.
Jörg (SeyFly) von http://www.modellhelinews.de hat ein Wordpress-Plugin geschrieben, das diese Informationen im Portal verfügbar macht.
Ich habe das ganze für phpBB3 resp. Board3 angepasst.
Wer Interesse hat, hier ist der Code.
Das Template (unter styles/<DeinStyle>/template/portal/block/helix.html ablegen:
Code: Alles auswählen
{$C_BLOCK_H_L}<dl><dt>{PORTAL_HELIX_HEADLINE}</dt></dl>{$C_BLOCK_H_R}
<div class="panel" style="margin-bottom: 0px">
<div class="inner"><span class="portal-corners-top-inner"></span>
<div class="postbody" style="width: 100%">
<div class="content">
Airport: {HELIX_AIRPORT}
<!-- IF not HELIX_ERROR -->
(Piloten: {HELIX_PILOT_COUNT})
<br />
<!-- BEGIN pilotrow -->
{pilotrow.HELIX_PILOT_NAME}
<!-- END pilotrow -->
<!-- ENDIF -->
</div>
</div>
<span class="portal-corners-bottom-inner"></span></div>
</div>
{$C_BLOCK_F_L}{$C_BLOCK_F_R}
Code: Alles auswählen
<?php
if (!defined('IN_PHPBB'))
{
exit;
}
if (!defined('IN_PORTAL'))
{
exit;
}
// config
$status_url = "http://backup.rchelifan.org/helix/status.log";
$headline = 'Pilotenliste des RHF-Servers für den Heli-X';
$error_text = 'Der Heli-X Server auf rchelifan.org ist derzeit nicht verfügbar!';
if ($lines = @file($status_url)) {
$airport = $lines[1];
$pilot_count = $lines[2]+0;
for ($i=3; $i <= count($lines); $i++) {
$template->assign_block_vars('pilotrow', array(
'HELIX_PILOT_NAME' => htmlentities(substr($lines[$i],0,30))
));
}
$template->assign_vars(array(
'PORTAL_HELIX_HEADLINE' => $headline,
'HELIX_AIRPORT' => $airport,
'HELIX_PILOT_COUNT' => $pilot_count,
));
} else {
$template->assign_vars(array(
'PORTAL_HELIX_HEADLINE' => $headline,
'HELIX_AIRPORT' => $error_text,
'HELIX_PILOT_COUNT' => $pilot_count,
'HELIX_ERROR' => true,
));
}
?>
Finde:
Code: Alles auswählen
$template->assign_vars(array(
'PORTAL_LEFT_COLUMN' => $portal_config['portal_left_column_width'],
'PORTAL_RIGHT_COLUMN' => $portal_config['portal_right_column_width'],
));
Code: Alles auswählen
// helix server status
include($phpbb_root_path . 'portal/block/helix.php');
Code: Alles auswählen
<!-- INCLUDE portal/block/helix.html -->