Skip to main content

How to use Blogger and Google drive combination to build Download sites

Blogger and Google drive both are offered by Google. One is for blogging and other for cloud storage. Both are used by millions of people. Blogger gives way to share anything you have and Google drive gives the power of securely save any file and share them with others. So if we take the combination of these two we can create any type of download site.Today you learn, how to build download sites by using these two services of Google. Before Start-: Before creating a download site, first you need to choose one purpose of your site. In other words,which users will come to your site.You need to Choose the content type and collect the required data. e.g.if you want to offer free music you need to collect the music files you want to share via your blog. Let start by creating your blogger blog.As we all know you need a Google account to use all products of google. First, create a google account if you not have one.If you already have a Google account, follow this guide to create a b...

How to add list of posts to blogger page

How to add list of posts to blogger page

Blogger as we all know a very famous and useful blogging platform. It gives a chance to all to create reputation in internet world. Unlike other platform blogger is more reliable and easy to handle. We can create custom widget/gadgets for blogger by using simple html,css and javascript. Also its api requests is easy to learn. Today i discuss how to add list of posts to a blogger page by using simple javascript.

Add Coding
To do this simply follow these steps:
  1. Go to Blogger Dashboard
  2. In the pages tab,Click on new page button.
  3. How to add list of posts to blogger page
  4. Give a name to the page.
  5. Add the following code to it.
    <div><ul id="postList12"></ul></div>
    <script type="text/javascript">
    var startIndex = 1;
    var maxResults = 100;
    function sendQuery12()
    {
    var scpt = document.createElement("script");
    scpt.src = "/feeds/posts/summary?alt=json&callback=processPostList12&start-index=" + startIndex + "&max-results=" + maxResults;
    document.body.appendChild(scpt);
    }
    function processPostList12(root)
    {
    var elmt = document.getElementById("postList12");
    if (!elmt)
    return;
    var feed = root.feed;
    if (feed.entry.length > 0)
    {
    for (var i = 0; i < feed.entry.length; i++)
    {
    var entry = feed.entry[i];
    var title = entry.title.$t;
    for (var j = 0; j < entry.link.length; j++)
    {
    if (entry.link[j].rel == "alternate")
    {
    var url = entry.link[j].href;
    if (url && url.length > 0 && title && title.length > 0)
    {
    var liE = document.createElement("li");
    var a1E = document.createElement("a");
    a1E.href = url;
    a1E.textContent = title;
    liE.appendChild(a1E);
    elmt.appendChild(liE);
    }
    break;
    }
    }
    }
    if (feed.entry.length >= maxResults)
    {
    startIndex += maxResults;
    sendQuery12();
    }
    }
    }
    sendQuery12();
    </script>
    
  6. Now publish the page and see the magic.
It will produce below results-:
How to add list of posts to blogger page

You can make it beautiful by simply implementing css. As you can see in the above code we are using unordered list to format the results in listview. To customize list just apply css to unordered list. Add the css style tag in the starting of code. You can apply different kind of style.

Last Tips-:

Above script is working perfect as we tested. If you get any error feel free to tell us via comments. We are here to help you. Please don't forget to share this post.


Source

Comments

Popular posts from this blog

How to trim multiple images in Photoshop

Photoshop a great tool for photo editing.I love to use this tool.I am a beginner so sometimes i stuck in problems.Yesterday i want to trim multiple images and want to remove unwanted space.But not find a solution on internet.Suddenly i checked a forum named Stock Exchange and got a little bit instructions which is not cleared.I tried them but failed.After 3-4 times i got the success.And this post result of it. So How? To trim multiple images we use automatic batch.Automatic batch means we record the steps we done with one image and then applied to all images in a folder.It is very useful tool given by the Photoshop. Lets start-: Create a folder named "Trimed " or anything you like. Add all the images you want to trim in it. Now open the Photoshop. Go to Window->Actions It will add a small window in right of the Photoshop In the added Window Create a new folder under actions tab named it anything .(There are some small buttons in bottom of actions tab.Took your ...

Best Premium WordPress Theme

Best Premium Wordpress Theme-: There are thousands of free WordPress theme. You can use them if you have a WordPress blog. But free themes is not good for SEO and it also makes your site ugly. So you can use the premium themes but we carful from fraud and fake themes. Here are given some best and safe premium WordPress themes which makes your site optimized for search also makes your site beautiful. There are many premium themes but I recommended one and only the best and safe Thesis Theme Thesis the killer WordPress theme is the most used,highly recommended ,SEO friendly,responsible,beautiful and clean. It is used by thousand of websites. Many of them are very popular sites. This theme was create by DIYTHEMES which is one of most famous WordPress themes creater. You can start with basic plan and then of you want you can upgrade it. Price-: Basic - $87 Basic Plus - $164 Professional - $197 Click on image to see the demo and get this brilliant theme La...

Change Night Data Pack to Paytm Cash or Recharge

India top telecom company gives 5 Gb free night data pack for doing some simple tasks.So today i give a trick to change the this free night data pack to paytm money or recharge.Before start we know the advantages of this trick. Free of Cost Works for all Sim cards Night Packs Fast and easy Take little time . Let get started.First of all check if night data pack activated or not ended.This is important because if it is not activated or ended it can costs you.Then you can do following steps-: For Paytm Money-: For get paytm money in exchange of the night data pack you need a android device.Just take the android device in your hand and start do following-: Turn on the Internet Pack Now go to Apps to Earn Free Paytm Cash and Download all apps. Follow all steps as mention in above linked page to get paytm cash instantly After following complete instructions you can get approximately 100Rs paytm cash. Why Paytm? Paytm most trusted cashless wallet.You can use the paytm w...