Here's the code from profilcp_profil_signature.php:
- Code: Select all
if ( $signature != '' ) { if ( strlen($signature) > $board_config['max_sig_chars'] ) { $error = true; $error_msg .= ( ( isset($error_msg) ) ? '<br>' ]; } if ( !isset($signature_bbcode_uid) || $signature_bbcode_uid == '' ) { $signature_bbcode_uid = ( $view_userdata['user_allowbbcode'] ) ? make_bbcode_uid() : ''; } $signature = prepare_message($signature, $view_userdata['user_allowhtml'], $view_userdata['user_allowbbcode'], $view_userdata['user_allowsmile'], $signature_bbcode_uid); $view_userdata['user_sig'] = $signature; $view_userdata['user_sig_bbcode_uid'] = $signature_bbcode_uid; }
If I understood that correctly, it is only checking the "max_sig_chars". At least that's the only time it sets an error message. The funcion prepare_message only checks if HTML is enabled or not.
After that we have the following code:
- Code: Select all
if ( $error ) { message_die(GENERAL_ERROR, $error_msg); } if (!$error && !$preview) { $sql = "UPDATE " . USERS_TABLE . " SET user_sig = '" . $signature . "', user_sig_bbcode_uid = '" . $signature_bbcode_uid . "' WHERE user_id = " . $view_userdata['user_id']; if ( !$result = $db->sql_query($sql) ) { message_die(GENERAL_ERROR, 'Could not update user table', '', __LINE__, __FILE__, $sql); } }
If there was no error with the "max_sig_chars" checking and you're not trying to preview your sig, the board procedes to save the signature to your database.
If I had a bit more knowledge of php I would procede and mod that file so it checks everything it was supposed to check. Since I do not have it, I'll wait for you guys to do it. Meanwhile, I'll check if that code is not lost somewhere else in the code, cause I remenber that when the signature didn't have a separate page the limits worked fine.
Edit 1]Edit 2[/color]: I analysed the mod code. There is a lot of code that was not added to IM. The only part that seems to have been added was the editing of values on the ACP. All the code for checking the values was not included. I'll do some tests with the code once I finish some other adjustments on my board. I'll let you know what happens.