Helmut hat geschrieben:Hallo DMX200,
ok nun gut, hier ist die Minimal-Ausgabe für eine eingebundene Seite:
meineseite.phpDie Templatedatei meineseite.htmlCode: Alles auswählen
<?php /** * * @author Original Author webmaster@meinedomain.de * * * @version $Id: meineseite.php,v 0.0.1 2009/07/29 Exp $ * @copyright (c) 2009 ****** * @license http://opensource.org/licenses/gpl-license.php GNU Public License * */ /** * @ignore */ define('IN_PHPBB', true); $phpbb_root_path = './'; $phpEx = substr(strrchr(__FILE__, '.'), 1); include($phpbb_root_path . 'common.' . $phpEx); //Start session management -- This will begin the session for the user browsing this page. $user->session_begin(); $user->setup(); $auth->acl($user->data); //Hier kommt dein Code rein $namen = "Das ist ein Test einer Textausgabe"; $template->assign_vars(array( 'TEST' => $namen, )); // Output the page page_header($user->lang['INDEX']); // Page title, this language variable should be defined in the language file you setup at the top of this page. // Set the filename of the template you want to use for this file. $template->set_filenames(array( 'body' => 'meineseite.html', )); // Finish the script, display the page page_footer(); ?>
Dieses Beispiel berücksichtigt keine Sprachdateien, es ist nur das nötigste drinnen.Code: Alles auswählen
<!-- INCLUDE overall_header.html --> <div>{TEST}</div> <!-- INCLUDE overall_footer.html -->
Zugegeben, das Beispiel auf der Wikiseite ist etwas komplex ausgefallen, hier würde ein weiteres Beispiel mit so einer Minimalstlösung gut sein.
Gruß Helmut
hellllllmuttt mein schatz danke geht alles
