Code: Alles auswählen
Parse error: parse error, unexpected T_VARIABLE in /home/www/web16/html/forum/posting.php on line 657

Code: Alles auswählen
Parse error: parse error, unexpected T_VARIABLE in /home/www/web16/html/forum/posting.php on line 657
Code: Alles auswählen
$user_sig = ( $post_info['user_sig'] != '' $userdata['user_sig_bbcode_uid'] = $post_info['user_sig_bbcode_uid']; && $board_config['allow_sig'] ) ? $post_info['user_sig'] : '';
Kann ich das so stehen lassen oder nicht?$user_sig = ( $post_info['user_sig'] != ' ' && $userdata['user_sig_bbcode_uid'] = $post_info['user_sig_bbcode_uid'] /Semikolon entfernt/ && $board_config['allow_sig'] ) ? $post_info['user_sig'] : '';
Code: Alles auswählen
$user_sig = ( $post_info['user_sig'] != '' && $board_config['allow_sig'] ) ? $post_info['user_sig'] : '';
$userdata['user_sig_bbcode_uid'] = $post_info['user_sig_bbcode_uid'];
Code: Alles auswählen
else if ( $mode == 'editpost' )
{
$user_sig = ( $post_info['user_sig'] != '' && $board_config['allow_sig'] ) ? $post_info['user_sig'] : '';
}
Code: Alles auswählen
else if ( $mode == 'editpost' )
{
$user_sig = ( $post_info['user_sig'] != '' && $board_config['allow_sig'] ) ? $post_info['user_sig'] : '';
$userdata['user_sig_bbcode_uid'] = $post_info['user_sig_bbcode_uid'];
}
Code: Alles auswählen
if ( $mode == 'newtopic' || $mode == 'reply')
{
$user_sig = ( $userdata['user_sig'] != '' && $board_config['allow_sig'] ) ? $userdata['user_sig'] : '';
}
else if ( $mode == 'editpost' )
{
$user_sig = ( $post_info['user_sig'] != '' && $board_config['allow_sig'] ) ? $post_info['user_sig'] : '';
$userdata['user_sig_bbcode_uid'] = $post_info['user_sig_bbcode_uid'];
}
Ja, vielen Dank, konnte ich auch nutzen, hatte dasselbe Problem - top Suchfunktion!Mihil hat geschrieben:
So sieht es jetzt aus:Code: Alles auswählen
if ( $mode == 'newtopic' || $mode == 'reply') { $user_sig = ( $userdata['user_sig'] != '' && $board_config['allow_sig'] ) ? $userdata['user_sig'] : ''; } else if ( $mode == 'editpost' ) { $user_sig = ( $post_info['user_sig'] != '' && $board_config['allow_sig'] ) ? $post_info['user_sig'] : ''; $userdata['user_sig_bbcode_uid'] = $post_info['user_sig_bbcode_uid']; }