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 Quote Link to comment 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 :? Quote Link to comment 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) Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment 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~~ Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Chetan Posted August 14, 2006 Share Posted August 14, 2006 Delhi, India$post2 = wordwrap($post, "/n", 20); Quote Link to comment 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 Quote Link to comment 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? Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment 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); Quote Link to comment 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 :) Quote Link to comment 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); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.