
Heb wel een mod gevonden dat je geen img in je profiel kan hebben(zocht ik ook)
http://www.phpbbhacks.com/download/1700
Code: Selecteer alles
} elseif ( $config['max_post_lines'] && count(explode("\n", $message)) > $config['max_post_lines'] ) {
$error = 'Je bericht is te lang, je mag maar '.$config['max_post_lines'].' regels gebruiken.';
Code: Selecteer alles
#
#-----[ SQL ]---------------------------------------------
#
$sql=array(
'INSERT INTO '.CONFIG_TABLE.' (config_name, config_value) VALUES ("max_sig_lines", "5")',
);
#
#-----[ OPEN ]--------------------------------------------
#
admin/admin_board.php
#
#-----[ FIND ]--------------------------------------------
#
"L_MAX_SIG_LENGTH_EXPLAIN" => $lang['Max_sig_length_explain'],
#
#-----[ AFTER, ADD ]--------------------------------------
#
"L_MAX_SIG_LINES" => $lang['Max_sig_lines'],
"L_MAX_SIG_LINES_EXPLAIN" => $lang['Max_sig_lines_explain'],
#
#-----[ FIND ]--------------------------------------------
#
"SIG_SIZE" => $new['max_sig_chars'],
#
#-----[ AFTER, ADD ]--------------------------------------
#
"SIG_LINES" => $new['max_sig_lines'],
#
#-----[ OPEN ]--------------------------------------------
#
includes/usercp_register.php
#
#-----[ FIND ]--------------------------------------------
#
if ( strlen($signature) > $board_config['max_sig_chars'] )
{
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Signature_too_long'];
}
#
#-----[ AFTER, ADD ]------------------------------------
#
elseif ( count(explode("\n", $signature)) > $board_config['max_sig_lines'] )
{
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Signature_too_many_lines'];
}
#
#-----[ FIND ]--------------------------------------------
#
'L_SIGNATURE_EXPLAIN' => sprintf($lang['Signature_explain'], $board_config['max_sig_chars']),
#
#-----[ REPLACE WITH ]------------------------------------
#
'L_SIGNATURE_EXPLAIN' => sprintf($lang['Signature_explain'], $board_config['max_sig_chars'], $board_config['max_sig_lines']),
#
#-----[ OPEN ]--------------------------------------------
#
language/lang_english/lang_admin.php
#
#-----[ FIND ]--------------------------------------------
#
$lang['Max_sig_length_explain'] = 'Maximum number of characters in user signatures';
#
#-----[ AFTER, ADD ]--------------------------------------
#
$lang['Max_sig_lines'] = 'Maximum signature lines';
$lang['Max_sig_lines_explain'] = 'Maximum number of lines in user signatures';
#
#-----[ OPEN ]--------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]--------------------------------------------
#
$lang['Signature_too_long'] = 'Your signature is too long.';
#
#-----[ AFTER, ADD ]--------------------------------------
#
$lang['Signature_too_many_lines'] = 'Your signature has too many lines';
#
#-----[ OPEN ]--------------------------------------------
#
language/lang_dutch/lang_admin.php
#
#-----[ FIND ]--------------------------------------------
#
$lang['Max_sig_length_explain'] = 'Maximaal aantal karakters in handtekening van gebruikers';
#
#-----[ AFTER, ADD ]--------------------------------------
#
$lang['Max_sig_lines'] = 'Maximale regels van handtekening';
$lang['Max_sig_lines_explain'] = 'Maximaal aantal regels in handtekening van gebruikers';
#
#-----[ OPEN ]--------------------------------------------
#
language/lang_dutch/lang_main.php
#
#-----[ FIND ]--------------------------------------------
#
$lang['Signature_too_long'] = 'Je onderschrift is te lang';
#
#-----[ AFTER, ADD ]--------------------------------------
#
$lang['Signature_too_many_lines'] = 'Je hebt te veel regels in je onderschrift';
#
#-----[ OPEN ]--------------------------------------------
#
templates/subsilver/admin/board_config_body.tpl
#
#-----[ FIND ]--------------------------------------------
#
<tr>
<td class="row1">{L_MAX_SIG_LENGTH}<br /><span class="gensmall">{L_MAX_SIG_LENGTH_EXPLAIN}</span></td>
<td class="row2"><input type="text" size="5" maxlength="4" name="max_sig_chars" value="{SIG_SIZE}" /></td>
</tr>
#
#-----[ AFTER, ADD ]--------------------------------------
#
<tr>
<td class="row1">{L_MAX_SIG_LINES}<br /><span class="gensmall">{L_MAX_SIG_LINES_EXPLAIN}</span></td>
<td class="row2"><input type="text" size="5" maxlength="4" name="max_sig_lines" value="{SIG_LINES}" /></td>
</tr>
#
#-----[ SAVE & CLOSE ALL FILES ]--------------------------
#
Code: Selecteer alles
$sig_lines_check = preg_replace('/(\[.*?)(=.*?)\]/is', '\\1]', stripslashes($signature));
if ( $allowhtml )
{
$sig_lines_check = preg_replace('/(\<.*?)(=.*?)( .*?=.*?)?([ \/]?\>)/is', '\\1\\3\\4', $sig_lines_check);
}
michiel87 schreef:en hij moet regels tellen, Wie weet hoe
Code: Selecteer alles
count(explode("\n", $message)) > $config['max_post_lines']
Code: Selecteer alles
if ( strlen($signature) > $board_config['max_sig_chars'] || count(explode("\n", $signature)) > $config['max_post_lines'])
{
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Signature_too_long'];
}
Code: Selecteer alles
#
#-----[ SQL ]---------------------------------------------
#
$sql=array(
'INSERT INTO '.CONFIG_TABLE.' (config_name, config_value) VALUES ("max_sig_lines", "5")',
);
#
#-----[ OPEN ]--------------------------------------------
#
admin/admin_board.php
#
#-----[ FIND ]--------------------------------------------
#
"L_MAX_SIG_LENGTH_EXPLAIN" => $lang['Max_sig_length_explain'],
#
#-----[ AFTER, ADD ]--------------------------------------
#
"L_MAX_SIG_LINES" => $lang['Max_sig_lines'],
"L_MAX_SIG_LINES_EXPLAIN" => $lang['Max_sig_lines_explain'],
#
#-----[ FIND ]--------------------------------------------
#
"SIG_SIZE" => $new['max_sig_chars'],
#
#-----[ AFTER, ADD ]--------------------------------------
#
"SIG_LINES" => $new['max_sig_lines'],
#
#-----[ OPEN ]--------------------------------------------
#
includes/usercp_register.php
#
#-----[ FIND ]--------------------------------------------
#
if ( strlen($signature) > $board_config['max_sig_chars'] )
{
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Signature_too_long'];
}
#
#-----[ AFTER, ADD ]------------------------------------
#
elseif ( count(explode("\n", $signature)) > $board_config['max_sig_lines'] )
{
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Signature_too_many_lines'];
}
#
#-----[ FIND ]--------------------------------------------
#
'L_SIGNATURE_EXPLAIN' => sprintf($lang['Signature_explain'], $board_config['max_sig_chars']),
#
#-----[ REPLACE WITH ]------------------------------------
#
'L_SIGNATURE_EXPLAIN' => sprintf($lang['Signature_explain'], $board_config['max_sig_chars'], $board_config['max_sig_lines']),
#
#-----[ OPEN ]--------------------------------------------
#
language/lang_english/lang_admin.php
#
#-----[ FIND ]--------------------------------------------
#
$lang['Max_sig_length_explain'] = 'Maximum number of characters in user signatures';
#
#-----[ AFTER, ADD ]--------------------------------------
#
$lang['Max_sig_lines'] = 'Maximum signature lines';
$lang['Max_sig_lines_explain'] = 'Maximum number of lines in user signatures';
#
#-----[ OPEN ]--------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]--------------------------------------------
#
$lang['Signature_too_long'] = 'Your signature is too long.';
#
#-----[ AFTER, ADD ]--------------------------------------
#
$lang['Signature_too_many_lines'] = 'Your signature has too many lines';
#
#-----[ OPEN ]--------------------------------------------
#
language/lang_dutch/lang_admin.php
#
#-----[ FIND ]--------------------------------------------
#
$lang['Max_sig_length_explain'] = 'Maximaal aantal karakters in handtekening van gebruikers';
#
#-----[ AFTER, ADD ]--------------------------------------
#
$lang['Max_sig_lines'] = 'Maximale regels van handtekening';
$lang['Max_sig_lines_explain'] = 'Maximaal aantal regels in handtekening van gebruikers';
#
#-----[ OPEN ]--------------------------------------------
#
language/lang_dutch/lang_main.php
#
#-----[ FIND ]--------------------------------------------
#
$lang['Signature_too_long'] = 'Je onderschrift is te lang';
#
#-----[ AFTER, ADD ]--------------------------------------
#
$lang['Signature_too_many_lines'] = 'Je hebt te veel regels in je onderschrift';
#
#-----[ OPEN ]--------------------------------------------
#
templates/subsilver/admin/board_config_body.tpl
#
#-----[ FIND ]--------------------------------------------
#
<tr>
<td class="row1">{L_MAX_SIG_LENGTH}<br /><span class="gensmall">{L_MAX_SIG_LENGTH_EXPLAIN}</span></td>
<td class="row2"><input type="text" size="5" maxlength="4" name="max_sig_chars" value="{SIG_SIZE}" /></td>
</tr>
#
#-----[ AFTER, ADD ]--------------------------------------
#
<tr>
<td class="row1">{L_MAX_SIG_LINES}<br /><span class="gensmall">{L_MAX_SIG_LINES_EXPLAIN}</span></td>
<td class="row2"><input type="text" size="5" maxlength="4" name="max_sig_lines" value="{SIG_LINES}" /></td>
</tr>
#
#-----[ SAVE & CLOSE ALL FILES ]--------------------------
#