welcome to my space

Latest Entries
Mar 13

Code compression/storage problem?

  • 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.


  • 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.


  • 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!


  • Disregard, Answered at .org. I need to learn to RTFU-pdates. :D


  • 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?


  • 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".


  • In its own file maybe called flags.js and include it in the headinclude template.


  • Thanks a lot, works fine too! :)







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about Code compression/storage problem? , Please add it free.