Seite 1 von 1

profil-voreinstellungen wo ändern ?

Verfasst: 09.10.2005 12:10
von yks
hallo,

wo finde ich die voreinstellungen des profils und kann ich die dort dann auch einfach ändern ?

danke + schönen sonntag, yks

Verfasst: 10.10.2005 12:22
von FatFreddy
Zu finden sind die Presets in /includes/usercp_register.php.

Beispiel:

Code: Alles auswählen

	$viewemail = ( isset($HTTP_POST_VARS['viewemail']) ) ? ( ($HTTP_POST_VARS['viewemail']) ? TRUE : 0 ) : TRUE;
Das letzte "TRUE" ist die Voreinstellung.

FatFreddy

Verfasst: 10.10.2005 14:41
von yks
danke freddy :)

dann bin ich schon mal einen kleinen schritt weiter - trotzdem nochmal nachhaken muß...
$viewemail = ( isset($HTTP_POST_VARS['viewemail']) ) ? ( ($HTTP_POST_VARS['viewemail']) ? TRUE : 0 ) : TRUE;
wenn ich es ändern möchte, muß ich dann statt 0 eine 1 schreiben oder vor die 0 statt true ein false ?

was mich etwas irritiert ist, daß es anscheinend einen unterschied in den voreinstellungen gibt, ob man registriert ist oder nicht : falls ich den teil unter if ( $mode == 'register' ) richtig deute ?
daß die 4 optionen auch in der konfiguration einstellbar sind, habe ich gesehen, nur mir den richtigen reim nicht darauf machen kann.
$viewemail = ( isset($HTTP_POST_VARS['viewemail']) ) ? ( ($HTTP_POST_VARS['viewemail']) ? TRUE : 0 ) : 0;
$allowviewonline = ( isset($HTTP_POST_VARS['hideonline']) ) ? ( ($HTTP_POST_VARS['hideonline']) ? 0 : TRUE ) : TRUE;
$notifyreply = ( isset($HTTP_POST_VARS['notifyreply']) ) ? ( ($HTTP_POST_VARS['notifyreply']) ? TRUE : 0 ) : 0;
$notifypm = ( isset($HTTP_POST_VARS['notifypm']) ) ? ( ($HTTP_POST_VARS['notifypm']) ? TRUE : 0 ) : TRUE;
$popup_pm = ( isset($HTTP_POST_VARS['popup_pm']) ) ? ( ($HTTP_POST_VARS['popup_pm']) ? TRUE : 0 ) : TRUE;

if ( $mode == 'register' )
{
$attachsig = ( isset($HTTP_POST_VARS['attachsig']) ) ? ( ($HTTP_POST_VARS['attachsig']) ? TRUE : 0 ) : $board_config['allow_sig'];

$allowhtml = ( isset($HTTP_POST_VARS['allowhtml']) ) ? ( ($HTTP_POST_VARS['allowhtml']) ? TRUE : 0 ) : $board_config['allow_html'];
$allowbbcode = ( isset($HTTP_POST_VARS['allowbbcode']) ) ? ( ($HTTP_POST_VARS['allowbbcode']) ? TRUE : 0 ) : $board_config['allow_bbcode'];
$allowsmilies = ( isset($HTTP_POST_VARS['allowsmilies']) ) ? ( ($HTTP_POST_VARS['allowsmilies']) ? TRUE : 0 ) : $board_config['allow_smilies'];
}
else
{
$attachsig = ( isset($HTTP_POST_VARS['attachsig']) ) ? ( ($HTTP_POST_VARS['attachsig']) ? TRUE : 0 ) : 0;

$allowhtml = ( isset($HTTP_POST_VARS['allowhtml']) ) ? ( ($HTTP_POST_VARS['allowhtml']) ? TRUE : 0 ) : $userdata['user_allowhtml'];
$allowbbcode = ( isset($HTTP_POST_VARS['allowbbcode']) ) ? ( ($HTTP_POST_VARS['allowbbcode']) ? TRUE : 0 ) : $userdata['user_allowbbcode'];
$allowsmilies = ( isset($HTTP_POST_VARS['allowsmilies']) ) ? ( ($HTTP_POST_VARS['allowsmilies']) ? TRUE : 0 ) : $userdata['user_allowsmile'];
}
was ist also zb der unterschied zwischen :

Code: Alles auswählen

$attachsig = ( isset($HTTP_POST_VARS['attachsig']) ) ? ( ($HTTP_POST_VARS['attachsig']) ? TRUE : 0 ) : $board_config['allow_sig']; 
und

Code: Alles auswählen

$attachsig = ( isset($HTTP_POST_VARS['attachsig']) ) ? ( ($HTTP_POST_VARS['attachsig']) ? TRUE : 0 ) : 0; 
und schließlich noch die frage, ob es konflikte geben kann, oder sich alle anderen scripte auf diese eine datei beziehen.

vielen dank + grüße, yks

Verfasst: 10.10.2005 14:45
von HdZ
Die usercp_register wird sowohl für die Registration als auch zur Profil-Editierung verwendet, deswegen die "mode==".

Verfasst: 10.10.2005 15:36
von FatFreddy
yks hat geschrieben:
$viewemail = ( isset($HTTP_POST_VARS['viewemail']) ) ? ( ($HTTP_POST_VARS['viewemail']) ? TRUE : 0 ) : TRUE;
wenn ich es ändern möchte, muß ich dann statt 0 eine 1 schreiben oder vor die 0 statt true ein false ?
Nein, sondern das TRUE durch ein 0 ersetzen
yks hat geschrieben: was mich etwas irritiert ist, daß es anscheinend einen unterschied in den voreinstellungen gibt, ob man registriert ist oder nicht : falls ich den teil unter if ( $mode == 'register' ) richtig deute ?
siehe Antwort von HdZ.
yks hat geschrieben: und schließlich noch die frage, ob es konflikte geben kann, oder sich alle anderen scripte auf diese eine datei beziehen.
Konflikte sind mir nicht bekannt, aber wenn Du als Admin einen User anlegst und die phpBB-defaults ebenfalls angepaßt haben willst, mußt Du in /admin/admin_users.php vergleichbaren Code ebenfalls ändern.

FatFreddy