Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
4 registered (Dj Aero, capnbob, Morgan, id242), 46 Guests and 16 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 04/12/04
Posts: 154
Top Posters (30 Days)
Ruben 49
DennyP 24
Gizmo 23
Dunny 18
SteveS 14
AllenAyres 12
dbremer 10
drkknght00 9
SD 9
driv 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Topic Options
#181772 - 03/30/07 12:46 PM CODE block height
jgeoff Offline
Pooh-Bah
Registered: 08/08/06
Posts: 1922
Loc: NJ

Since 7.1 (I assume), my CODE blocks are being limited to only 150px in height, and I cannot find where that's determined/set.

Pre-7.1 rendered as:
 Code:
<div class="ubbcode-block">
<div class="ubbcode-header">Code:</div>
<div class="ubbcode-body ubbcode-pre">
<pre></pre></div></div>

But now it's rendering as:
 Code:
<div class="ubbcode-block">
<div class="ubbcode-header">&nbsp;Code:</div>
<div class="ubbcode-body ubbcode-pre" style="height: 150px;">
<pre></pre></div></div>


Where's that "height: 150px" coming from now, I can't find it?

ubbcode-body is set at 300px in my styles, and that is how high my QUOTE boxes are, and I'd like my CODE boxes to follow the same behavior...

Thanks \:\)
_________________________
GangsterBB.NET (Ver. 7.5.6)
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Browsers: Chrome, Firefox, & Safari (Win7 and iPhone); No IE, ever!
Top
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."
#181778 - 03/30/07 06:25 PM Re: CODE block height [Re: jgeoff]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
That is quite odd that it's hardcoded like that, I'd say it'd likely be in the libs/ubbthreads.inc.php file since that holds the guts for the ubbcodes
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#181784 - 03/30/07 08:34 PM Re: CODE block height [Re: Gizmo]
jgeoff Offline
Pooh-Bah
Registered: 08/08/06
Posts: 1922
Loc: NJ

Okay, thanks. Well, I thought I found it....

In libs/ubbthreads.inc.php, on or around Line 1120
 Code:
// Fix Code & PHP Tags
foreach( $codes['code'] as $i => $code ) {
...		
$height = (substr_count($code,"\n") * 16) + 16;
if ($height > 150) $height = 150;
if ($height < 34) $height = 34;
...


However, I changed the one line to this, and it didn't seem to work
 Code:
if ($height > 300) $height = 300;


Then I found this, near Line 1163
 Code:
$height = (substr_count($code,"\n") * 16) + 20;
if ($height > 150) $height = 150;
if ($height < 34) $height = 34;

and changed that, too, but still nothing...


Edited by jgeoff (03/30/07 08:44 PM)
Edit Reason: However... ;)
_________________________
GangsterBB.NET (Ver. 7.5.6)
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Browsers: Chrome, Firefox, & Safari (Win7 and iPhone); No IE, ever!
Top
#181786 - 03/30/07 08:47 PM Re: CODE block height [Re: jgeoff]
jgeoff Offline
Pooh-Bah
Registered: 08/08/06
Posts: 1922
Loc: NJ

Testing some CODE I use on my site to test behavior here... this now causes a vertical scrollbar when before 7.1 it didn't...

[SEG 2] WEEK 2 - WGC-CA Championship
 Code:
JL   Mickelson   Woods    Wall    Calcavecchia
JG   Mickelson   Woods    Wall    Calcavecchia
IC   Quigley     Goydos   Bryant  -----------
SC   Poulter     Woods    Durant  Calcavecchia
      
     RND1  RND2  RND3  RND4   TOT   PTS    TOT   
      
JL^  -07   -09   -10   -11    -37    91    139
JG^  -07   -09   -10   -11    -37    91    139   
IC   -08   -07   -05   -04    -24    12    105
SC   -06   -11   -07   -07    -31    45     65


(Fantasy golf \:D )
_________________________
GangsterBB.NET (Ver. 7.5.6)
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Browsers: Chrome, Firefox, & Safari (Win7 and iPhone); No IE, ever!
Top
#181790 - 03/30/07 09:19 PM Re: CODE block height [Re: jgeoff]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
the ubbcodes where changed in 7.1 as an IE "fix"; which i dispise so i didn't update my stylesheet ;)... Basically the ubbcode outlook in the styles was to update the field to have a set width, whereby before it'd span the entire window...
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#181791 - 03/30/07 09:22 PM Re: CODE block height [Re: Gizmo]
jgeoff Offline
Pooh-Bah
Registered: 08/08/06
Posts: 1922
Loc: NJ

I didn't do the IE "fix" -- I'm talking about the vertical (up-and-down) scrollbar ;\) I want that box to be up to 300px before it starts scrolling, rather than 150px...
_________________________
GangsterBB.NET (Ver. 7.5.6)
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Browsers: Chrome, Firefox, & Safari (Win7 and iPhone); No IE, ever!
Top
#181795 - 03/30/07 10:16 PM Re: CODE block height [Re: jgeoff]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
It should just be a matter of changing the two places that you noted in libs/ubbthreads.inc.php. You may also need to change your old stylesheet for the ubbcode properties as that had a max-height value set in it as well.
Top
#181796 - 03/31/07 12:53 AM Re: CODE block height [Re: Rick]
jgeoff Offline
Pooh-Bah
Registered: 08/08/06
Posts: 1922
Loc: NJ
 Originally Posted By: Rick
It should just be a matter of changing the two places that you noted in libs/ubbthreads.inc.php. You may also need to change your old stylesheet for the ubbcode properties as that had a max-height value set in it as well.


.ubbcode-body
max-height: 300px;

Everything mentioned above says 300px height... the only thing left to try is ubbcode-pre -- where is that at?

(Not for nothin', but maybe this should be a CP setting if it's this complicated ;\) )
_________________________
GangsterBB.NET (Ver. 7.5.6)
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Browsers: Chrome, Firefox, & Safari (Win7 and iPhone); No IE, ever!
Top
#181809 - 03/31/07 07:02 AM Re: CODE block height [Re: jgeoff]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
BTW, kinda unrelated, I think the quote/code/php tags need to be filtered from the active topics system lol
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Custom forum permissions
by ntdoc
05/18/12 02:07 PM
Forum Stats
10489 Members
36 Forums
33841 Topics
181698 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image