When using JavaScript in my own Blogger templates and customizations, I prefer to host the required scripts using Google Code's Project Hosting. In this post, I'll explain the methods and best practises for using Google Code to serve JavaScripts for your own Blogger tweaks.
First things first!
Project Hosting on Google Code is intended for collaborative development on open source projects. Rather than being used as a substitute for regular web hosting, it is best suited to hosting shared projects.All projects hosted on Google Code are Open Source, and are available for anyone to view or download. Various licenses are used for files served by Project Hosting including:
- GNU General Public License (GPL)
- MIT License
- Eclipse Public License
- Mozilla Public License
- Apache License 2.0
Search for scripts before uploading your own
Before creating your own project on Google Code for the purpose of hosting files, be sure to check if the script has already been made available by another project.You can use the Google Code search page to check if the script you'd like to use is already hosted:
The most productive method is to search for the file name of the script you need. For example, when searching for the minified jQuery library, I'd use the term "jquery.min.js".
If the file you need to link to is already available, you can link to this in your template (or gadget code) as detailed below.
Hosting your own files with Google Code
If you find the file you require is not available, or would like to use Google Code to host your own files, you'll need to create a new project.Fill in all required details on the Create a Project page and choose an appropriate Public Domain license from the drop-down list. All files you consequently upload to your project will adopt this same license.
The name chosen for your project will become part of the URL for your project's home page (e.g. http://code.google.com/p/NAME-OF-PROJECT) and should contain no spaces.
You can also choose to add labels to help others find your project.
To upload files to your new Google Code hosted project, click the Downloads tab, then use the New Download link:
On the next page, you'll be able to add a one-line description of your file, plus a detailed description for information:
Upload your file using the Browse button.
Labels on this page affect how your download is presented on the main project page. Place your cursor in one of the Label boxes to be presented with a list of choices and select any which are applicable (or none if you prefer):
Finally, click the Submit File button to upload your file to Google code.
Linking to files hosted by Google Code
Once you've uploaded a file to Google Code (or have found a file to which you'd like to link) you'll need to locate it's direct URL.In most cases you'll find the script you need is included in a list of downloads on its project page, like this:
When you click the linked title of the file you want to use, you'll be taken to it's dedicated page which includes details of the file and the all-important direct file link:
You'll need to right click this link and choose to copy the link location. Then you'll be able to paste the URL which links directly to the file for use in your own Blogger projects.
Of course, the way you need to use this direct link will depend entirely on how you need to use the hosted file.
For example, when implementing a jQuery slideshow to your Blogger template, you'll need to replace the URLs of script files placed in the <head> section of your Blogger template. If linking to a PDF hosted on Google code, you can simply paste it in place of the URL in the link tags.
In future tutorials posted here on Blogger Buster, I'll be referring to this method often as from now on I'll be using Google Code as my main repository for scripts and Blogger projects.
Blogger Buster Tools on Google Code
Back in 2009 I launched the Blogger Buster Tools project on Google Code to act as a repository for scripts and files relevant to Blogger-based development.This project now includes the vast majority of files used for interactive JavaScript features (e.g. slideshows and galleries); Blogger Gadgets, free Blogger templates and eBooks.
Did you find this post useful?
Rather than focusing on a customization tutorial in this article, I've tried to offer an overview of using Google Code for hosting files relevant to your own Blogger template tweaks.I hope you've found this post useful! Please feel free to share your thoughts in the comments section below.













32 Comments:
Excellent, ive been using it for a while now, and im sure you are among the first to suggest this site for blogger users instead of Google Pages xD
Good day Amanda!
BTW any updates for the Nexus 5 Template? Nexus 6 maybe?
xD
Great post, i have never heard of Google Code!!!
Thank you very much and happy new year!!!
i was banned from google code for doing exactly that, its meant for open source software. if you dont have many visits to your blog they wont notice it.
www.takemypiconline.blogspot.com
I will give it a try. Thanks for sharing, at least this will be better than hosting the scripts on external websites. OgbongeBlog-Secret Infos rocks...courtesy your tutorials. Happy new Year!
http://www.3gdatacardmodem.in/
Google Code is for Open Source projects and not for your personal file storage. If you do so, it will be like killing the system. The more files you put it, google will be forced to use some automated methods to eliminate such personal stuff and this might harm the real open source projects.
Great post! I start my blog 2 months ago and this is really helpful for me and I’m newbies on the road.... Thank you…
many thanx for this great information
This is the one that i use in my Porn Blog
The article is absolutely fantastic! Lots of great information and inspiration, both of which we all need!b Keep 'em coming... you all do such a great job at such Concepts... can't tell you how much I, for one appreciate all you do!
Business Loan
Thnx for sharing, but i'm using wordpress, i'll definitely share it with my friends using blogger.
sex
porn
free porn
porn
free sex
free sex
porno
escort bayan
Good post. Very impressive. Thanks for sharing.
Thanks for sharing this post.. It helps a lot.
How can i upload and host html file?How can i upload and host html file?
I do like the manner in which you have framed this problem and it does indeed give me some fodder for consideration. However, through what I have personally seen, I simply wish when the commentary pile on that people today stay on point and in no way embark upon a soap box of some other news of the day. Still, thank you for this superb piece and although I can not concur with the idea in totality, I respect the point of view.Love sms | High blood Pressure Symptoms | EECP PakistanPakistan Video | Blackhead Remover
thanks for the tips, i've done something similar with picasa and hosting gifs
You can use http://www.cdnjs.com/ (coming soon cdncsss.com) or dropbox.com to host your Js & CSS files. I dont agree with abusing googlecode, it's for opensource project, keep it that way.
Nice post.Thank you for taking the time to publish this information very useful!
The author has written an excellent article. You have made your point and there is not much to argue about. It is like the following universal truth that you can not argue with: No truth is universal, everything has its exception. Thanks for the info penis enlargement penis enlargement pills VigRX Plus
Great synopsis of commenting and how to very well written and all that link love you just poured out, great post, if this was a forum you would have a sticky on this.
english to spanish worksheets for kids
learning spanish language
learn spanish for kids dvd
learn spanish on dvd
spanish for kids
home school spanish
learning spanish at home
spanish for beginners
Learn Spanish for Kids and Family
learning spanish at home
"To be specific use Google Sites. Why Google Sites? Because it’s free first and foremost (that’s why you join Blogger in the first place right?) and it’s a part of Google big family, so you don’t have to sign up or anything.
But Google Sites, like most free host doesn’t accept javascripts. Luckily there is a workaround -change the javascript file into a text file, by changing the file extension from .js to .txt.
Note: The external script must not contain the tim viec tags.
After uploading the file to Google Sites, get the direct link to the file and use it in the code below (notice the .txt file extension)"
There are different methods one can use to customize and unfortunately, Blogger would only allow to upload images and video at the mean time. Using Google code is undoubtedly one of the best options when using JavaScript for templates and customizations. Now thanks for the detailed steps. Appreciate it!
This is a nice blog. I mean it. You have so much knowledge about this issue, and so much passion. You also know how to make people rally behind it, obviously from the responses
This is waay better than Google pages. I love how this will be really helpful especially to the newbies.
The article in your blog reminds me some old memory .That is good .It gives me happy .I think we will have a harmonious talk.Do you agree?
in-home care
I have enjoyed this post. Its an informative topic. It help me very much to solve some problems. Its opportunity are so fantastic and working style so speedy. I think it may be help all of you. Thanks a lot for enjoying this beauty blog with me. I am appreciating it very much! Looking forward to another great blog. Good luck to the author! all the best!
Congratulations for making the summit. I bet this such a wonderful feeling to all the participants, specially to you guys. With all the effort and sweats you have shed...thanks
for the sharing.
wedding dresses 2012
wedding dresses
beach wedding dresses
bridesmaid dresses
flower girl dresses
prom dresses
evening dresses
homecoming dresses
cocktail dresses
quinceanera dresses
little black dresses
I have been looking looking around for this kind of information. Will you post some more in future? I'll be grateful if you will.
cheap evening dresses
this post is really amazing!
uggs boots Error, pink Gusui body! "Li Jue Baotoushucuan back to see Dong Zhuo, Sun Jian said so rude. Zhuo anger, asked Ru. Confucian saying:" temperature TYbhLQ
uggs boots for women Said Sun Jian cited four will be closed until the front. The four will be? - First, the right soil Eun Peking man, surnamed Cheng, common name, the word Germany
baby uggs boots Blues defeat the news spread throughout the military, which also makes the company commander and detained Xu Meng and others are little heard of squad leader.
uggs boots australia died Daojian below! "Zhongzhu Hou said:" Man sets so that oath, presumably without it. www.hotbootsshop.com
Post a Comment