How to Increase Character Limit for Forum Nodes and Titles in Xenforo 2 [Deleted]

Thangvip9x

Active member
Thangvip9x submitted a new resource:

How to Increase Character Limit for Forum Nodes and Titles in Xenforo 2 - Increase Character Limit for Forum Nodes and Titles in Xenforo 2

Hello everyone, today I'm going to guide you on how to increase the character limit for categories and post titles in Xenforo.

By default, Xenforo only supports 50 characters for categories and 150 characters for post titles. If you exceed these limits, an error will be displayed

Oops! We ran into some problems. Please enter a value using 50 characters or fewer.

To increase the character limit, you'll need to go to phpMyAdmin, navigate to the SQL tab, and execute the following...

Read more about this resource...
 
Thanks for the guide! I increased the limit to 300 but now when I try to warn a user in a thread with ~300 characters in the title I get this error:
Oops! We ran into some problems.
Please enter a value using 255 characters or fewer.

Do you know what files I need to edit and what commands to run to fix this?
 
Thanks for the guide! I increased the limit to 300 but now when I try to warn a user in a thread with ~300 characters in the title I get this error:


Do you know what files I need to edit and what commands to run to fix this?
Please use the paid utility I’ve shared here, only for $20, and no need to modify the source code.
 
The solution for people who don't want to throw away $20 each time they need to modify some basic Xenforo function:

I can't edit my comment so:
Edit /src/XF/Entity/Warning.php, search for maxLength and increase the value from 255.

Then check the db:
Code:
mysql
use database_name;
SHOW TABLES;
SHOW COLUMNS FROM xf_warning;

Change:
Code:
ALTER TABLE `xf_warning` MODIFY title varchar(355), MODIFY content_title varchar(355);

But when testing it I got an error from @Xon's Warning Improvements addon, so I'll have to ask him about that. As Jeremy said:


It seems strange/bad and unnecessary to have so many limitations like this.
 
Back
Top Bottom