Code: Select all
'warnings_expire_days' => array('lang' => 'WARNINGS_EXPIRE', 'validate' => 'int', 'type' => 'text:3:4', 'explain' => true, 'append' => ' ' . $user->lang['DAYS']),
'legend3' => 'ACP_SUBMIT_CHANGES',
Code: Select all
// subject length in ACP - Ather
'legend3' => 'SL_SETTINGS',
'SL' => array('lang' => 'SL', 'validate' => 'int', 'type' => 'text:4:4', 'explain' => false),
// subject length in ACP - Ather
Code: Select all
'BOARD_PM_EXPLAIN' => 'Enable or disable private messaging for all users.',
Code: Select all
// subject length in ACP - Ather
'SL' => 'Subject Length',
// subject length in ACP - Ather
Code: Select all
'ACP_ADMINISTRATORS' => 'Administrators',
Code: Select all
// subject length in ACP - Ather
'SL_SETTINGS' => 'Subject Length Settings',
// subject length in ACP - Ather
Code: Select all
$template->assign_vars(array(
'SITENAME' => $config['sitename'],
Code: Select all
// subject length in ACP - Ather
'SL' => $config['SL'],
// subject length in ACP - Ather
Code: Select all
$subject = truncate_string($subject);
Code: Select all
// subject length in ACP - Ather
$subject = truncate_string($subject, $config['SL']);
// subject length in ACP - Ather
Code: Select all
<dl style="clear: left;">
<dt><label for="subject">{L_SUBJECT}:</label></dt>
<dd><input type="text" name="subject" id="subject" size="45" maxlength="<!-- IF S_NEW_MESSAGE -->60<!-- ELSE -->64<!-- ENDIF -->" tabindex="2" value="{SUBJECT}{DRAFT_SUBJECT}" class="inputbox autowidth" /></dd>
</dl>
Code: Select all
<dl style="clear: left;">
<dt><label for="subject">{L_SUBJECT}:</label></dt>
<dd><input type="text" name="subject" id="subject" size="45" maxlength="<!-- IF S_NEW_MESSAGE -->60<!-- ELSE -->{SL}<!-- ENDIF -->" tabindex="2" value="{SUBJECT}{DRAFT_SUBJECT}" class="inputbox autowidth" /></dd>
</dl>
A) Does this works in the latest release? (3.0.8)Ather wrote:Ok, Here are the instructions required for you to edit it from the ACP, but you still have to do some file editing 1 last time
Code: Select all
<dl style="clear: left;">
<dt><label for="subject">{L_SUBJECT}:</label></dt>
<dd><input type="text" name="subject" id="subject" size="45" maxlength="<!-- IF S_NEW_MESSAGE -->60<!-- ELSE -->64<!-- ENDIF -->" tabindex="2" value="{SUBJECT}{DRAFT_SUBJECT}" class="inputbox autowidth" /></dd>
</dl>
Code: Select all
<dl style="clear: left;">
<dt><label for="subject">{L_SUBJECT}:</label></dt>
<dd><input type="text" name="subject" id="subject" size="45" maxlength="<!-- IF S_NEW_MESSAGE -->{SL}<!-- ELSE -->{SL}<!-- ENDIF -->" tabindex="2" value="{SUBJECT}{DRAFT_SUBJECT}" class="inputbox autowidth" /></dd>
</dl>
<!-- IF S_NEW_MESSAGE -->60
to <!-- IF S_NEW_MESSAGE -->{SL}
seems to work :Brf wrote:Have you tried it with UTF-8 multibyte characters, or simply with characters that get escaped? Those will make the stored-length of the string longer than the input length.
Go phpBB go... Respected : Developers, Supporters.