|
|
Joined: Jul 2011
Posts: 11
Newbie
|
Newbie
Joined: Jul 2011
Posts: 11 |
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  Originally done by Ron M: https://ubbdev.com/forums/ubbth...%20Limit%20for%20Admins/.html#Post311060In /scripts/changebasic.inc.php Find: if ( strlen($lengthcheck) > $userob->check_access("site","SIGNATURE_LENGTH") ) {
Replace with: 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: $max = $userob->check_access("site","SIGNATURE_LENGTH"); if ($length > $max) { $span = "standouttext"; $extra = $ubbt_lang['SHORTEN']; }
Replace with: 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: You are using 85 of the Unlimited allowed characters. Enjoy
Mythotical Mods - Custom add-ons for XenForo, MyBB, and vBulletin (UBB.Threads custom work coming soon)
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
Thanks Steve, glad to see you porting mods 
|
|
|
|
Joined: Jul 2011
Posts: 11
Newbie
|
Newbie
Joined: Jul 2011
Posts: 11 |
Np, I'm rather enjoying this, gives me a good look at UBB code.
Mythotical Mods - Custom add-ons for XenForo, MyBB, and vBulletin (UBB.Threads custom work coming soon)
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 1,157
Joined: July 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|