Max size of discussion
I found a max comment size in the config file, but not the max discussion body size. Is there a maximum? If so, how do I control it?
Best Answers
-
hgtonight MVP
'Vanilla.Comment.MaxLength'
is used for the restriction on both discussion bodies and comment bodies.The reason is two-fold: Discussions used to not have any "Body" field and posting a new discussion was effectively creating the discussion and immediately posting a comment to it. It also makes sense to keep them the same limit.
Note that the Body fields in the discussion and comment tables use the
text
type, which effectively limits your input to 65,535 bytes. Each "standard" character is a byte, so you can translate it directly into "length size".Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
2 -
hgtonight MVP
@rbrahmson said:
Believe it or not, I pasted an article as a new discussion test for users to comment on and I did hit the limit...
Vanilla 2.1.11 ships with an
8000
character limit by default.Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
6 -
x00 MVP
@hgtonight said:
The reason is two-fold: Discussions used to not have any "Body" field and posting a new discussion was effectively creating the discussion and immediately posting a comment to it. It also makes sense to keep them the same limit.
In 2010 around the release of vanilla 2.0 Discussions had a Body field. Although it didn't in the alpha this is hardly that significant. The design impetus has clearly been from then on to treat these as different concerns.
The decision to keep it the same limit the same is arbitrary, whether it makes sense or not is up to the individual. However this is the config value you can use. Someone could reasonably do a pull request for a separate limit so long as it is backward compatible.
grep is your friend.
5 -
hgtonight MVP
@x00 said:
In 2010 around the release of vanilla 2.0 Discussions had a Body field. Although it didn't in the alpha this is hardly that significant. The design impetus has clearly been from then on to treat these as different concerns.That sounds about right. Inertia is a hell of a drug.
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
5
Answers
'Vanilla.Comment.MaxLength'
is used for the restriction on both discussion bodies and comment bodies.The reason is two-fold: Discussions used to not have any "Body" field and posting a new discussion was effectively creating the discussion and immediately posting a comment to it. It also makes sense to keep them the same limit.
Note that the Body fields in the discussion and comment tables use the
text
type, which effectively limits your input to 65,535 bytes. Each "standard" character is a byte, so you can translate it directly into "length size".Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
Thanks for the insightful response and alerting me on the database limit.
Believe it or not, I pasted an article as a new discussion test for users to comment on and I did hit the limit...
I did notice the lack of a formal term for the discussion "body", though for my users I felt it clearer to use that term.
Vanilla 2.1.11 ships with an
8000
character limit by default.Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
In 2010 around the release of vanilla 2.0 Discussions had a Body field. Although it didn't in the alpha this is hardly that significant. The design impetus has clearly been from then on to treat these as different concerns.
The decision to keep it the same limit the same is arbitrary, whether it makes sense or not is up to the individual. However this is the config value you can use. Someone could reasonably do a pull request for a separate limit so long as it is backward compatible.
grep is your friend.
That sounds about right. Inertia is a hell of a drug.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
I posted a comment of size 4020 characters and it said Body is 3978 characters too long. Why?
I changed the default 8000 value to 24000 from the Advance Setting from Administration Panel. Now I am able to post!