My Autoblog Script

Jackalakus

Junior Member
Joined
May 19, 2009
Messages
192
Reaction score
58
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++ -->
 
Back
Top