About This File
/*
+--------------------------------------------------------------------------
| Der Geburtstag Datum in der Registrierung
| ========================================
| Muller80 --> 31 Dezember 2006
|
| pour http://forums.invisionboard.fr
| ========================================
+---------------------------------------------------------------------------
*/
Für IPB v2.2.x
Description :
- Diese Änderung erlaubt, den Geburtstag Datum in die Registrierung zurückzugeben
Zu ändernder Datei (1):
./sources/action_public/register.php
---------------------------------------------------------------------------------------------
Öffnen : ./sources/action_public/register.php
Suchen:
//----------------------------------------- // Boxes checked? //-----------------------------------------Vorher hinzufügen:
//--------------------------------------------------- // Date of Birth //--------------------------------------------------- $day = "<option value='0'>--</option>"; $mon = "<option value='0'>--</option>"; $year = "<option value='0'>--</option>"; for( $i = 1; $i < 32; $i++ ) { $day .= "<option value='$i'>$i</option>"; } for( $i = 1; $i < 13; $i++ ) { $mon .= "<option value='$i'>".$this->ipsclass->lang['month'.$i]."</option>"; } $date = getdate(); $i = $date['year'] - 1; $j = $date['year'] - 100; for( $i; $j < $i; $i-- ) { $year .= "<option value='$i'>$i</option>"; } $b_output = "<fieldset><legend><strong>{$this->ipsclass->lang['b_date']}</strong></legend><br /><select name='day' style='width:66px;'>{$day}</select> <select name='month'>{$mon}</select> <select name='year' style='width:66px;'>{$year}</select><br /><br /></fieldset><br />"; $this->output = str_replace("<!--{geburtsdatum}-->", $b_output, $this->output);Suchen:
//----------------------------------------------- // Are we asking the member or admin to preview? //----------------------------------------------- if ( $this->ipsclass->vars['reg_auth_type'] ) { $mem_group = $this->ipsclass->vars['auth_group']; } else if ($coppa == 1) { $mem_group = $this->ipsclass->vars['auth_group']; } else if ( $this->ipsclass->vars['subsm_enforce'] ) { $mem_group = $this->ipsclass->vars['subsm_nopkg_group']; }Unten hinzufügen:
//----------------------------------------- // Check user's date of birth //----------------------------------------- $c_cnt = 0; foreach( array('day','month','year') as $v ) { if( ! $this->ipsclass->input[$v] ) { $c_cnt++; } } if( $c_cnt > 0 ) { $this->ipsclass->Error( array( 'LEVEL' => 1, 'MSG' => 'calendar_not_all' ) ); }Suchen:
'coppa_user' => $coppa, 'language' => $this->ipsclass->vars['default_language'],Unten hinzufügen:
'bday_day' => intval($this->ipsclass->input['day']), 'bday_month' => intval($this->ipsclass->input['month']), 'bday_year' => intval($this->ipsclass->input['year']),Sichern und Upload : ./sources/action_public/register.php --------------------------------------------------------------------------------------------- Änderung, in PCA zu machen : -> Look & Feel ---> Skins & Templates -----> Skin Manager -------> "Edit Template HTML" -------->und Register Öffnen: ShowForm Suchen:
<!--{REQUIRED.FIELDS}-->Unten hinzufügen:
<!--{geburtsdatum}-->
Ist Alles !!!
:)