MyBB Community Forums

Full Version: Thread Title Character Limit
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello guys. Thanks for this space for help.

I would like increase the character limit on thread titles for 150, but I do not know how to proceed.

Which command do I have to run in phpMyAdmin?

What modifications do I have to do in Admin CP?

MyBB 1.8.12

Thank you and success!

PS: Sorry for my bad English. Blush
The thread subject limit is set to varchar 120.
You can extend it to you're needs in phpmyadmin.

1. table: mybb_threads
2. go to the structured tab view
3. column: subject change
3. change length to you're likings

Why would you want to make it that long? if I may ask?
This way you're throwing SEO opportunities down the trash and making it really messy and complicated for users (in my opinion).
I am also curious about the theme which will provide nice rendering for such long thread titles
Hello zira, thank you for helping. But the change did not take effect, the title remains limited to 85 characters. Sad

phpMyAdmin:

[Image: KVDkHiF.png]

Adm CP

[Image: 9obttM2.png]

The forum is about model cars.

Is there anything else I can do? I only need this change so I can open the forum. Blush


PS: Sorry for my bad English.
(2017-09-24, 03:04 PM)EHRA Wrote: [ -> ]Hello zira, thank you for helping. But the change did not take effect, the title remains limited to 85 characters. Sad

phpMyAdmin:

[Image: KVDkHiF.png]

Adm CP

[Image: 9obttM2.png]

The forum is about model cars.

Is there anything else I can do? I only need this change so I can open the forum. Blush


PS: Sorry for my bad English.

you have edit inc/datahandlers/post.php
find following code and replace it with your value
		if($subject_length > 85)
		{
			// Subject is too long
			$this->set_error('subject_too_long', my_strlen($subject));
			return false;
		}
Thanks vishwap!  Now it worked perfectly.  Wink
Can this please be integrated as a configuration option instead of forcing users to go into code to change it?