desithugg Posted August 14, 2006 Share Posted August 14, 2006 look at that link see that top box post box i have set the width as 80% but when i display a post it just keeps going off the pafe ive tried css .post2 { width: 80%; }and html<table border='0' class=post2' width='80%'>but it just keeps going off ive tried<p></p> <div></div> around it im just lost any ideas on how to control the size Link to comment https://forums.phpfreaks.com/topic/17529-html-probelm/ Share on other sites More sharing options...
obsidian Posted August 14, 2006 Share Posted August 14, 2006 getting a message that i have to log in... can't see the post :? Link to comment https://forums.phpfreaks.com/topic/17529-html-probelm/#findComment-74629 Share on other sites More sharing options...
AndyB Posted August 14, 2006 Share Posted August 14, 2006 http://ca3.php.net/wordwrapProperly applied, that will force breaks in overly long words (like the nonsense post you have) Link to comment https://forums.phpfreaks.com/topic/17529-html-probelm/#findComment-74632 Share on other sites More sharing options...
Chetan Posted August 14, 2006 Share Posted August 14, 2006 desithugg, that name makes me laugh, thats sumthin in my lang.Pokemon RPG well youll hav 2 make it too gud, there are many,can't see your code, its huge, make sure you dun use <pre> tags. Link to comment https://forums.phpfreaks.com/topic/17529-html-probelm/#findComment-74633 Share on other sites More sharing options...
desithugg Posted August 14, 2006 Author Share Posted August 14, 2006 kk il check it out lol that nonsense post was just a test to see if it goes off the page Link to comment https://forums.phpfreaks.com/topic/17529-html-probelm/#findComment-74634 Share on other sites More sharing options...
desithugg Posted August 14, 2006 Author Share Posted August 14, 2006 [quote author=RockingGroudon link=topic=104228.msg415620#msg415620 date=1155575664]desithugg, that name makes me laugh, thats sumthin in my lang.Pokemon RPG well youll hav 2 make it too gud, there are many,cunt see your code, its huge, make sure you dun use <pre> tags.[/quote]o.o it was good i had released v.1 bout 6 days ago andThere is a total of 750 registerd members.There is a total of 2430 pokemon.and bout 3000 posts but due to some glitches and bandwith problems i decided to start off and fix the glitches in another site and transfere Link to comment https://forums.phpfreaks.com/topic/17529-html-probelm/#findComment-74638 Share on other sites More sharing options...
Chetan Posted August 14, 2006 Share Posted August 14, 2006 Ohk, what I meant was youll have to make it better than atleast pokemoncrater.com so ppl play it much, it isnt even famous among my frends~~ Link to comment https://forums.phpfreaks.com/topic/17529-html-probelm/#findComment-74643 Share on other sites More sharing options...
desithugg Posted August 14, 2006 Author Share Posted August 14, 2006 yup lol.I tried to be as creative as i could.Took me a while but i got throught it.you know how the crater maps are right?navigation and stuffi added a lil twist to it you navigate person moves and you can go inside caves :)http://tpfrpg.byethost32.com/index.phpsome glitches in the forums but i have fixed them on the new site.relesing again and transfering in bout a week. Link to comment https://forums.phpfreaks.com/topic/17529-html-probelm/#findComment-74650 Share on other sites More sharing options...
Chetan Posted August 14, 2006 Share Posted August 14, 2006 Ill register.Well the desi in your name makes me laugh it means sumthin kinda funny Link to comment https://forums.phpfreaks.com/topic/17529-html-probelm/#findComment-74655 Share on other sites More sharing options...
desithugg Posted August 14, 2006 Author Share Posted August 14, 2006 hey guys its still not working<?$post = "dsfgfdfdgdfsadddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd";$post2 = wordwrap($post, 20, "<br>");$post3 = nl2br($post2);?>and Rocking Groudoun where are u from lol Link to comment https://forums.phpfreaks.com/topic/17529-html-probelm/#findComment-74656 Share on other sites More sharing options...
Chetan Posted August 14, 2006 Share Posted August 14, 2006 Delhi, India$post2 = wordwrap($post, "/n", 20); Link to comment https://forums.phpfreaks.com/topic/17529-html-probelm/#findComment-74663 Share on other sites More sharing options...
desithugg Posted August 14, 2006 Author Share Posted August 14, 2006 [quote author=RockingGroudon link=topic=104228.msg415651#msg415651 date=1155577365]Delhi, India$post2 = wordwrap($post, "/n", 20);[/quote]Warning: wordwrap() expects parameter 2 to be long, string given in /usr/home/osiris/domains/x3teamz.net/public_html/pi/members/3100923886sas/forums/post.php on line 136o.o srry to keep othering u guys Link to comment https://forums.phpfreaks.com/topic/17529-html-probelm/#findComment-74665 Share on other sites More sharing options...
Chetan Posted August 14, 2006 Share Posted August 14, 2006 $post2 = wordwrap($post, 20, "<br />\n");Directly from my copy of php manua;, btw where are you from? Link to comment https://forums.phpfreaks.com/topic/17529-html-probelm/#findComment-74668 Share on other sites More sharing options...
desithugg Posted August 14, 2006 Author Share Posted August 14, 2006 from pakistan lol but not much different Link to comment https://forums.phpfreaks.com/topic/17529-html-probelm/#findComment-74669 Share on other sites More sharing options...
desithugg Posted August 14, 2006 Author Share Posted August 14, 2006 uhhhhhhh it doesnt give the error any more but it doesnt split up the line either i tried replacing /n with <br / > but nothing Link to comment https://forums.phpfreaks.com/topic/17529-html-probelm/#findComment-74670 Share on other sites More sharing options...
desithugg Posted August 14, 2006 Author Share Posted August 14, 2006 never mind got it$post2 = wordwrap($post, 20, "<br />\n", 1); Link to comment https://forums.phpfreaks.com/topic/17529-html-probelm/#findComment-74671 Share on other sites More sharing options...
AndyB Posted August 14, 2006 Share Posted August 14, 2006 [quote author=AndyB link=topic=104228.msg415619#msg415619 date=1155575568]http://ca3.php.net/wordwrapProperly applied, that will force breaks in overly long words (like the nonsense post you have)[/quote][b]"Properly applied"[/b] - the second example on that page would have solved this in seconds :) Link to comment https://forums.phpfreaks.com/topic/17529-html-probelm/#findComment-74687 Share on other sites More sharing options...
Barand Posted August 14, 2006 Share Posted August 14, 2006 Use the 4th argument$post2 = wordwrap($post, 20, "\n", true); Link to comment https://forums.phpfreaks.com/topic/17529-html-probelm/#findComment-74714 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.