|
-
Nov 5th, 2009, 12:05 PM
#1
Thread Starter
Fanatic Member
-
Nov 5th, 2009, 08:48 PM
#2
Re: Codebox width
I'm with you on this request, let's just hope the webmasters here will take appropriate action. =)
-
Nov 6th, 2009, 05:52 AM
#3
Re: Codebox width
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
-
Nov 6th, 2009, 10:19 AM
#4
Re: Codebox width
unfortunately no. We've tried it and people with smaller resolutions complained.
-
Nov 6th, 2009, 12:23 PM
#5
Re: Codebox width
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
-
Nov 6th, 2009, 02:11 PM
#6
Thread Starter
Fanatic Member
Re: Codebox width
 Originally Posted by gep13
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?
Yeah, I see that when we quote, the width changes dynamically. I guess it won't be a big deal to apply this to codebox when it works with quotes...
-
Nov 6th, 2009, 02:22 PM
#7
Re: Codebox width
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.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Nov 8th, 2009, 05:57 PM
#8
Re: Codebox width
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%';
}
}
-
Nov 8th, 2009, 06:30 PM
#9
Re: Codebox width
You need one for showpost.php too.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Nov 8th, 2009, 06:41 PM
#10
Thread Starter
Fanatic Member
Re: Codebox width
@visualAd: Didn't work
-
Nov 9th, 2009, 03:17 AM
#11
Re: Codebox width
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
-
Nov 9th, 2009, 03:19 AM
#12
-
Nov 9th, 2009, 03:24 AM
#13
Re: Codebox width
 Originally Posted by _powerade_
@visualAd: Didn't work 
Its always worked fine for me. 
Make sure your include in greasemonkey includes a wildcard at the end of the URL.
http://www.vbforums.com/showthread.php*
-
Nov 9th, 2009, 03:28 AM
#14
Re: Codebox width
 Originally Posted by visualAd
Ah, that was it!!
Thanks for that!!
Very helpful!
Gary
-
Nov 9th, 2009, 05:32 AM
#15
Thread Starter
Fanatic Member
Re: Codebox width
 Originally Posted by visualAd
It works now, thank you for your help visualAd. This will make my life a whole lot easier
-
Nov 9th, 2009, 07:05 AM
#16
Re: [RESOLVED] Codebox width
No problem; I wish all of lifes problems were this easy to solve.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|