Default Value Character Limit Increase
Kylin Offline
Junior Member
**
Posts: 8
Joined: Jan 2013
Post: #1
Default Value Character Limit Increase
I'm creating an application type of form using Xthreads but have run into a minor issue. The Default Value field (and likely other fields) only has a 255 character limit it seems. I need to increase this to about 1200 for the purposes I'm using this particular custom field for.

Is there a way to accomplish this? I assume the character limit is set in the php files. But the only thing I've found with a 255 limit was in threadfields.php. And after altering it, nothing seemed to change in terms of character limits.
12-31-2014 11:15 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #2
RE: Default Value Character Limit Increase
You need to modify the database, in particular, the threadfields table.  Don't modify any PHP code.

My Blog
01-01-2015 07:18 PM
Find all posts by this user Quote this message in a reply
Kylin Offline
Junior Member
**
Posts: 8
Joined: Jan 2013
Post: #3
RE: Default Value Character Limit Increase
Ah, guess that explains why nothing happened.

Databases are definitely my weak point in this arena. Is there a particular SQL query to run to change the character limit from 255 to whatever? The thread field in question is app_msg.
01-02-2015 01:42 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #4
RE: Default Value Character Limit Increase
If you have a database browser like phpMyAdmin, HeidiSQL etc, just modify the structure of the table and change 255 to 1500 or similar.

My Blog
01-02-2015 09:31 AM
Find all posts by this user Quote this message in a reply
Kylin Offline
Junior Member
**
Posts: 8
Joined: Jan 2013
Post: #5
RE: Default Value Character Limit Increase
Well, that was easy enough then. Everything is good to go now. Thanks!
01-02-2015 09:52 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: