The heading asks it all. Is there a way in 2.o irc to increase the number of characters allowd in the message body for the admin only?
Rick
Sources/Post.php
elseif (!empty($modSettings['max_messageLength']) && $smcFunc['strlen']($_POST['message']) > $modSettings['max_messageLength'])
$post_errors[] = 'long_message';
elseif (!empty($modSettings['max_messageLength']) && $smcFunc['strlen']($_POST['message']) > $modSettings['max_messageLength'] && !$context['user']['is_admin'])
$post_errors[] = 'long_message';
After that there will be no character limitations for the admins
Thanks
This will be my first attempt at real php modification
I'd better back up that file
Rick
Something else needs to be done Here's the code as it stands
The message exceeds the maximum allowed length (20000 characters).
}
elseif (!empty($modSettings['max_messageLength']) && $smcFunc['strlen']($_POST['message']) > $modSettings['max_messageLength'] && !$context['user']['is_admin'])
{
$post_errors[] = 'long_message';
unset($_POST['message']);
}
else
{
// Aeva - START
// On Quick Edit - Only call if message is set.
if (!empty($_POST['message']))
{
global $sourcedir;
@include_once($sourcedir . '/Subs-Aeva.php');
if (function_exists('aeva_onposting'))
$_POST['message'] = aeva_onposting($_POST['message']);
}
The code,which i gave above,should work and it's working,i've recently tested that again and there is no problem for the admins
I don't suppose multiple forums could make a difference as long as they're all using different folders and databases
Rick
FOUND IT!
There's two instances of the code that need to be changed not just one.
Thanks, my first successful php edit thanks to you guys (gals included of course)
Rick