Site Links
Pricing & Order
Members Area
Support Options
Who's Online Now
2 registered members (Zarzal, isaac), 84 guests, and 213 spiders.
Key: Admin, Global Mod, Mod
Member Spotlight
Portland, OR; USA
Posts: 17,014
Joined: June 2006
Show All Member Profiles 
Top Posters(30 Days)
Gizmo 18
isaac 14
TheBrit 10
Zarzal 8
SteveS 8
Morgan 5
Ruben 4
jorb 4
Latest Photos
Testing to drag photos
Comfortable Cats
BSA photos
Previous Thread
Next Thread
Print Thread
Code Tag Parsing UBB #258281
04/07/16 11:35 PM
04/07/16 11:35 PM
ntdoc  Offline OP
Carpal Tunnel
Joined: Nov 2006
Posts: 3,390
The following code when placed within code tags looks properly when viewed in PREVIEW but once the actual post is made it then interprets the code and creates a button instead of keeping the actual code as pure text in the CODE TAG box on older versions of UBB. But the current version here seems to "almost" treat it correctly.

It is still word wrapping the code box instead of creating a scrolling bar. Is this a user option to disable or how can I prevent the word wrapping?

Function SelectFile( )
  Dim $objSHELLexec, $CMD, $objSHELL
  $CMD='mshta.exe "about:<input type=file id=FILE><script>;new ActiveXObject("Scripting.FileSystemObject").GetStandardStream(1).WriteLine(FILE.value);close();resizeTo(0,0);</script>" '
  $SelectFile=$objSHELLexec.StdOut.ReadLine( )

Last edited by ntdoc; 04/07/16 11:36 PM.
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
Disable word wrap in CODE TAG #258282
04/07/16 11:49 PM
04/07/16 11:49 PM
ntdoc  Offline OP
Carpal Tunnel
Joined: Nov 2006
Posts: 3,390
Is it possible to disable word wrap in the CODE tag without editing CSS or other forum software files? I've looked around at a few different posts but did not find what I was looking for.

In a sample post here

The code should not wrap. The line that starts like this
is at column 197 and should force a scroll bar in the code box not wrap. It seems others either want/like it to wrap but for code I want it 100% exactly as it is in the actual text editor it came from.

Thanks for updates on if this is possible and how.


Re: Disable word wrap in CODE TAG [Re: ntdoc] #258283
04/08/16 10:33 AM
04/08/16 10:33 AM
isaac  Online Splat
UBB.threads Developer
Joined: Apr 2004
Posts: 1,243
In UBB.threads 7.5.x series, the CSS white-space value for "pre" is undeclared. And thus, it was treated as "pre{white-space:normal;}". Its default value.

Here on UBBCentral while running the current UBB.threads 7.6.0 Preview, the /styles/common.css file had been completely rewritten from the ground up. The "pre" value was updated/changed, though there was nothing wrong with it in the first place.

You've found a bug -- thank you!
The change has been reverted.


The value that was added to 7.6.0 Preview was:

It has now been reverted back to just:

Again, thank you catching this and pointing it out.

isaac @ // my forum @
a current developer of UBB.threads php forum software // 7.6.2 Released
Re: Disable word wrap in CODE TAG [Re: isaac] #258284
04/08/16 04:51 PM
04/08/16 04:51 PM
ntdoc  Offline OP
Carpal Tunnel
Joined: Nov 2006
Posts: 3,390
Awesome. Thank you and glad I was able to help you help me :-)

Re: Disable word wrap in CODE TAG [Re: isaac] #258285
04/08/16 04:52 PM
04/08/16 04:52 PM
ntdoc  Offline OP
Carpal Tunnel
Joined: Nov 2006
Posts: 3,390
Thank you

Shout Box
Today's Birthdays
No Birthdays
Recent Topics
update multilanguage site problem
by Zarzal. 12/15/18 04:20 PM
Char coding utf-8 and older forums
by Zarzal. 12/15/18 03:59 PM
table issue
by TheBrit. 12/13/18 06:05 PM
testing table layout
by TheBrit. 12/13/18 11:16 AM
header.php after update from 7.5.x to 7.6.x
by Zarzal. 12/12/18 05:29 AM
Forum Statistics
Most Online978
Jun 24th, 2007
Random Image
Powered by UBB.threads™ PHP Forum Software 7.6.2