Wenn jemand den Fehler finden würde wäre ich echt dankbar.
Der code meiner gilde.php:
Code: Alles auswählen
<?php
/**
*
* @author Jan-Erik Siegmann jan@siegmann-digital.de - http://www.rechtundordnung.de.tp
*
* @package {BuffedGildendetails}
* @version 1.0
* @copyright (c) 2008 Siegmann Digital
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
* @ignore
*/
define('IN_PHPBB', true);
// Specify the path to you phpBB3 installation directory.
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
// The common.php file is required.
include($phpbb_root_path . 'common.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
// specify styles and/or localisation
// in this example, we specify that we will be using the file: my_language_file.php
$user->setup();
/*
* All of your coding will be here, setting up vars, database selects, inserts, etc...
*
*/
$gilde = simplexml_load_file('http://www.buffed.de/public/war/xml/guild/226.xml');
$colorset =0;
foreach ($gilde->character as $character) {
$template->assign_block_vars('gildendetails', array(
'NAME' => "Name",
'KARRIERE' => $character->career[0],
'TITLE' => $character->title[0],
'RANG' => $character->rank[0],
'BGCOLOR' => $bgcolor,
));
if ($colorset == "1")
{
$bgcolor="'#444444'";
}
else
{
$bgcolor="'#666666'";
$colorset =0;
}
}
// Page title, this language variable should be defined in the language file you setup at the top of this page.
page_header('Gildendetails');
// Set the filename of the template you want to use for this file.
// This is the name of our template file located in /styles/<style>/templates/.
$template->set_filenames(array(
'body' => 'gilddetails.html',
));
// Completing the script and displaying the page.
page_footer();
?>
Code: Alles auswählen
<!-- INCLUDE overall_header.html -->
<table width="60%" border="0">
<div align="center">
<tr>
<th scope="col">Name</th>
<th scope="col">Karriere</th>
<th scope="col">Titel</th>
<th scope="col">Rang</th>
</tr>
<!-- BEGIN gildendetails -->
<tr bgcolor={gildendetails.BGCOLOR}>
<td>{gildendetails.NAME}</td>
<td>{gildendetails.KARRIERE}</td>
<td>{gildendetails.TITLE}</td>
<td>{gildendetails.RANG}</td>
</tr>";
<!-- END gildendetails -->
</div>
</table>
<!-- INCLUDE jumpbox.html -->
<!-- INCLUDE overall_footer.html -->
</body>
</html>