View Full Version : Removing Admins from word limit.
muse.mu
03-02-2004, 08:08 AM
I beliueve i havent seen this yet. would it be hard to do>
Andreas
03-02-2004, 08:27 AM
File functions_newpost.php FIND
// check max length
if (($postlength = vbstrlen($post['message'])) > $vboptions['postmaxchars'] AND $vboptions['postmaxchars'] != 0)
REPLACE that with
// check max length
if (($postlength = vbstrlen($post['message'])) > $vboptions['postmaxchars'] AND $vboptions['postmaxchars'] != 0 AND !is_member_of($bbuserinfo, 6))
This assumes that all your admins are in Usergroup ID 6. If this is not the case you could use
// check max length
require_once('./includes/adminfunctions.php)';
if (($postlength = vbstrlen($post['message'])) > $vboptions['postmaxchars'] AND $vboptions['postmaxchars'] != 0 AND !can_administer())
But this adds a bit more overhead.
Boofo
03-02-2004, 05:59 PM
How would you do this to exclude Admins from the minimum characters to post?
Andreas
03-02-2004, 09:03 PM
The same way ;)
Just a few lines below there is an if which checks for the minimum length - change it the same way as for maximum.
Boofo
03-02-2004, 11:15 PM
I tried that and it didn't work. ;)
Andreas
03-02-2004, 11:23 PM
Hmm ... does work for me.
The only problem might be JavaScript.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.