Jump to the post that solved this thread.
Solved: 3 Years, 11 Months, 2 Weeks ago Thread Title Character Limit
#1
Solved: 3 Years, 11 Months, 2 Weeks ago Question 
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
Reply
#2
Solved: 3 Years, 11 Months, 2 Weeks ago
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
Kortrijk Airsoft Division
  • Community Forum
  • Fotogallery
  • Airsoft Events
airsoftdivision.be
Reply
#3
Solved: 3 Years, 11 Months, 2 Weeks ago
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.
Reply
#4
Solved: 3 Years, 11 Months, 2 Weeks ago
(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;
		}
Reply
#5
Solved: 3 Years, 11 Months, 2 Weeks ago
Thanks vishwap!  Now it worked perfectly.  Wink
Reply
#6
Solved: 3 Years, 11 Months, 2 Weeks ago
Can this please be integrated as a configuration option instead of forcing users to go into code to change it?
Reply
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)