It it possible somehow to make the codeboxes (and maybe other boxes, like quotes??) to fill more to the right?
It is a lot of free space on a widescreen monitor, and the codes are easier to read if we don't need to scroll.
Printable View
It it possible somehow to make the codeboxes (and maybe other boxes, like quotes??) to fill more to the right?
It is a lot of free space on a widescreen monitor, and the codes are easier to read if we don't need to scroll.
I'm with you on this request, let's just hope the webmasters here will take appropriate action. =)
Hey,
Sounds like a good idea to me.
All depends how much of a change is required though, and whether it would need to be repeated on each release of vBulletion.
Gary
unfortunately no. We've tried it and people with smaller resolutions complained.
Hey,
Is there no way to have it's width as a percentage, rather than a fixed width? i.e. dynamic based on the width of the page?
What control do you have over this so as to not to add something that has to get repeated each time there is an upgrade?
Gary
To change it dynamically or make it a setting would require code changes to the underlying templates and code files. This makes upgrades difficult as the code is wiped out and requires to be reapplied. We rarely modify the code for this reason.
If you have Firefox, the following Geasemonkey script will set all the code blocks back to 100% for you:
Code:// ==UserScript==
// @name Fix Code Listing Length
// @namespace VBF
// @description Sets code listing lengths to 100%
// @include http://www.vbforums.com/showthread.php
// ==/UserScript==
//
//
var p, div
var pres = document.getElementsByTagName('pre');
for (x = 0; x < pres.length; x++)
{
p = pres[x];
if (p.className=='alt2') {
p.style.width = '100%';
}
}
var divs = document.getElementsByTagName('div');
for (x = 0; x < divs.length; x++)
{
div = divs[x];
if (div.className=='alt2') {
div.style.width = '100%';
}
}
You need one for showpost.php too. :)
@visualAd: Didn't work :(
Hey,
I am new to GreaseMonkey, didn't even know you could do things like this, but I couldn't get the above script to work for me either. What am I doing wrong?
Gary
Its always worked fine for me. :wave:
Make sure your include in greasemonkey includes a wildcard at the end of the URL.
http://www.vbforums.com/showthread.php*
No problem; I wish all of lifes problems were this easy to solve. :D