September 16, 2009

How To Host Javascript Or .js files on Blogger Itself


How To Host Javascript Or .js files on Blogger, yes as blogger supports javascript which makes blogger support all the possible hacks in this platform, but the problem we bloggers face in using this is , where to host this javascript on blogger.As blogger doesn't provide any source to host javascript for blog like it has provided picasa for images.As of before we all were using googlepages to upload the .js files but google closed this service and switched to google sites.As still we can upload these .js files to google sites but just upload it with file extension .txt instead of .js and it start working.

But still,we can face any problem in future with it.The best solution is to have paid server to host your files for unlimited bandwidth, but bloggers using this free platform dont like spending on it.



I also provided you with the list of some servers to upload your javascript files but the problem was bandwidth which was very less.

So i will provide you the best solution to host your javascript on blogger itself and enjoy unlimited bandwidth.

Now just see the below codes.


<script src='http://Your-Script-Url/file.js' type='text/javascript'/>


Whenever you are trying to implement some hack making use of javascript you would have mostly been asked to download the .js file and upload to your own server,get its url and then replace it with red link in above codes shown above,and then place the whole above codes in blogger html before closing of head tag.The Problem we all face is getting an free server with unlimited bandwidth to host these javascripts.

So why don't we upload these javascripts to blogger itself.Just what you have to do is,whenever you are asked to do this kind of above stuff while implementing any hack.

Just use below code in place of above one i showed you.


<script type='text/javascript'>
//<![CDATA[
<--Paste all code here from .js file -->
//]]>
</script>


Just in place of red line in above code what you have to do is just open the .js file (which you are asked to download or upload to your own server) in notepad or on your browser , copy its code and paste it in place of above red line.And your javascript codes are now ready which are now hosted on blogger itself instead of hosting to third party server.

Now you will face no bandwidth problems.If you still have any problem related to this tutorial just leave your comments.

September 10, 2009

Read More Function Now Finally Made Available By Blogger Team


Finally blogger has launched its read more function in post editor over which the blogger team was working from few months as it was the most demanded feature by all the bloggers.And its just easy to add it in your blog posts while writing.Just keep writing the post in your editor as you do and just insert jumpbrek into it i.e read more function by hitting jumbbreak button provided by updated post editor in blogger or editor in draft.blogger or just go to settings tab >> Select post editor and use update editor to use new features of it.


Really this updated editor too has been loaded with many features,if you not using it just sart using it for sure.And on how exactly to use this read more function in blogger posts given by blogger you can visit post by bloggerindraft blog which is explained very clearly.

September 09, 2009

How Auto Adjust Images Size In Blogger Posts


How Auto Adjust Images Size In Blogger Posts,yes friends many of us would be daily posting some images in there blogger posts or would have photo blogs and would be tired of giving the width and height to there post images again and again to adjust and look good in there blogs.And dont they think when they will switch to new template the width and height assigned to images in post can create problems for them.And many of blogs would be facing problems if they post images with width longer than post section and image would overlap the sidebar and if not overlapping then only part of the image in post section will be visible rest part hidden.So i will be telling you on how to auto adjust images size in blogger posts to suit your blog needs.

Now Please look at the pictures carefully to know what i am exactly talking about.

Suppose you have post section of width 500px and you post a picture of width 800px in the post without defining any width and height to it.Note if you uploading through blogger editor it automatically define width and height to image so will never face error in that.

The image would appear in post like below two methods.

1) As image width was 800px,Image width get shortened and will show up in post upto 500 px and rest 300px will be hidden.



2) Full Image is shown but overlap the sidebar.



But the proper way the image should be shown in blogger post should be like below.



So to make it correct i am making you learn this css property for your blog,if you are facing any of these problems.

As say you have an blog and want to show images of width equal to post section i.e you have post section of width 500px and you want to show images to autoadjust to that size in your post.For doing that just go to blogger Layout >> Edit/Html and add the below codes before ]]></b:skin> tag :-


.post img {
max-width:500px;
max-height:500px;
min-width:200px;
min-height:200px;
padding : 10px;
clear: both;
}



Just adjust the properties min-width,min-height and max-width and max-height.As after using above codes now in your post the image width and height will never get less than 200px and not more than 500px.So image size will always lie between 200-500px.If image size is less than 200px it will auto adjust to 200px and if more than 500px it will autoadjust to 500px.

Now if you wanna use all images in your posts of same height and width i.e mostly used by all photo blogs to show of all the images of same sizes.You can use below codes.


.post img {
width:500px;
height:400px;
padding:10px;
}


Now all the images of any size in post will appear to auto adjust to size of width 500px and height 400px.

**Note:- If not working properly , there might be image property defined in your template,just find for it and check it.Find for .post img tag to check it.

September 05, 2009

How Change Width And Height Of Blogger Comment Form


How To Change The Width And Height Of Comment form in blogger.As you would have seen some using wide comment form and some using small comment from.As there are no much options in blogger to make changes in the blogger comments form but still there are some alterations like we can make,to alter its width and height.As blogger comment system is not one of the best comment system and blogger team need great modifications to be done in it to make it better and useful for readers.

Some comment system hacks you can use like are highlight blog author comments and numbering of blogger comments.The must read on hack is how making your blogger comment system seo.



Now lets continue on our tutorial on how to change the width of comment form.Just GO To Blogger Layout >> Edit/Html >> Expand Widgets >> Press Ctrl+ F >> Search For Below Codes.


<iframe allowtransparency='true' class='blogger-iframe-colorize' frameborder='0' height='275' id='comment-editor' scrolling='auto' src='' width='100%'/>


Just now edit the value of codes in red that is width and height of blogger comment form.Just increase or decrease the values of width and height properties to make it alter.I am sure you will be going to love this tutorial.Best of luck!!

September 04, 2009

Blogger Template | Portfolio Press


Portfolio Press a new blogger template i am going to release today.I like the simplicity of this template.Its good for readers who likes the simple dark background template with beauty in it.The theme has been designed by blog oh! blog who really gives nice wordpress themes.The speciality of the template is that it has a great Vertical navigational menu with search box.As the Layout is very simple.I am damn sure you will love this blogger template.As i have succesfully converted this theme it into blogger template.Now lets show you the template.








Features Of The Template



  • Fixed Width Template

  • Two Column Blogger Template

  • Left Sidebar

  • Dark Background

  • Vertical Menu Links

  • Compatible With Mozilla, Chrome and IE7

  • Rss Feed Ready

  • Search Box Ready

  • Beautiful Comment System




Portfolio Press Template Installation


I request you to Please Back Up your blogger template and all blogger widgets to your desktop or just copy paste all sidebar widgets codes to notepad and save to your desktop for further use in this template.

1) Header Image And Description:-To change the header image and description.Just go to Blogger Layout > Edit html and find for logo.gif image.Just replace this image with your header image and save it.

Now find for below codes:-


<div class='description'>Just Another Blogger Template</div>


And change the above red text with your blog descrpition.

2) Menu Links:-To Edit the menu links.Just Go To Blogger Edit html.

Just find below codes :-

<div class='page_item'>
<ul>
<div class='current_page_item'><li><a href='/'>Home</a></li></div>
<li><a href='#'>Edit Rss</a></li>
<li><a href='#'>Edit Comments</a></li>
</ul>
</div>


Now just keep on editing the # with your links and red text with linking text to your link.

Donate If You Like The Work


If You Really liked my work and want encourage me to convert more Professional wordpress themes to blogger templates for Free, Then please help us by donating something you feel for this design by using paypal button in my sidebar.

September 02, 2009

Table Of Contents Widget For Blogger


Table Of Contents Widget For Blogger,as every blogger wants to create a table of content page or archive page like in wordpress blogs.And since from time many widgets have been provided by many great bloggers and working great.So i will review all the table of contents widget available till now.The widgets are provide by many great bloggers like amanda from bloggerbuster, abu-farhan from abu-farhan.com, Hans from beautifulbeta , vin from blogdoctor.me and last one is adding the posts manually side by side in post.All these widget are great and any one of will suit your blog needs for sure.




First Table Of Content Widget

So First table of content widget was given by hans from beautifulbeta.blogspot.com.He gave us this widget 2 years ago and he made look this widget look like table.I too was using this widget but with time i switched to new table of contents.If you want to get this widget you can get it from here at beautiful.blogspot.com.

But as there seems some problems in implementing that,so i am also holding an tutorial for it in the way i used it.

Just download this script first.

Simply go to your Blogger dashboard and create a new post. Using the tabs at the top, switch over to the "Edit HTML" section of the post editor (if you do not usually use this function), then paste the following section of code into the content section:-


<div id="toc"></div><span style="font-size:80;"></span><script src="http://Your-Script_url/tableofcontents.js"></script><br /><script src="http://Your-Blog_url/feeds/posts/default?alt=json-in-script&max-results=999&callback=loadtoc"></script><br /><script type="text/javascript">showToc();</script>


Just replace the above codes in red with the script url and your blog url.And Publish Your Post.

Now to make it look great and look like an table just add this css in your blogger html.Just go to blogger layout >> edit/Html and place the below css before the ]]></b:skin> tag.


#toc {
border: 2px solid #C3D9FF;
background: #ffffff;
padding: 5px;
width:500px;
margin:10px 0 20px 0;
}
.toc-header-col1, .toc-header-col2, .toc-header-col3 {
background: #3D81EE;
color: #5d5d54;
padding: 5px 5px 5px 5px;
width: 300px;
}
.toc-header-col1 {
width:300px;
}
.toc-header-col2 {
width:75px;
}
.toc-header-col3 {
width:125px;
}
.toc-header-col1 a:link, .toc-header-col1 a:visited, .toc-header-col2 a:link, .toc-header-col2 a:visited, .toc-header-col3 a:link, .toc-header-col3 a:visited {
font-size:90%;
color: #404040;
text-decoration:none;
}
.toc-header-col1 a:hover, .toc-header-col2 a:hover, .toc-header-col3 a:hover {
font-size:90%;
text-decoration:underline;
}

.toc-entry-col1, .toc-entry-col2, .toc-entry-col3 {
padding-left: 5px;
font-size:90%;
}

.toc-entry-col1 a, .toc-entry-col2 a, .toc-entry-col3 a {
text-decoration: none;
}





Second Table Of Content Widget

Second Way the users adopted to display the table of content widget was to make seperate post with title table of contents and keep on adding and editing the post with title of posts and linking them to post urls manually.This is as simple process as everybody can do it himself.Demo of it can be checked on these two posts Post1 And Post2.




Third Table Of Content Widget

This widget is given by amanda.He has created the widget using google feed control.In this widget you can display 100 posts from any specified label or category you want in a single post and is also very easy to add.

Just how to add this widget.First go and Generate a Google AJAX API key for your site, and copy this long string to your clipboard (or your favourite text editor) for later use.

Simply go to your Blogger dashboard and create a new post. Using the tabs at the top, switch over to the "Edit HTML" section of the post editor (if you do not usually use this function), then paste the following section of code into the content section:-


<style type="text/css">
/**
* Suppress everything except for title
*/
#feedControl .gf-snippet,
#feedControl .gf-author,
#feedControl .gf-spacer,
#feedControl .gf-relativePublishedDate {
display : none;
}
</style>
<script type="text/javascript" src="http://www.google.com/jsapi?key=YOUR_API_KEY"></script>
<script type="text/javascript">
/*
* How to use the Feed Control to grab, parse and display feeds.
*/

google.load("feeds", "1");

function OnLoad() {
// Create a feed control
var feedControl = new google.feeds.FeedControl();

// Add blogger label feeds.
feedControl.addFeed("http://URL-OF-YOUR-LABEL-FEED?max-results=100", "TITLE-OF-YOUR-LABEL");
feedControl.addFeed("http://URL-OF-YOUR-LABEL-FEED?max-results=100", "TITLE-OF-YOUR-LABEL");
feedControl.addFeed("http://URL-OF-YOUR-LABEL-FEED?max-results=100", "TITLE-OF-YOUR-LABEL");
feedControl.addFeed("http://URL-OF-YOUR-LABEL-FEED?max-results=100", "TITLE-OF-YOUR-LABEL");
feedControl.addFeed("http://URL-OF-YOUR-LABEL-FEED?max-results=100", "TITLE-OF-YOUR-LABEL");
feedControl.addFeed("http://URL-OF-YOUR-LABEL-FEED?max-results=100", "TITLE-OF-YOUR-LABEL");
feedControl.addFeed("http://URL-OF-YOUR-LABEL-FEED?max-results=100", "TITLE-OF-YOUR-LABEL");
feedControl.addFeed("http://URL-OF-YOUR-LABEL-FEED?max-results=100", "TITLE-OF-YOUR-LABEL");

feedControl.setNumEntries(-1);

// Draw it.
feedControl.draw(document.getElementById("content"));
}

google.setOnLoadCallback(OnLoad);
</script>
<div id="content">
Loading, please wait...</div>


Just Edit the Red code with the api key which you copied to notepad after signing up here.

Now edit the blue codes with the lable feed url and green links with title of categories.
If you dont know about how to get label feeds you can read it here.

Above codes consist of 8 labels to add more keep on repeating this line of code in above script.

feedControl.addFeed("http://URL-OF-YOUR-LABEL-FEED?max-results=100", "TITLE-OF-YOUR-LABEL");


If still you have any problem in this widget you can read on complete tutorial here by amanda.As she has explained all Troubleshoting and many things like on how to show more than 100 posts in one label if you had more than 100 posts in onelabel.

Fourth Table Of Content Widget

Now this is also the best widget given by abufarhan.Just what you have to do,to place this widget is just create a new post and post two line of codes and publish it.
So simple.Just first download this script.

And below are the codes you have to place in new post and publish it.


<script style="text/javascript" src="http://Your-Upload-Script-Url/blogtoc-min.js"></script>
<script src="http://Your-Blog-url/feeds/posts/default?max-results=9999&alt=json-in-script&callback=loadtoc"></script>


Just change the codes in red with your blog url and the script url you uploaded to your server.

As the loading of table of widgets is fast but it will keep on increasing with increase of posts in labels.




Fifth Table Of Content Widget

This method uses the AJAX Dynamic Feed Control from Google to show any number of posts from any number of your blogs in one place and cycles through each post title to show a preview at the top.This widget is given by blogdoctor.

Just download this script and upload to your server.

First login at Blogger.com and click Settings link on Dashboard. Then click Site Feed subtab. Click drop down arrow for Allow Blog Feeds and choose the Short option. Save Settings.

Next click Layout tab and on the Page Elements subtab click the Add Page Elements link. Choose Html/Javascript option in popup window. In Contents paste the following code :


<!-- ++Begin Dynamic Feed Wizard Generated Code++ -->
<!--
// Created with a Google AJAX Search and Feed Wizard
// http://code.google.com/apis/ajaxsearch/wizards.html
-->

<!--
// The Following div element will end up holding the actual feed control.
// You can place this anywhere on your page.
-->
<div id="feed-control">
<span style="margin:10px;padding:4px;">Loading...</span>
</div>

<!-- Google Ajax Api
-->
<script src="http://www.google.com/jsapi?key=<<INSERT KEY>>"
type="text/javascript"></script>

<!-- Dynamic Feed Control and Stylesheet -->
<script src="http://Your-Script-Url/gfdynamicfeedcontrol.js"
type="text/javascript"></script>
<style type="text/css">
@import url("http://www.google.com/uds/solutions/dynamicfeed/gfdynamicfeedcontrol.css");
</style>

<script type="text/javascript">
function LoadDynamicFeedControl() {
var feeds = [
{title: 'Table of Contents',
url: 'http://MYBLOG.blogspot.com/atom.xml?redirect=false&start-index=1&max-results=999'
}];
var options = {
stacked : true,
horizontal : false,
title : "BLOG_TITLE."
}

new GFdynamicFeedControl(feeds, 'feed-control', options);
}
// Load the feeds API and set the onload callback.
google.load('feeds', '1');
google.setOnLoadCallback(LoadDynamicFeedControl);
</script>

<!-- ++End Dynamic Feed Control Wizard Generated Code++ -->


Just change above the codes in red with the the Api key , Blog Title and Your Blog url and the script url you uploaded to your server.
Just get api key by signing up here signing up here.




Now Just what you have to do is just select the widget which satisfy your needs and use it in your blog for showing all your posts.Best Of Luck !!!!!

TEXT ME ANY QUERY

 

Copyright 2009 All Rights Reserved Revolution Two Church theme by HackkingAday