Find:
- 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',
Add after:
- 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
Open language/en/acp/board.php
Find:
- Code: Select all
'BOARD_PM_EXPLAIN' => 'Enable or disable private messaging for all users.',
Add after:
- Code: Select all
// subject length in ACP - Ather
'SL' => 'Subject Length',
// subject length in ACP - Ather
Open language/en/acp/common.php
Find:
- Code: Select all
'ACP_ADMINISTRATORS' => 'Administrators',
Add after:
- Code: Select all
// subject length in ACP - Ather
'SL_SETTINGS' => 'Subject Length Settings',
// subject length in ACP - Ather
Open includes/functions.php
Find:
- Code: Select all
$template->assign_vars(array(
'SITENAME' => $config['sitename'],
Add after:
- Code: Select all
// subject length in ACP - Ather
'SL' => $config['SL'],
// subject length in ACP - Ather
Open includes/functions_posting.php
Find:
- Code: Select all
$subject = truncate_string($subject);
Replace with:
- Code: Select all
// subject length in ACP - Ather
$subject = truncate_string($subject, $config['SL']);
// subject length in ACP - Ather
Open styles/YOURTEMPLATE/template/posting_editor.html
Find (for prosilver):
- 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>
Replace with:
- 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>










6,565.41


