• Resolved ryuui

    (@ryuui)


    I have noticed that for some reason the code does not accept text longer than 200 characters.

    Now, this is not the “limit” that can be set in the options of the plugin (which shortens the entered text to the set limit) – that limit can be of any size higher than let’s say 200.

    If one sets the “limit” in the options to, for example, 100, the text gets shortened and it passes ok, but if for example we have a limit of 500, and try to enter a text with more than 200 characters, the message will not get saved at all.

    • This topic was modified 6 years, 10 months ago by ryuui.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ryuui

    (@ryuui)

    EDIT: I found the limit is in the database fields…

    Particularly inside here:

    $sql = "CREATE TABLE ". $table_name ." (
    				id   mediumint(10) UNSIGNED NOT NULL AUTO_INCREMENT,
    				time varchar(200) NOT NULL DEFAULT '',
    				name varchar(200) NOT NULL DEFAULT '',
    				text varchar(200) NOT NULL DEFAULT '',
    				url  varchar(200) NOT NULL DEFAULT '',
    				ip   varchar(200) NOT NULL DEFAULT '',
    				PRIMARY KEY (id)
    			) ". $charset_collate .";";

    Is this intended?
    So a user can not post more than 200 chars inside a message… if so, the user interface and options should be updated, otherwise the database creation SQL should be updated instead.

    • This reply was modified 6 years, 10 months ago by ryuui.
    Plugin Author Jeff Starr

    (@specialk)

    Thanks for reporting this.. it’s definitely an inconsistency and will be fixed one way or another in the next update. Most likely I will increase the table limit. How many characters do you think should be supported in a chat plugin, btw?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Text – 200 character limit’ is closed to new replies.