Is there a way in which I can increase or abolish the character limit on shouts, so that people can use the shoutbox to post long comments?
Is there a way in which I can increase or abolish the character limit on shouts, so that people can use the shoutbox to post long comments?
Comments
Comment #1
plato1123 commentedI would also like to see this
Comment #2
konse commentedHad the same problem but in Drupal 6.x and found out, that you have to add something to the file:
sites/all/modules/shoutbox/shoutbox.module
Find the following code in shoutbox.module:
And change it to this code:
Where 1000 is the amount of characters permitted.
Comment #3
mstef commentedGet on version 2.0. Admin's can set the maxlength.
Comment #4
mstef commentedAnd konse, that won't work because the database field also has a maxlength.
The 2.0 version lets you change the maxlength via the admin interface, but right now, it can only go as high as 255.
Think it should be higher?
Comment #5
kaspertor commentedYeah really should be higher - The lenght of messages should be 500. I use shoutbox on a hockey site. And whould love to let people debate in long sentences
Comment #6
ilfelice commentedSubscribe
Comment #7
mstef commentedI'll have this done on the next commit
Comment #8
plato1123 commentedI really think you should let admins set this number to whatever they want... maybe make it default to a 255 or 500 limit but some people might want 1000 or 1500 characters for a specific implementation. I did a site where the shoutbox was styled to be full width and was used for the day's announcements for an organization. These could sometimes be quite lengthy.
Comment #9
mstef commentedwell the problem is that it's stored in a database field, and you have to declare a size of that field - varchar(255), etc. i could change the field to a long blob of text so there really isn't a limit. do we think that's the best way to go?
Comment #10
mstef commentedi'm not sure if that will cause data loss from changing the field type on active sites.
Comment #11
mstef commentedCommitted: http://drupal.org/cvs?commit=404630
No limit on shouts now. Admin can still set a limit, but it can be anything.
Comment #12
plato1123 commentedAwesome, you win! =)
Comment #13
mstef commentedhaha thanks..
keep the feature requests coming - even though i've overloaded myself with them.
I'm actually aiming to release a 2.2 soon. I extended and organized the API by a ton - which will make shoutbox additions much much easier. I also noticed a ton of coding, themeing, and especially, javascript issues left behind from 1.x that needed to be fixed. This is really shaping up to be an awesome module. Stay tuned!
Comment #15
kenneth001 commentedi have shout box on a test site and the problem i run into is that the text runs off the screen, that is if i use too long of text it doesn't wrap the text, is there anything that i can do to get the text to wrap?