https://www.icyphoenix.com/viewtopic.php?f=32&t=4984 ----------------------------------- Nescire Fri 31 Oct, 2008 03:16 Custom Templatepage On A PhpBB3 With Black Pearl ----------------------------------- Hi everybody, i tried today to add a custom site to the Black Pearl Template on my phpBB3. The Template works fine with many oder Styles (subsilver2, prosilver...) but with the black pearl styles it won't work. I try to generate a table with data from a XML file. Is there any difference in the way how Black Pearl generates the content from other phpBB3 styles ? The code of the PHP File: [code linenumbers=false] 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'); define('DEBUG_EXTRA', true); define('DEBUG', true); $colorset =0; foreach ($gilde as $character) { if ($colorset == "1") { $bgcolor="'#444444'"; } else { $bgcolor="'#666666'"; $colorset =0; } $template->assign_block_vars('gildendetails', array( 'NAME' => $character["name"], 'KARRIERE' => $character->career[0], 'TITLE' => $character->title[0], 'RANG' => $character->rank[0], 'BGCOLOR' => $bgcolor, )); $colorset = $colorset+1; } // 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/