UBB.Dev
Posted By: Mythotical (7.5+) No Signature Limit for Admins/Mods - 07/13/2012 5:47 PM
It is not totally unlimited (A TEXT column with a maximum length of 65,535 (216 � 1) characters.) but close enough for 95% of you wink

Originally done by Ron M: https://ubbdev.com/forums/ubbth...%20Limit%20for%20Admins/.html#Post311060

In /scripts/changebasic.inc.php
Find:
PHP Code
if ( strlen($lengthcheck) > $userob->check_access("site","SIGNATURE_LENGTH") ) { 

Replace with:
PHP Code
if ( strlen($lengthcheck) > $userob->check_access("site","SIGNATURE_LENGTH") &&
( (
$user['USER_MEMBERSHIP_LEVEL'] != "Administrator") && ($user['USER_MEMBERSHIP_LEVEL'] != "Moderator") )) {

Close and Save

In /scripts/previewsig.inc.php
Find:
PHP Code
 $max = $userob->check_access("site","SIGNATURE_LENGTH");

if (
$length > $max) {
$span = "standouttext";
$extra = $ubbt_lang['SHORTEN'];
}


Replace with:
PHP Code
 if (($user['USER_MEMBERSHIP_LEVEL'] != "Administrator") && ($user['USER_MEMBERSHIP_LEVEL'] != "Moderator") )
{
$max = $userob->check_access("site","SIGNATURE_LENGTH");

if (
$length > $max) {
$span = "standouttext";
$extra = $ubbt_lang['SHORTEN'];
}
} else {
$max = "Unlimited";
}


Close and Save

Upload both files overwriting current files.

Preview will now show:
Code
You are using 85 of the Unlimited allowed characters.

Enjoy
Posted By: Gizmo Re: (7.5+) No Signature Limit for Admins/Mods - 07/14/2012 1:57 AM
Thanks Steve, glad to see you porting mods smile
Np, I'm rather enjoying this, gives me a good look at UBB code.
© UBB.Developers