Seite 4 von 4

Verfasst: 06.04.2008 21:13
von CrackHack
Okay hab ich getan...passiert eig. nichts weiter . Seite sieht weiterhin so aus--> http://pleagues.pl.funpic.de/phpBB2/anmeldung.php

Damit ich noch auf dem richten Weg bin. Ich habe eine anmeldung.php und eine anmeldung.tpl und eine anmeldug_fehler.tpl ...richtig?

Gruß Ghost

Verfasst: 06.04.2008 21:21
von Jan500
wie soll denn was passieren wenn du in deiner tpl nichts hast?
wie ich schon mal sagte muss dort der code vom formular (habe ich auch oben shcon zitiert) hinein.

und du hast nur eine anmeldung.php und anmeldung.tpl

wobei anmeldung.php nicht gut gewählt ist, da so schon dioe php datei heißt an die das formular geschickt wird und ausgewertet wird es sei denn du packst den inhalkt aus der jetzigen php in die neue.

und wenn du das alles nicht hinbekommst erstelle einen neuen beitrag in der jobbörse

Jan

Verfasst: 06.04.2008 21:54
von CrackHack
Damit ich richtig liege. Die Dateien müssen doch im phpbb2/templates/name vom template/ Ordner sein oder?

In meiner tpl, ich denke du meinst anmeldung.tpl steht was drinne und zwar dein code den du mir geschickt hast:
<form action="anmeldung.php" method="post">
<strong><span class="Stil1">A</span><span class="Stil4">ccountname:</span></strong><br>

<span class="Stil4">&laquo;</span>
<input type="text" name="account">
<span class="Stil4">&raquo;</span><br>
<strong><span class="Stil1">P</span><span class="Stil4">asswort:</span></strong><br>
<span class="Stil4">&laquo;</span>
<input type="password" name="passwort">
<span class="Stil4">&raquo;</span><br>
<strong><span class="Stil1">P</span><span class="Stil4">asswort:</span></strong><br>
<span class="Stil4">&laquo;</span>
<input type="password" name="repasswort">
<span class="Stil4">&raquo;</span><br>

<strong><span class="Stil1">E</span><span class="Stil4">mailadresse:</span></strong><br>
<span class="Stil4">&laquo;</span>
<input type="text" name="email">
<span class="Stil4">&raquo;</span><br>
<span class="Stil6">M&ouml;chten sie Burning Crusade aktivieren? </span><br>
<span class="Stil1">J</span><span class="Stil4">a</span>
<input type="radio" name="bc" value="8">
<span class="Stil1">N</span><span class="Stil4">ein</span>
<input type="radio" name="bc" value="0"> <br>

<input type="submit" value="Account erstellen!">
<br>
</form>
Nein ich möchte das hinbekommen damit ich bei den anderen Seiten das selbstständig erledigen kann ohne expertern zu nerven

Gruß Ghost

PS: Nun kommt folgender Fehler: Template->loadfile(): No files found for handle http://87.230.91.8/accpage/

Verfasst: 06.04.2008 23:11
von Dr.Urlaub
hmm er nutzt doch phpbb2 und nicht 3.
demzufolge braucht er doch keine tpl datei !?

quasi reicht doch eigentlich

Code: Alles auswählen

<?php
//Benötigte Dateien und Variablen von phpBB
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);


//Session auslesen und Benutzer-Informationen laden
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);


//Dieser Block kann weggelassen werden, wenn du nur den die Userdaten brauchst und auf den phpBB-Header verzichen möchtest
$page_title = 'Meine Seite';
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
?>
<html>
<body>
<form action="anmeldung.php" method="post">
<strong><span class="Stil1">A</span><span class="Stil4">ccountname:</span></strong><br>

<span class="Stil4">&laquo;</span>
<input type="text" name="account">
<span class="Stil4">&raquo;</span><br>
<strong><span class="Stil1">P</span><span class="Stil4">asswort:</span></strong><br>
<span class="Stil4">&laquo;</span>
<input type="password" name="passwort">
<span class="Stil4">&raquo;</span><br>
<strong><span class="Stil1">P</span><span class="Stil4">asswort:</span></strong><br>
<span class="Stil4">&laquo;</span>
<input type="password" name="repasswort">
<span class="Stil4">&raquo;</span><br>

<strong><span class="Stil1">E</span><span class="Stil4">mailadresse:</span></strong><br>
<span class="Stil4">&laquo;</span>
<input type="text" name="email">
<span class="Stil4">&raquo;</span><br>
<span class="Stil6">M&ouml;chten sie Burning Crusade aktivieren? </span><br>
<span class="Stil1">J</span><span class="Stil4">a</span>
<input type="radio" name="bc" value="8">
<span class="Stil1">N</span><span class="Stil4">ein</span>
<input type="radio" name="bc" value="0"> <br>

<input type="submit" value="Account erstellen!">
<br>
</form>
</body>
</html>
<?php
//Footer - nur dann weglassen, wenn du auch den Header weglässt
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>
+ grafischer anpassung

Verfasst: 07.04.2008 15:43
von CrackHack
Hiho
erstmal danke. Also diesen Text muss ich in anmeldung.php schreiben und die datei gehört in den template ordner richtig?

Edit: Anscheind nicht weil Diese Seite ist leider nicht verfügbar.
Muss ich noch irgendwo in dem Code eine Adresse einfügen oder so?

Gruß Ghost

Verfasst: 07.04.2008 18:29
von CrackHack
Vielen Dank an alle die mir geholfen haben. Nun funktioniert alles ;)