Guest Paul [MVP] Posted April 9, 2003 Report Share Posted April 9, 2003 The page width problem occurs when there is a long URL, or on the index screen where microsoft.public.smartphone.developer is too long. I've tried everything, but can't limit the width and force wrap! Anyone got any ideas? P Link to comment Share on other sites More sharing options...
Guest TSCRYPTO Posted April 9, 2003 Report Share Posted April 9, 2003 Excellent. :lol: ;) :( Link to comment Share on other sites More sharing options...
Guest James Posted April 9, 2003 Report Share Posted April 9, 2003 put the whole thing in a table? Link to comment Share on other sites More sharing options...
Guest Paul [MVP] Posted April 9, 2003 Report Share Posted April 9, 2003 It is... Doesn't help! Go to http://www.modaco.com/index.php and view the source. Tweak it and see if you can get it working :lol: P Link to comment Share on other sites More sharing options...
Guest Matt Whitfield Posted April 9, 2003 Report Share Posted April 9, 2003 I guess you'll have to add some PHP code to look at the length of the string containing the forum/topic names and stick a break in at the appropriate place... Link to comment Share on other sites More sharing options...
Guest Paul [MVP] Posted April 9, 2003 Report Share Posted April 9, 2003 Man, that sucks... P Link to comment Share on other sites More sharing options...
Guest Matt Whitfield Posted April 9, 2003 Report Share Posted April 9, 2003 Just had a look at the phpBB code - yeah I think that would suck... How about changing your table width from 100% to a fixed width that you know fits on the SPV screen. That way I think the text will have to wrap in problem cells... Link to comment Share on other sites More sharing options...
Guest Paul [MVP] Posted April 9, 2003 Report Share Posted April 9, 2003 I did try that I think, and it didn't work! I'll try again tho... P Link to comment Share on other sites More sharing options...
Guest James Posted April 9, 2003 Report Share Posted April 9, 2003 its not obvious is it! Link to comment Share on other sites More sharing options...
Guest Matt Whitfield Posted April 9, 2003 Report Share Posted April 9, 2003 It doesn't like it because there are no spaces in the forum title, just dots... I've been looking at Index Dot HTML (great online HTML reference btw) for some sneaky tags to sort it, but no luck yet... I'm hacking around with a local version of your index page, so if I get lucky I'll give you a shout... Link to comment Share on other sites More sharing options...
Guest Paul [MVP] Posted April 9, 2003 Report Share Posted April 9, 2003 Cool, cheers dude. The index page isn't the main problem (I could make it render the forum as ms.pub.sp.developer), but in actual topic bodies there are sometimes long URLs that cause the same problem. P Link to comment Share on other sites More sharing options...
Guest vampyre69 Posted April 9, 2003 Report Share Posted April 9, 2003 I like it too, good job you guys. Link to comment Share on other sites More sharing options...
Guest Gorskar Posted April 9, 2003 Report Share Posted April 9, 2003 Paul, does this help? http://www.notestips.com/80256B3A007F2692/1/NAMO5CYVAF Link to comment Share on other sites More sharing options...
Guest Paul [MVP] Posted April 9, 2003 Report Share Posted April 9, 2003 Probably not hugely useful for the first page, but i'll keep it in mind... P Link to comment Share on other sites More sharing options...
Guest Gorskar Posted April 9, 2003 Report Share Posted April 9, 2003 I found something else that might be helpful http://www.phpbuilder.com/mail/php-db/2001101/0096.php and http://www.sitepointforums.com/showthread....?threadid=94447 Of course, knowing nothing about pHp myself I can't say whether it is or not. Good Luck! Link to comment Share on other sites More sharing options...
Guest Gorskar Posted April 9, 2003 Report Share Posted April 9, 2003 Ah just noticed this: (on http://www.php.net/manual/en/function.wordwrap.php) There is some good advice there by some clever people. If you're having problems with a small fixed width table/table cell being stretched by people typing entering long text (such as a URL or an email address), then one (MSIE only, unfortunately) solution is to use style="table-layout:fixed" in the tag. Â This will break any words that would normally expand your table and mess up your layout. Â wordwrap() can't help in this situation because you want to wrap if the text is wider than X pixels, rather than X characters, which of course PHP has know way of knowing. Link to comment Share on other sites More sharing options...
Guest Paul [MVP] Posted April 9, 2003 Report Share Posted April 9, 2003 That could be useful, i'll have a play, and post results :lol: P Link to comment Share on other sites More sharing options...
Guest Matt Whitfield Posted April 9, 2003 Report Share Posted April 9, 2003 Gorskar, that does actually prevent the table cells from expanding past the table width you set in pixels, the only problem is that is truncates anything that is bigger! Not perfect, but maybe better than horizontal scrolling... Link to comment Share on other sites More sharing options...
Guest bdmoore Posted April 9, 2003 Report Share Posted April 9, 2003 Ah just noticed this: (on http://www.php.net/manual/en/function.wordwrap.php) There is some good advice there by some clever people. Â Quote: Â If you're having problems with a small fixed width table/table cell being stretched by people typing entering long text (such as a URL or an email address), then one (MSIE only, unfortunately) solution is to use style="table-layout:fixed" in the wordwrap() can't help in this situation because you want to wrap if the text is wider than X pixels, rather than X characters, which of course PHP has know way of knowing. Â Â I was looking at some ideas like this earlier (also tried overflow settings), then I discovered the rather annoying fact that PIE doesn't support CSS!! :evil: Back to the drawing board.... :? Link to comment Share on other sites More sharing options...
Guest Paul [MVP] Posted April 9, 2003 Report Share Posted April 9, 2003 Yeah, VERY annoying that! I've had to rip all the CSS stuff out of the forum templates... P Link to comment Share on other sites More sharing options...
Guest ricmoo2003 Posted April 9, 2003 Report Share Posted April 9, 2003 i have ust had alook at the site from the SPV and in fact made a post from it (Excellant) but there is one point i would like to make.... It needs to show the page numbers at the bottom, I read through a whole topic and found that i had to go right to the top again to go to the next page.. If it isn't too hard that would be a great update... Link to comment Share on other sites More sharing options...
Guest Paul [MVP] Posted April 9, 2003 Report Share Posted April 9, 2003 Noted - a simple change :lol: P Link to comment Share on other sites More sharing options...
Guest Posted April 9, 2003 Report Share Posted April 9, 2003 Spot on Paul, thanks, just been having a look, and this is just what the SPV has been waiting for. How cool is this, to get to a forum from your phone! :-) And it gives up all something to do on the train down to the meet on Saturday! Link to comment Share on other sites More sharing options...
Guest James Posted April 9, 2003 Report Share Posted April 9, 2003 cant we see poll results paul? Link to comment Share on other sites More sharing options...
Guest HelloDave Posted April 9, 2003 Report Share Posted April 9, 2003 Just tried it - very good :lol: Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now