Suggestions & Feedback
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsForum InformationSuggestions & Feedback

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
  #1  
Old August 18th, 2002, 04:15 AM
D1NGO D1NGO is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Perth, Australia
Posts: 221 D1NGO User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
wordwrap

im thinking it might be a good idea to apply wordwrap to the forums, as occasionally you get those big posts that distort the whole thing

Reply With Quote
  #2  
Old August 20th, 2002, 03:19 AM
Matt Matt is offline
Moderator
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
RE: wordwrap

Wordwrap is generally used. What distorts is when code is displayed. When php highlights code, it turns all spaces into &nbsp;'s. That causes it not to wrap....

Reply With Quote
  #3  
Old August 23rd, 2002, 01:36 AM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
RE: wordwrap

maybe.. a fixed sentence length before forcing it to break? i did that with a tagboard type thing once, not sure if it'd work here. *shrugs*

Reply With Quote
  #4  
Old September 19th, 2002, 09:16 PM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
RE: wordwrap

duh i just realized that's what wordwrap does..

Reply With Quote
  #5  
Old September 19th, 2002, 11:58 PM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: wordwrap

we (matt?) could do a "nbsp-ward-wrap" or force code lines to fixed maximum width of ie 80 chars...

Reply With Quote
  #6  
Old September 20th, 2002, 12:02 AM
Matt Matt is offline
Moderator
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
RE: wordwrap

Yeah, we could force lines to break at a certain width, but then they may break at places you we wouldn't like it....

Let me give something a try real quick...I actually am using output buffering for the php code in the forums, so it really shouldn't be that hard just to convert &nbsp's to regular spaces...

Hmm..more thought and that could cause a problem as it would kill all the code indentation....that's the reason for the nbsp's to start with...let me try some regular expressions to change only nbsp's surrounded by alpha characters....

Reply With Quote
  #7  
Old September 20th, 2002, 12:13 AM
Matt Matt is offline
Moderator
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
RE: wordwrap

Hmmm..can't seem to find a post that isn't wrapping...can someone point me to one?

Reply With Quote
  #8  
Old September 20th, 2002, 03:15 AM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: wordwrap

i could only find this one

it is too big for the 800x600 screen, or 1024x768 with sidebar/favorites on the left

Reply With Quote
  #9  
Old September 20th, 2002, 11:33 PM
Matt Matt is offline
Moderator
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
RE: wordwrap

Little bit better?

Reply With Quote
  #10  
Old September 21st, 2002, 12:01 AM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: wordwrap

great!

but how did u do it?

i can't figure it out by looking at the html source ;)

Reply With Quote
  #11  
Old September 21st, 2002, 12:35 AM
Matt Matt is offline
Moderator
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
RE: wordwrap

Just changed any single &nbsp's to a regular space. A little preg_replace that looks for an alpha character or " or > followed by &nbsp; and then followed by an alpha character and replaced the &nbsp; with a space.


Reply With Quote
  #12  
Old September 22nd, 2002, 01:50 PM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: wordwrap

http://codewalkers.com/forum/index.php?action=displaythread&forum=phpcoding&id=822&realm=default

again? back from the dead? ;)

Reply With Quote
  #13  
Old September 22nd, 2002, 02:16 PM
Matt Matt is offline
Moderator
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
RE: wordwrap

That thread shows fine to me...maybe you are seeing a cached version?

Reply With Quote
  #14  
Old September 22nd, 2002, 02:38 PM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: wordwrap

no! i checked!

i keep my favorites bar in ie, and sidebar in mozilla to be so big, that the main browser area is around 800px wide.

now i checked both in ie and mozilla and opera, and it is a little wider than that.

it is not too bad, but i make sites to be visible on 800*600 screen, and i like other sites to be also...

Reply With Quote
Reply

Viewing: Codewalkers ForumsForum InformationSuggestions & Feedback > wordwrap


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |