Eigene Seite in phpBB einfügen

In diesem Forum kann man Fragen zur Programmierung stellen, die bei der Entwicklung von Mods für phpBB2 oder dem Modifizieren des eigenen Forums auftauchen.
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.1, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
CrackHack
Mitglied
Beiträge: 44
Registriert: 23.12.2007 11:17

Beitrag 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
Benutzeravatar
Jan500
Ehemaliges Teammitglied
Beiträge: 4199
Registriert: 01.03.2003 21:32
Wohnort: Hamburg
Kontaktdaten:

Beitrag 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
"Life begins at 40 Knots...!" :D
kein (kostenlosen) Support per pn, mail, icq usw. | Kostenlosen Support gibt es hier im Forum!
CrackHack
Mitglied
Beiträge: 44
Registriert: 23.12.2007 11:17

Beitrag 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/
Benutzeravatar
Dr.Urlaub
Mitglied
Beiträge: 371
Registriert: 13.01.2003 13:59
Wohnort: Magdeburg
Kontaktdaten:

Beitrag 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
Zuletzt geändert von Dr.Urlaub am 07.04.2008 18:08, insgesamt 1-mal geändert.
Wer etwas will, sucht Wege.
Wer etwas nicht will, sucht Gründe.
CrackHack
Mitglied
Beiträge: 44
Registriert: 23.12.2007 11:17

Beitrag 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
CrackHack
Mitglied
Beiträge: 44
Registriert: 23.12.2007 11:17

Beitrag von CrackHack »

Vielen Dank an alle die mir geholfen haben. Nun funktioniert alles ;)
Antworten

Zurück zu „phpBB 2.0: Mod-Bastelstube“