Guest Paul [MVP] Posted April 9, 2003 Report 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
Guest Paul [MVP] Posted April 9, 2003 Report 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
Guest Matt Whitfield Posted April 9, 2003 Report 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...
Guest Matt Whitfield Posted April 9, 2003 Report 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...
Guest Paul [MVP] Posted April 9, 2003 Report Posted April 9, 2003 I did try that I think, and it didn't work! I'll try again tho... P
Guest Matt Whitfield Posted April 9, 2003 Report 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...
Guest Paul [MVP] Posted April 9, 2003 Report 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
Guest Gorskar Posted April 9, 2003 Report Posted April 9, 2003 Paul, does this help? http://www.notestips.com/80256B3A007F2692/1/NAMO5CYVAF
Guest Paul [MVP] Posted April 9, 2003 Report Posted April 9, 2003 Probably not hugely useful for the first page, but i'll keep it in mind... P
Guest Gorskar Posted April 9, 2003 Report 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!
Guest Gorskar Posted April 9, 2003 Report 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.
Guest Paul [MVP] Posted April 9, 2003 Report Posted April 9, 2003 That could be useful, i'll have a play, and post results :lol: P
Guest Matt Whitfield Posted April 9, 2003 Report 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...
Guest bdmoore Posted April 9, 2003 Report 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.... :?
Guest Paul [MVP] Posted April 9, 2003 Report Posted April 9, 2003 Yeah, VERY annoying that! I've had to rip all the CSS stuff out of the forum templates... P
Guest ricmoo2003 Posted April 9, 2003 Report 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...
Guest Posted April 9, 2003 Report 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!
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now