PDA

View Full Version : Reason for Edit Character Length?


Justinphx
09-23-2015, 04:02 PM
We are limited to how much we can type in the reason for the edit or deletion of a thread/post. Can the limit be increased so we can type as much as we need to?

Thanks

Seven Skins
09-23-2015, 07:02 PM
Sorry was late last night so did not read your query properly.

Justinphx
09-24-2015, 01:51 PM
I tried that and it doesn't work to solve this issue. Basically, what I would like to do is increase the max number of characters we can type in the Reason for Edit" box. I would like to give our members a little more information on why a post was edited or deleted to reduce PM's from them asking why something was edited/deleted.

This is the text box:

https://vborg.vbsupport.ru/external/2015/09/1.php?di=ufpd


Update: I finally figured it out. I just searched the templates for maxlength="125" because that is the default length and changed to 500.

squidsk
09-24-2015, 02:14 PM
Increasing the size of the box does not necessarily mean you can actually have a longer edit message, since that will also depend on the data type for the message in your database. For example you changing the length of the edit box to 500 but the size of the reason field in the database, for vb 4.2.2pl4, is 200 characters, so any message with over 200 characters will either cause the edit to fail or truncate the message to the first 200 characters.

Seven Skins
09-24-2015, 04:04 PM
What I used to do in one of my forums was leave a edit note at the end of post if the reason for edit was going to be long e.g.


Mod edit: Blah blah........

Dave
09-24-2015, 09:15 PM
For the database part, you have to change it using a SQL query such as:
ALTER TABLE `editlog` MODIFY `reason` VARCHAR(500);

I don't know if vBulletin does its own truncating before it inserts it into the database though.