Friday, 24 December 2010

Simplex Aggregator 2 - News aggregator for blogspot

In a post several months ago ,I showed you my template Simplex News Aggregator ,a template that I developed base on Google feed Api and a script from DynamicHTML .This template will get news from many source and show them as time order in separated categories . But that template is very simple ,both of design and function ,so in this post ,I want to show you  Simplex News Aggregator 2 ,a template that comes with news aggregator ,support blogging ,page ,and widget .


Live Demo Download


Install Instruction

1,Download template file .

2,Open template in a word editor .

3,To change logo ,find this code :
.logo a { color:#b24a35; background:url(http://img818.imageshack.us/img818/9282/logolb.png) no-repeat; }
and change the text in bold to your logo url .

4,Here is the code of menu navigation
<ul id="nav">
                 <li><a class='name' expr:href='data:blog.homepageUrl'>Home</a>
                     <ul>
                         <li><a title="Sub Pages 1" href="">Sub Pages 1</a></li>
                         <li><a title="Sub Page 3" href="">Sub Page 3</a></li>
                         <li><a title="Sub Page 4" href="">Sub Page 4</a></li>
                     </ul>
                 </li>
                 <li><a href="http://simplexnetwork.blogspot.com/search/label/blog">Blog</a></li>
                 
             </ul>
You can add link to your categories to this menu .

5,Code of header description  :
 <div class="clearfix" id="header-in">
             
             <p class="description">This is a network of news ,resources and tutorial ,feel free to browse them and if you want ,you can submit your news to us ,and we will be very pleased to show it out</p>
         </div>
change it to the text you want .

6,Here is the code of each news categories in home page :
<li>
                     <h3><img width="16" height="16" src="http://digg.com/favicon.ico"/> Technology News</h3>
                     <script type="text/javascript">
                         var newsfeed=new gfeedfetcher("list1")
                         newsfeed.addFeed("NYT", "http://www.nytimes.com/services/xml/rss/nyt/International.xml")
                         newsfeed.addFeed("Yahoo News", "http://rss.news.yahoo.com/rss/world")
                         newsfeed.filterfeed(5) //Show 5 entries, sort by date
                         newsfeed.init() //Always call this last
                     </script>   
                 </li>
               
I will explain this code line by line :
-<h3><img width="16" height="16" src="http://digg.com/favicon.ico"/> Technology News</h3>
  • http://digg.com/favicon.ico : Icon of news category.
  • Technology News : name of news category 
-  var newsfeed=new gfeedfetcher("list1")  List1 is the id of news category ,each id must be unique ,for example list1,list2,list3... if there are two categories with one ide ,there's nothing will be shown .

-    newsfeed.addFeed("NYT", "http://www.nytimes.com/services/xml/rss/nyt/International.xml")
      newsfeed.addFeed("Yahoo News", "http://rss.news.yahoo.com/rss/world")
 These two lines will add news from sources (NYT and Yahoo News) to the news category in homepage . if you want to add news from other sources ,you can apply this structure :
      newsfeed.addFeed("Name of news source", "RSS link of news source")

- newsfeed.filterfeed(5) //Show 5 entries, sort by date this line specify the number of entry showed is 5 . You can increase this number to show more or decrease for less .
That's the code for showing news from news sources into one category in homepage . By understanding what these lines mean ,I hope you can modify them as you want . You can refer to my post on Simplex News Aggregator old version for more detail because the code for showing news in these two template are the same

7,When you browse blog posts in  my live demo ,you will notice the sidebar in the right hand . Here is the code for this sidebar :
<div id="sidebar">
                 <div class="col">
                     <h3><span>Categories</span></h3>   
                     <ul>
                         <li>
                             <a href="http://simplexnetwork.blogspot.com">Blog</a>
                         </li>
                     </ul>
                 </div>
             </div>
you can add the categories ,links you want to this sidebar .

8,Now ,you can upload template to Blogger .  There are many places for widget in this template ,and you can add or remove your own widget as you want .

9,That's all for this template .If you familiar to template from SimplexDesign ,you will see that very easy to editing template and make it show as you want ,you can also refer to other templates for more.

I hope this template will be helpful to you .

Merry christmas 2010 to you all .

15 comments:

  1. great template but the download link is not working

    ReplyDelete
  2. @Amer : thanks for your suggestion . But I think it's a little hard for me . I think it's impossible for me . But I will try .
    @all : thanks for your support

    ReplyDelete
  3. thanx for template...
    I have problem with blogger after install this template...
    everytime to try some change in widget position the blogger cant save the change, no preview and give me this error : bX-tqkzgl

    any solution?

    ReplyDelete
  4. hi... i use your template...

    check plis http://hot-thread.blogspot.com or hotnews.web.id

    but i have some problem to add RSS , i want to add more column like http://zoom-aggregator-purple.blogspot.com

    can you make template like that. please create for me

    my email : rahmatwiradafitra@yahoo.com

    ReplyDelete
  5. how to add "related post"
    i cant find any code related to this template :(

    ReplyDelete
  6. i cant add ads on my header

    http://www.hotnews.web.id

    ReplyDelete
  7. yeah.. I am Noob.
    would you add the code for me?
    i'll email you the .XML

    please.. or you can publish the tutorial in this blog

    ReplyDelete
  8. @nhamngahanh ; yes, i have resend email to you

    ReplyDelete
  9. I have uploaded this template without modifications and I got the error message

    Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.
    XML error message: Content is not allowed in prolog.


    Is there any solution?

    ReplyDelete
  10. Thanks for your templates.

    I want to change the color of header (default is red), would you tell me, where is the code?

    Thanks

    ReplyDelete
  11. Dear nhamngahanh!
    I want to use this template for my blog but i want to change the Feeds to my Categories. Can you help me the code for the chages.
    Thank you.

    ReplyDelete
  12. hey dude ...first i wanna say really this template is awesome and it amazes me ,,,
    i have a few question if u cud help me with ,,,

    1- sometimes retrieving news is so slow ...how i can make it to retrieve the news from Rss

    2-how i can make thumbnails to get beside the title ..

    3- as soon as the user click on the title it makes the user leave my site..
    how i can add an "IFrame" on top of the new tab including an ad and a bar to make the user get back into my site again ..

    4- each column shows an exact number of news which i define in the HTML
    i wanna make it more flexible for the user to show more news ..its like a button "More.." or something like that ,,,

    lots of questions i know but i hope u answer me :) ...
    i'll subscibe on ur comments and will wait ur answer ,,thank u in advance

    ReplyDelete
  13. Thanks Admin, i will use this template :D

    ReplyDelete
  14. Plzz let me know how can i add sexy bookmarks in the blog section??

    ReplyDelete