Announcement

Collapse
No announcement yet.

Code and php boxes too wide, how do I change this?

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • Code and php boxes too wide, how do I change this?

    See attached pic, couldn't figure this out or find any relevant with the search. My forums are 780 width.

    Attached Files

  • #2
    edit the bbcode_* templates and add a width tag into them.

    Comment


    • #3
      width:$stylevar[codeblockwidth];

      Where does the template pull the variable "codeblockwidth" from? Where is that set?

      Comment


      • #4
        Sorry for bumping, I'd like to change the value wherever the variable codeblockwidth is set rather than inserting the value here. (if that's possible?)

        Comment


        • #5
          To be honest im not sure where that is defined if anywhere in the settings, the closest thing i found was

          AdminCP > vBulletin Options > BB Code Settings > Maximum [CODE] Lines

          Comment


          • #6
            Yeh, I saw that but that's just for height, not width.

            Actually, maybe it's cos I'm using the legacy postbit and that's why it's not a problem on here, there must be somewhere to change it?

            Comment


            • #7
              Try this (I *JUST* ran into the same problem and looked for it in the template)...

              Admin CP >> Styles & Templates >> Style Manager >> <Template you use> >> StyleVars >> Code Block Width (Pixels)

              It says for pixels only, but I have it set as a percentage (95%) just fine, which is great because I have users who can choose between the legacy and the new postbit.
              Last edited by StevenTN; Wed 24 Mar '04, 4:15pm.
              Proud Admin of http://www.thrillnetwork.com/
              Finally live with vB4... I will say it's a pain in the bucket compared to what we're used to working with (using free CMS software no less).
              "If it doesn't fit, beat it with a hammer until it does"
              - Jesse James, West Coast Choppers

              Comment


              • #8
                Originally posted by StevenTN
                ...Admin CP >> Styles & Templates >> Style Manager >> <Template you use> >> StyleVars >> Code Block Width (Pixels)

                It says for pixels only, but I have it set as a percentage (95%) just fine, which is great because I have users who can choose between the legacy and the new postbit.
                Nice one, that's it. I have it set to 480px now with my forums 780 wide and legacy postbit, fits well. Using % causes it to mess up in IE.

                Comment


                • #9
                  Dont think you can use a percentage in that box (notice it says pixels) if you want to function like 100% use auto.

                  Comment


                  • #10
                    I tested it in all of my browsers (IE included), all of the postbit styles, no problem that I can see. But, I don't want it 100% either.
                    Proud Admin of http://www.thrillnetwork.com/
                    Finally live with vB4... I will say it's a pain in the bucket compared to what we're used to working with (using free CMS software no less).
                    "If it doesn't fit, beat it with a hammer until it does"
                    - Jesse James, West Coast Choppers

                    Comment


                    • #11
                      Hi,

                      How can I set the code tag to have horizental scroll? like the code in this forum?!

                      Comment


                      • #12
                        Originally posted by ehsan
                        Hi,

                        How can I set the code tag to have horizental scroll? like the code in this forum?!
                        it you set a fixed pixel width for the codeblock, it will auto-scroll as needed.


                        as StevenTN said: Admin CP >> Styles & Templates >> Style Manager >> <Template you use> >> StyleVars >> Code Block Width (Pixels)

                        Comment


                        • #13
                          Thanks to Vigile,

                          I just forgot to update the templates and revert to the latest version after upgrading from RC to Gold ,

                          have fun

                          Comment

                          Related Topics

                          Collapse

                          Working...
                          X
                          😀
                          🥰
                          🤢
                          😎
                          😡
                          👍
                          👎