Długośc podpisu.
Długośc podpisu.
Czy jest jakiś mod do zwiększania długości podpisu indywidualnie?Czyli np jednej osobie?
Wiem tyle, żę to rusek zrobił nie pamietam nazwy
poszukam i jak co zamiescze :p ok jest prosze oczywiście tutaj możesz tylko powiększyć podpis adminów i moderatorów 
Kod: Zaznacz cały
#############################################################
#
#
# Max Sig Chars For Admins & Mods
#
# -----------------------------------
#
# Autor Moda : RuseK
# E-mail : ruusekk@gmail.com
# WWW : http://rawax.net
# Czas Inst. : 5 minut
# Poziom Inst. : Początkujący
#
# Pliki do Edycji ( 4 + 1 zapytanie SQL ) :
#
# - admin/admin_board.php
# - templates/subSilver/admin/board_config_body.tpl
# - language/lang_polish/lang_admin.php
# - includes/usercp_register.php
#
#############################################################
#
#-----[ SQL ]------------------------
#
INSERT INTO `phpbb_config` ( `config_name` , `config_value` ) VALUES ('max_sig_chars_admin', '1000');
INSERT INTO `phpbb_config` ( `config_name` , `config_value` ) VALUES ('max_sig_chars_mod', '500');
#
#-----[ OPEN ]-----------------------
#
includes/usercp_register
#
#-----[ FIND ]-----------------------
#
if ( $signature != '' )
#
#-----[ BEFORE ADD ]-----------------
#
if ( $userdata['user_level'] == ADMIN )
{
$max_sig_chars = $board_config['max_sig_chars'] * $board_config['max_sig_chars_admin'];
}
else if ( $userdata['user_level'] == MOD )
{
$max_sig_chars = $board_config['max_sig_chars'] * $board_config['max_sig_chars_mod'];
}
else
{
$max_sig_chars = $board_config['max_sig_chars']
}
#
#-----[ FIND ]-----------------------
#
if ( strlen($signature) > $board_config['max_sig_chars'] )
#
#-----[ REPLACE WITH ]---------------
#
if ( strlen($signature) > $max_sig_chars )
#
#-----[ FIND ]-----------------------
#
'L_SIGNATURE_EXPLAIN' => sprintf($lang['Signature_explain'], $board_config['max_sig_chars']),
#
#-----[ REPLACE WITH ]---------------
#
'L_SIGNATURE_EXPLAIN' => sprintf($lang['Signature_explain'], $max_sig_chars),
#
#-----[ OPEN ]-----------------------
#
admin/admin_board.php
#
#-----[ FIND ]-----------------------
#
"L_MAX_SIG_LENGTH_EXPLAIN" => $lang['Max_sig_length_explain'],
#
#-----[ AFTER ADD ]------------------
#
"L_MAX_SIG_LENGTH_ADMIN" => $lang['max_sig_chars_admin'],
"L_MAX_SIG_LENGTH_ADMIN_EXPLAIN" => $lang['max_sig_chars_admin_explain'],
"L_MAX_SIG_LENGTH_MOD" => $lang['max_sig_chars_mod'],
#
#-----[ FIND ]-----------------------
#
"SIG_SIZE" => $new['max_sig_chars'],
#
#-----[ AFTER ADD ]------------------
#
"SIG_SIZE_ADMIN" => $new['max_sig_chars_admin'],
"SIG_SIZE_MOD" => $new['max_sig_chars_mod'],
#
#-----[ OPEN ]-----------------------
#
language/lang_polish/lang_admin.php
#
#-----[ FIND ]-----------------------
#
//
// That's all Folks!
// -------------------------------------------------
#
#-----[ AFTER ADD ]------------------
#
$lang['max_sig_chars_admin'] = 'Maksymalna ilość znaków w podpisie admina';
$lang['max_sig_chars_mod'] = 'Maksymalna ilość zanków w podpisie moda';
$lang['max_sig_chars_admin_explain'] = 'Przez jaką wartość ma zostać pomnożona standartowa ilość znaków w podpisie ?';
#
#-----[ 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 class="post" type="text" size="5" maxlength="4" name="max_sig_chars" value="{SIG_SIZE}" /></td>
</tr>
#
#-----[ AFTER ADD ]------------------
#
<tr>
<td class="row1">{L_MAX_SIG_LENGTH_ADMIN}<br /><span class="gensmall">{L_MAX_SIG_LENGTH_ADMIN_EXPLAIN}</span></td>
<td class="row2"><input class="post" type="text" size="5" maxlength="4" name="max_sig_chars_admin" value="{SIG_SIZE_ADMIN}" /></td>
</tr>
<tr>
<td class="row1">{L_MAX_SIG_LENGTH_MOD}<br /><span class="gensmall">{L_MAX_SIG_LENGTH_ADMIN_EXPLAIN}</span></td>
<td class="row2"><input class="post" type="text" size="5" maxlength="4" name="max_sig_chars_mod" value="{SIG_SIZE_MOD}" /></td>
</tr>
#
#-----[ SAVE & CLOSE ALL FILES ]-----
#EoM
epliki.pl new page coming soon
www.forum.simtel.er.pl FORUM GSM
www.forum.simtel.er.pl FORUM GSM