PDA

View Full Version : Code compression/storage problem?


Chris-777
Fri 4th Apr '08, 9:33am
On every version of vB save 3.7 RC1/2, I've been able to happily open up the files in my favorite editor and go to town, and it's always been properly tabbed with line breaks, like so:

http://www.sevenstring.org/chris/vbm_good.jpg

With 3.7, every download has yielded me files that open like this:

http://www.sevenstring.org/chris/vbm_bad.jpg

Am I doing something wrong, or is the code not archived with the proper breaks in it? As you can imagine the second format makes it rather hard to edit anything. It also comes out like this if I open the files on the server using emacs, or from my desktop before uploading using notepad.

Chris-777
Fri 4th Apr '08, 10:06am
Disregard, Answered at .org. I need to learn to RTFU-pdates. :D

Wayne Luke
Fri 4th Apr '08, 10:52am
Just for the record and others curious about this issue...

The javascript files in vBulletin 3.7.0 are now compressed when you download them by default. To get around this, select "More Download Options" and then set Download File to "Package - Uncompressed Javascript".

Pasqualis
Sat 26th Jul '08, 7:12pm
And what if I want to add some script to vbulletin_global.js? Do I download the uncompressed version and edit that one or can I add the script to the compressed version as well?

Wayne Luke
Sun 27th Jul '08, 2:02am
We recommend that you not edit the default files at all. However if you cannot add your custom Javascript to its own file included within the templates than you should use the uncompressed javascript files.

Pasqualis
Sun 27th Jul '08, 5:03pm
Ok, maybe you got a better solution for the following: On my website I use language flags to easily switch between different languages. For this I used this: http://www.vbulletin.org/forum/showpost.php?p=930649&postcount=4
This worked just fine in the last few years. :)
But ok, I now also rather don't touch the original files, so where else could I add that piece of javascript to make it work?

Thanks a lot in advance!

Wayne Luke
Mon 28th Jul '08, 1:01am
In its own file maybe called flags.js and include it in the headinclude template.

Pasqualis
Mon 28th Jul '08, 1:32pm
Thanks a lot, works fine too! :)