Seite 1 von 1

Verkürzte Registrierung (Extra Seite)

Verfasst: 09.03.2004 11:38
von Guido
Beschreibung: Eine Möglichkeit eine schnelle Registrierung durchzuführen.
Man braucht nur die Angaben Benutzernamen, Passwort (2x) und Email Adresse auszufüllen.
phpBB Version: 2.0.x


Einfach in einem Editor folgenden Code einfügen und als wasimmer.php abspeichern. Die Datei in den Root Ordner vom phpBB legen und Verlinkungen entsprechend anpassen.
Nicht vergessen den Pfad (http://www.deinedomain.de/phpBB....) Deinen Bedürfnissen anzupassen !

Code: Alles auswählen

<?php 
define('IN_PHPBB', true); 

$phpbb_root_path = './'; // <-- 
include($phpbb_root_path . 'extension.inc'); 
include($phpbb_root_path . 'common.'.$phpEx); 

$userdata = session_pagestart($user_ip, PAGE_INDEX); 
init_userprefs($userdata); 

include($phpbb_root_path . 'includes/page_header.'.$phpEx); 
?> 
<form method="post" action="profile.php"> 

  <table width="100%" class="forumline" cellpadding="3" border="0" cellspacing="1"> 
    <tr> 
      <td class="catHead" colspan="100%"> 
        <div align="center"><a href="http://www.deinedomain.de/phpBB2/profile.php?mode=register&agreed=TRUE" class="nav"><span class="nav"><font color="F9FDBD"><b><font color="#FF3333">Die 
          schnelle </font><font color="#330099"><font color="#FF3333">Sofortregistrierung 
          !!</font></font></b></font></span></a> </div> 
      </td></tr> 
    <tr colspan="4"> 
      <td class="row1" width="20%"><span class="genmed"> W&auml;hle Benutzername: 
        </span></td> 
      <td class="row2" width="20%"> 
        <input type="text" class="post" style="width:150px" name="username" size="25" maxlength="20" value="" /> 
      </td> 
      <td class="row1" width="16%"><span class="genmed">Email Adresse:</span></td> 
      <td class="row2" width="44%"> 
        <input type="text" class="post" style="width:150px" name="email" size="25" maxlength="255" value="" /> 

    </TR> 
    <TR colspan="4"> 
      <td class="row1" width="20%"><span class="genmed">Wähle ein Passwort:</span><br /> 
        <span class="gensmall"></span></td> 
      <td class="row2" width="20%"> 
        <input type="password" class="post" style="width: 150px" name="new_password" size="25" maxlength="100" value="" /> 
      </td> 
      <td class="row1" width="16%"><span class="genmed">Passwort nochmal</span>:<br /> 
        <span class="gensmall"></span></td> 
      <td class="row2" colspan="3" width="44%"> 
        <input type="password" class="post" style="width: 150px" name="password_confirm" size="25" maxlength="100" value="" /> 
        <input type="hidden" name="mode" value="register" /> 
        <input type="hidden" name="agreed" value="true" /> 
        <input type="hidden" name="coppa" value="0" /> 
        <input type="submit" name="submit" value="Registrieren !" class="mainoption" /> 
      </td> 
      <input type="hidden" name="viewemail" value="1" checked /> 
      <input type="hidden" name="hideonline" value="0" checked /> 
      <input type="hidden" name="notifyreply" value="1" checked /> 
      <input type="hidden" name="notifypm" value="1" checked /> 
      <input type="hidden" name="popup_pm" value="1" checked /> 
      <input type="hidden" name="attachsig" value="1" checked /> 
      <input type="hidden" name="allowbbcode" value="1" checked /> 
      <input type="hidden" name="allowhtml" value="0" checked /> 
      <input type="hidden" name="allowsmilies" value="1" checked /> 
      <input type="hidden" name="dateformat" value="d.m.Y - H:i" maxlength="14" class="post" /> 
    </tr> 
  </table> 
</form> 
<? 
include($phpbb_root_path . 'includes/page_tail.'.$phpEx); 
?>