Page 1 of 1 1
Topic Options
#177992 - 2007-07-17 12:11 AM Test post code window size
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
test post to see if a FireFox .CSS hack fixes the size of the code windows.

 Code:
Break On

        "Memory info on local computer:" ?
        "Location	Capacity	Speed" ?
        For each $memModule in PhysicalMemoryInfo('msea001')
         $memModule[0] chr(9) chr(9) $memModule[1] chr(9) chr(9) $memModule[4] ?
        Next
        ? "Done."
        get $

Function PhysicalMemoryInfo(optional $sComp)
dim $fF,$mT,$oWMI,$oM,$tMem[0]

 if not $sComp
  $sComp = "."
 endif
 $fF="Unknown","Other","SIP","DIP","ZIP","SOJ","Proprietary","SIMM","DIMM","TSOP","PGA",
  "RIMM","SODIMM","SRIMM","SMD","SSMP","QFP","TQFP","SOIC","LCC","PLCC","BGA","FPBGA","LGA"
 $mT="Unknown","Other","DRAM","Synchronous DRAM","Cache DRAM","EDO","EDRAM","VRAM","SRAM",
  "RAM","ROM","Flash","EEPROM","FEPROM","EPROM","CDRAM","3DRAM","SDRAM","SGRAM","RDRAM","DDR"

 $oWMI = GetObject("winmgmts:\\" + $sComp + "\root\cimv2")
 if @error exit @error endif
 For each $oM in $oWMI.ExecQuery("Select * from Win32_PhysicalMemory",,48)
  $tMem[ubound($tMem)]=$oM.DeviceLocator,1 * $oM.Capacity / 1048576,
  $fF[$oM.FormFactor], $mT[$oM.MemoryType], $oM.Speed,$oM.DataWidth
  redim preserve $tMem[ubound($tMem)+1]
 Next
 if 0<ubound($tMem)
  redim preserve $tMem[ubound($tMem)-1]
 endif
 $PhysicalMemoryInfo=$tMem
EndFunction


Very nice... works a treat for me. No more small code window in FF


 Originally Posted By: Sirdude
you don't want to have to deal with the [`code] and [`php] scrollbars that occur, when the pasted content exceeds 150px in height (hardwired in ubbthreads.inc.php) and the css for the style you are using has a width that isn't fluid.

just do this:

go to your firefox profile/chrome directory .. Linky Poo <-- locate where your profile is

edit a file and call it 'userContent.css' (you'll already see one in there named 'userContent.css-example' that came with the FF install.

simply paste the following in there:

 Code:
.ubbcode-block, .ubbcode-header, .ubbcode-body {
width: auto ! important;
height: auto ! important;
}


*poof* scroll bars gonzo.

there is also a solution for Opera that i know of too, but i won't include that here.

only apply this IF you are a firefox user and you don't want scroll bars and you are slightly geeky \:D . it doesn't do anything else than that.

ps: you have to restart FF for it to take effect :2c:

Top
#177993 - 2007-07-17 12:15 AM Re: Test post code window size [Re: NTDOC]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
Not as good as it works over on UBB site though.
Top
#177995 - 2007-07-17 02:26 AM Re: Test post code window size [Re: NTDOC]
Sirdude Offline
Lurker

Registered: 2007-07-02
Posts: 2
hrm... /me opens up firebug

omg my 1st post!

hi nt \:\)
_________________________
Unfair, Unbalanced, Unmedicated

Top
#177996 - 2007-07-17 02:28 AM Re: Test post code window size [Re: Sirdude]
Sirdude Offline
Lurker

Registered: 2007-07-02
Posts: 2
bingo.. it's simple.. you have max-height, max-width in your ubbcode-block.

change to width: auto; height: auto;

and you should be good to go \:\)

no need for the max-xxx stuff :2c:
_________________________
Unfair, Unbalanced, Unmedicated

Top
#177997 - 2007-07-17 03:25 AM Re: Test post code window size [Re: Sirdude]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
Thanks SD

Updated the .CSS code for the Koniro theme and is now working as expected.

Looks pretty good in FF. Looks better in IE7 but not as well as in FF

Top
Page 1 of 1 1


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1181 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.053 seconds in which 0.024 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org