###################################################################################
##
## Hack Titel: Neues Feld in Profil einfügen
## Hack Version: 1.2.1
## optionaler Teil: Eingabe in neues Feld erzwingen 1.0.1
## Author Acid
## Support:
http://www.phpbbhacks.com/forums oder
http://www.phpbb.de/
##
## Beschreibung: Wenn das man etwas in das neue Feld eintragen muss..
## Wenn man mehr als ein neues Feld hinzugefügt hast, musst man die
## folgenden Schritte duplizieren und dabei jeweils "music" ändern
## (auf Schreibweise achten).
##
## Benötigt: addfield_german.txt
##
## Dateien zu ändern: 2
## includes/usercp_register.php
## templates/xxx/profile_add_body.tpl
##
###################################################################################
##
## Installationsnotiz:
## Vor jeglichen Änderungen an Dateien oder Datenbank, solltest Du diese vorher
## sichern.
##
###################################################################################
##
## Versionen:
##
## 1.0.1 - Kontrolle auch bei Profiländerung
## 1.0 - optionalen Teil hinzugefügt
##
###################################################################################
#
#-----[ ÖFFNEN ]------------------------------------------
#
# includes/usercp_register.php
#
#-----[ FINDE ]---------------------------------------------------
#
validate_optional_fields($icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $music, $signature);
#
#-----[ LÖSCHEN ]---------------------------------------------------
#
, $music
#
#-----[ FINDE (achte auf die 3 Klammern) ]---------------------------------------------------
#
$username_sql = "username = '" . str_replace("\'", "''", $username) . "', ";
}
}
}
#
#-----[ DARUNTER EINFÜGEN ]---------------------------------------------------
#
# wenn Kontrolle nur bei Registrierung stattfinden soll,
# muss man "$mode == 'editprofile' ||" löschen
if ( $mode == 'editprofile' || $mode == 'register' )
{
// if dropdown use (delete // before the next line)
// if ( $music == $lang['Music_choice']['0'] )
// and uncomment the next line (add // before)
if ( empty($music) )
{
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Fields_empty'];
}
}
#
#-----[ LÖSCHEN (2x) ]---------------------------------------------------
#
# nur wenn man ein Dropdown Menü eingestellt hat
$music = ($music == $lang['Music_choice']['0']) ? '' : $music;
#
#-----[ ÖFFNEN ]------------------------------------------
#
# templates/xxx/profile_add_body.tpl
#
#-----[ FINDE und SETZE ein * dahinter ]---------------------------------------------------
#
{L_MUSIC}:
###################################################################################