1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

My Autoblog Script

Discussion in 'Blogging' started by Jackalakus, Sep 16, 2009.

  1. Jackalakus

    Jackalakus Junior Member

    Joined:
    May 19, 2009
    Messages:
    192
    Likes Received:
    66
    Not sure if many of you already have this.. Probably do.. But I'm throwing it down anyway just in case.

    This is what I use on my WP blogs.. This code goes in the header.php BEFORE the </head> tag. You will need feedwordpress plugin. You can use yahoo pipes as your feed. but it's easier just to goto news.g000gle.c0m and pull the feed from there and add it into your syndication. Any-who here ya' are.. I hope it helps.
    Code:
    <!-- News Bar Code and Stylesheet -->
          <script type="text/javascript">
            window._uds_nbw_donotrepair = true;
          </script>
          <script src="[URL]http://www.google.com/uds/solutions/newsbar/gsnewsbar.js?mode=new[/URL]"
            type="text/javascript"></script>
          <style type="text/css">
            @import url("[URL]http://www.google.com/uds/solutions/newsbar/gsnewsbar.css[/URL]");
          </style>
          <script type="text/javascript">
            function LoadNewsBar() {
              var newsBar;
              var options = {
                largeResultSet : true,
                title : "<?php the_title(); ?> In the news",
                horizontal : false,
                autoExecuteList : {
                  executeList : ["<?php the_title(); ?>"]
                }
              }
              newsBar = new GSnewsBar(document.getElementById("newsBar-bar"), options);
            }
            // arrange for this function to be called during body.onload
            // event processing
            GSearch.setOnLoadCallback(LoadNewsBar);
          </script>
        <!-- ++End News Bar Wizard Generated Code++ -->
    
     
    • Thanks Thanks x 4
  2. waz11

    waz11 Junior Member

    Joined:
    Dec 24, 2008
    Messages:
    108
    Likes Received:
    18
    Looks good - thanks for sharing