Author Topic: Administrators do not have character limit on the signature  (Read 238 times)

Offline Piteel™

  • Jr. Member
  • **
  • Posts: 191
  • Gender: Male
  • www.gsmusers.com.br
    • GSMUsers
Administrators do not have character limit on the signature
« on: November 03, 2009, 03:29:58 PM »
I want that administrators do not have character limit on the signature ...
Example: The character limit is 500, for the administrators, i want to put infinite characters, or 1000 ...
Thanks and sorry bad english
 ;D

Offline Piteel™

  • Jr. Member
  • **
  • Posts: 191
  • Gender: Male
  • www.gsmusers.com.br
    • GSMUsers
Re: Administrators do not have character limit on the signature
« Reply #1 on: November 04, 2009, 10:04:28 AM »
[...]

Offline Darkorical

  • Jr. Member
  • **
  • Posts: 116
  • Gender: Male
Re: Administrators do not have character limit on the signature
« Reply #2 on: November 04, 2009, 12:11:12 PM »
well Ive been looking for a solution to this ... and coming up quite empty handed

Offline Piteel™

  • Jr. Member
  • **
  • Posts: 191
  • Gender: Male
  • www.gsmusers.com.br
    • GSMUsers
Re: Administrators do not have character limit on the signature
« Reply #3 on: November 04, 2009, 12:36:28 PM »
Oh, it's possible, but I do not know how...
 Anyvody know? It's very important...

Offline DavidCT

  • Full Member
  • ***
  • Posts: 637
  • Gender: Male
    • Home Plate Network's Ballpark
Re: Administrators do not have character limit on the signature
« Reply #4 on: November 04, 2009, 12:51:56 PM »
Well, I'm no expert, but here's what I know... it's stored in $modSettings['max_signatureLength']

So, without me trying it myself, give this a shot...

Make a copy of Sources/Profile.php, then edit it...

Find:
Code: [Select]
// Make sure the signature isn't too long.
if (isset($_POST['signature']))
{
require_once($sourcedir . '/Subs-Post.php');

Add after that...

Code: [Select]
if ($context['user']['is_admin']) {
$modSettings['max_signatureLength'] = '99999';
}

but it may not work, who knows :) It could be in ModSettings.php too.
$200 PLUS million sure BUYS alot of bling!

Offline Piteel™

  • Jr. Member
  • **
  • Posts: 191
  • Gender: Male
  • www.gsmusers.com.br
    • GSMUsers
Re: Administrators do not have character limit on the signature
« Reply #5 on: November 04, 2009, 01:30:59 PM »
Well, I'm no expert, but here's what I know... it's stored in $modSettings['max_signatureLength']

So, without me trying it myself, give this a shot...

Make a copy of Sources/Profile.php, then edit it...

Find:
Code: [Select]
// Make sure the signature isn't too long.
if (isset($_POST['signature']))
{
require_once($sourcedir . '/Subs-Post.php');

Add after that...

Code: [Select]
if ($context['user']['is_admin']) {
$modSettings['max_signatureLength'] = '99999';
}

but it may not work, who knows :) It could be in ModSettings.php too.

Thaanks!
But, It did not, is still the limit for normal users...
 :(

Offline DavidCT

  • Full Member
  • ***
  • Posts: 637
  • Gender: Male
    • Home Plate Network's Ballpark
Re: Administrators do not have character limit on the signature
« Reply #6 on: November 04, 2009, 02:50:25 PM »
Ok, I finally figured it out.  SMF changes the variables in each module so it's tough to figure out what is what sometimes... and as usual I tried being too smart and didn't think right...

Copy/edit Sources/Load.php, find:
Code: [Select]
$user_info['query_see_board'] = '(FIND_IN_SET(' . implode(', b.memberGroups) OR FIND_IN_SET(', $user_info['groups']) . ', b.memberGroups))';
}

// Check for moderators and see if they have access to the board.
function loadBoard()

Before the } bracket you add one line (two if you add the blank line), it'll end up looking like this:
Code: [Select]
$user_info['query_see_board'] = '(FIND_IN_SET(' . implode(', b.memberGroups) OR FIND_IN_SET(', $user_info['groups']) . ', b.memberGroups))';

if ($user_info['is_admin']) $modSettings['max_signatureLength'] = '99999';
}

// Check for moderators and see if they have access to the board.
function loadBoard()

I know it works, I tested it with both admin and regular user :)
$200 PLUS million sure BUYS alot of bling!

Offline Piteel™

  • Jr. Member
  • **
  • Posts: 191
  • Gender: Male
  • www.gsmusers.com.br
    • GSMUsers
Re: Administrators do not have character limit on the signature
« Reply #7 on: November 04, 2009, 03:40:09 PM »
Thanks, worked
 :D