ShoutBox problem!
Moderator: General Moderators
ShoutBox problem!
Hello,
I am having this problem where if you type in AAAAAAAAAAAAAAAAAAAAAAAAAAAA or somthing it overrides the table and makes it wider. Im designing a ShoutBox http://www.thenetherrealm.com/shoutbox.php And I need it so when somone sites there and typs in AAAAAAAAAAAAAAAAAAAAAA it wont make that scroll bar go left or right it auotmaticly does a line break, And ideas? There is probley a way where it coutns the chaectors and foreach() fuction ot add <br /> .ect But is there a fuction?
I am having this problem where if you type in AAAAAAAAAAAAAAAAAAAAAAAAAAAA or somthing it overrides the table and makes it wider. Im designing a ShoutBox http://www.thenetherrealm.com/shoutbox.php And I need it so when somone sites there and typs in AAAAAAAAAAAAAAAAAAAAAA it wont make that scroll bar go left or right it auotmaticly does a line break, And ideas? There is probley a way where it coutns the chaectors and foreach() fuction ot add <br /> .ect But is there a fuction?
- Sevengraff
- Forum Contributor
- Posts: 232
- Joined: Thu Apr 25, 2002 9:34 pm
- Location: California USA
- Contact:
you mean like wordwrap()
It's not working
$shout_data1 is there name
$shout_data2 is there message.
It's not changig my WWWWWWWWWWWWWWWW to WWWW
WWWW
WWWW
Or how ever it is saposed to do it
Code: Select all
// Automaticly break long lines.
$shout_data1 = wordwrap($shout_data1, 5, "<br />");
$shout_data2 = wordwrap($shout_data2, 5, "<br />");$shout_data2 is there message.
It's not changig my WWWWWWWWWWWWWWWW to WWWW
WWWW
WWWW
Or how ever it is saposed to do it
-
Illusionist
- Forum Regular
- Posts: 903
- Joined: Mon Jan 12, 2004 9:32 pm
Code: Select all
// Automaticly break long lines.
$shout_data1 = wordwrap($shout_data1, 5, "<br />",1);
$shout_data2 = wordwrap($shout_data2, 5, "<br />",1);-
Illusionist
- Forum Regular
- Posts: 903
- Joined: Mon Jan 12, 2004 9:32 pm
-
Illusionist
- Forum Regular
- Posts: 903
- Joined: Mon Jan 12, 2004 9:32 pm
-
Illusionist
- Forum Regular
- Posts: 903
- Joined: Mon Jan 12, 2004 9:32 pm
Code: Select all
$shout_data1 = wordwrap($shout_data1, 5, "<br />",1);Code: Select all
$shout_data1 = wordwrap($shout_data1, 15, "<br />",1);-
Illusionist
- Forum Regular
- Posts: 903
- Joined: Mon Jan 12, 2004 9:32 pm
Well right now you tpye in a sentance t only allows 2 words.. But if you type in WWWWWWWWWWWWWWWWWW it doubles the hole box then breaks... Al I want it to do is be like it was type osmthing it ti auotmaticlty breaks liek it's sapsoed to but... When you type in WWWWWWW or somthing it keeps oging thats what I want to break when they sit there and hold down somthing or they jsut dont use any spaces Understand?
-
Illusionist
- Forum Regular
- Posts: 903
- Joined: Mon Jan 12, 2004 9:32 pm