News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Subject title Character Limit

Started by DaBrute, December 29, 2010, 02:44:53 PM

Previous topic - Next topic

DaBrute

How can I make limits on how long the title can be?

kat

In "Sources", you'll find "Post.php".

In there, around line 441, you'll find this:

// At this point, we want to make sure the subject isn't too long.
if ($func['strlen']($_POST['subject']) > 100)
$_POST['subject'] = addslashes($func['substr'](stripslashes($_POST['subject']), 0, 100));


Just change ">100" to whatever you want.

DaBrute

Quote from: K@ on December 29, 2010, 03:44:06 PM
In "Sources", you'll find "Post.php".

In there, around line 441, you'll find this:

   // At this point, we want to make sure the subject isn't too long.
   if ($func['strlen']($_POST['subject']) > 100)
      $_POST['subject'] = addslashes($func['substr'](stripslashes($_POST['subject']), 0, 100));


Just change ">100" to whatever you want.
thanks!!


GreenSage

Hi, this helped me just now as well.

Arantor

Don't forget that there is also a fundamental limit in the DB too which this won't fix.

babyfiats

Is there also an option to have a minimum number of characters in the subject title?

Kindred

not as a standard feature. although I believe that there was a mod for that...

However, Your post is not relevant to the original thread (which, additionally, has already been marked as solved)
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: