1. Die neue Seite ist nicht ganz Fehlerfrei. Zum Beispiel ist die Uhrzeit und das Datum links anstatt rechts und auf Englisch.
2. Ich weiss nicht wo "mein Inhalt" genau hin soll.
Also...
Ich ertstelle eine Datei namens Imressum.php
Code: Alles auswählen
<?php
/**
*
* @author Original Author Username author_email@domain.tld - http://mywebsite.tld
* @author Another Author Username another_email@domain.tld - http://domain.tld
*
* @package {PACKAGENAME}
* @version $Id$
* @copyright (c) 2007 Your Group Name
* @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 : './forum/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
// The common.php file is required.
include($phpbb_root_path . 'common.' . $phpEx);
// since we are grabbing the user avatar, the function is inside the functions_display.php file since RC7
include($phpbb_root_path . 'includes/functions_display.' . $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('mods/my_language_file');
/*
* All of your coding will be here, setting up vars, database selects, inserts, etc...
*
* This is a very primitive example, it’s meant to show you a working example only.
*/
$example_variable = sprintf($user->lang['TIME_NOW'], $user->format_date(time()));
$google_logo = '<a href="http://www.google.com/"><img src="http://www.google.com/intl/en_ALL/images/logo.gif" alt="Google" /></a>';
// A typical usage for sending your variables to your template.
$template->assign_vars(array(
'EXAMPLE_VAR' => $example_variable,
'GOOGLE_LOGO' => $google_logo,
'MY_AVATAR' => get_user_avatar($user->data['user_avatar'], $user->data['user_avatar_type'], $user->data['user_avatar_width'], $user->data['user_avatar_height']),
));
/*
* assigning some static example data to an array.
* all language strings would normally be included in the language file,
* this is meant for demonstration purposes ONLY.
*/
$some_array = array(
array(
'example' => 'Just an Example 1',
'demonstration' => 'Somecount',
),
array(
'example' => 'Just an Example 2',
'demonstration' => 'Somecount again',
),
);
/*
* basic example of the assign block vars for the templates
* This basically will allow you to easily display a block or array of data in a template
* this is useful for items such as SQL queries to the database and displaying them in your templates.
*/
foreach ($some_array as $row)
{
$template->assign_block_vars('block_name', array(
'EXAMPLE' => $row['example'],
'DEMO' => $row['demonstration'],
));
}
// Page title, this language variable should be defined in the language file you setup at the top of this page.
page_header($user->lang['MY_TITLE']);
// 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' => 'my_template.html',
));
// Completing the script and displaying the page.
page_footer();
?>
Nun erstelle ich eine Seite namens my_language_file.php
Code: Alles auswählen
<?php
/**
*
* groups [English]
*
* @author My Username email@domain.tld - http://website.tld
*
* @package language
* @version $Id$
* @copyright (c) 2007 Your Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang))
{
$lang = array();
}
// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
$lang = array_merge($lang, array(
'EXAMPLE' => 'Example',
'DEMO' => 'Demo',
'TIME_NOW' => 'The time right now is %s',
'MY_TITLE' => 'My New Page Title',
));
?>
nun erstelle ich noch die 3. datei namens my_template.html
Code: Alles auswählen
<!-- INCLUDE overall_header.html -->
<div>{MY_AVATAR}</div>
<div>{EXAMPLE_VAR}</div>
<div>{GOOGLE_LOGO}</div>
<table class="table1" cellspacing="1">
<tr>
<th>{L_EXAMPLE}</th>
<th>{L_DEMO}</th>
</tr>
<!-- BEGIN block_name -->
<tr class="<!-- IF block_name.S_ROW_COUNT is even -->bg1<!-- ELSE -->bg2<!-- ENDIF -->">
<td>{block_name.EXAMPLE}</td>
<td>{block_name.DEMO}</td>
</tr>
<!-- END block_name -->
</table>
<!-- INCLUDE overall_footer.html -->
Kann mir jemand genau sagen was ich machen muss damit...
1. die seite wirklich leer ist.
2. das datum und die uhrzeit rechts ist und auf deutsch.
Ich wäre sehr glücklich wenn mir jemand sagen würde was icg ganz genau machen muss. die neue seite soll www.XXX.de/Impressum heissen.
ich habe zwar noch fragen wie ich das machen kann das nur registrirte auf die neue seite gucken können und so aber das machen wir besser später.
