MyBB Community Forums
Thread Title Character Limit - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: Thread Title Character Limit (/thread-213073.html)



Thread Title Character Limit - EHRA - 2017-09-22

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


RE: Thread Title Character Limit - zyra - 2017-09-22

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


RE: Thread Title Character Limit - EHRA - 2017-09-24

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.


RE: Thread Title Character Limit - vishwap - 2017-09-24

(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;
		}



RE: Thread Title Character Limit - EHRA - 2017-09-27

Thanks vishwap!  Now it worked perfectly.  Wink


RE: Thread Title Character Limit - Richard_E - 2019-11-15

Can this please be integrated as a configuration option instead of forcing users to go into code to change it?