TinyPortal
Development => Block Codes => Topic started by: VanKlomp on November 05, 2010, 08:03:03 PM
Hello
Apologies if this has been posted but I can't find it.
I want to amend the shoutbox so that when a user presses 'enter' it posts, instead of moving to the next line.
I know I'll have to apply this change when I upgrade in future, but this is how my old shout box worked and for ease of use for my users I want to copy that behaviour.
Thanks
V
It does this because < textarea > are meant to have more than one line of text. If you don't want to change the textarea to an <input type="text" /> then you'll need to add some javascript to do this. Something like what is suggested on this page.
http://www.codingforums.com/archive/index.php/t-146505.html
You'll need to add it most likely to the Themes/default/TPShout.template.php file.