Results 1 to 4 of 4

Thread: gAjax RSS Feeds Displayer (multiple feeds)

  1. #1
    Join Date
    Jan 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default gAjax RSS Feeds Displayer (multiple feeds)

    1) Script Title: gAjax RSS Feeds Displayer (hosted)

    2) Script URL (on DD):

    http://www.dynamicdrive.com/dynamici...sdisplayer.htm

    3) Describe problem: I want to display more feeds in one script.


    Hi there DD people, i want to ask if it's posible to put more then 2 feeds (30) in "example 2" , 6 entries.
    When i put more then 2 feeds in the script, it's giving me more then 6 entries!

    I really like the script but i want to put 30 feeds in that same script and it's not working..

    Please help me out, i doing something wrong, but don't now what it is..

  2. #2
    Join Date
    Aug 2004
    Posts
    9,903
    Thanks
    3
    Thanked 967 Times in 955 Posts
    Blog Entries
    15

    Default

    Hmm you'll need to clarify. You can have as many feeds as you wish in each script instance, with each one added using the line:

    Code:
    scriptinstance.addFeed("My Feed Title", "url_to_feed")
    Then, the line:

    Code:
    scriptinstance.filterfeed(6, "label") //Show 6 entries, sort by label
    controls the total number of items to show, not for each feed, but all feeds added together. If you have 5 feeds for example and entered a value of 30, roughly 6 entries per feed will be shown, together adding up to 30.

  3. #3
    Join Date
    Jan 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I clarify myself (sorry for the bad english):

    I have about 30 different feeds, only i want to show 6 entries with the newest updates on top:

    Something like this:

    feed-01 blah,blah,blah july 2 20:15 pm
    feed-21 blah,blah,blah july 2 20:14 pm
    feed-17 blah,blah,blah july 2 20:13 pm
    feed-14 blah,blah,blah july 2 20:12 pm
    feed-03 blah,blah,blah july 2 20:10 pm
    feed-28 blah,blah,blah july 2 20:09 pm

    Like a sort of aggregator, i hope you understand, thanks anyway.

  4. #4
    Join Date
    Aug 2004
    Posts
    9,903
    Thanks
    3
    Thanked 967 Times in 955 Posts
    Blog Entries
    15

    Default

    Hmm try adding the 30 feeds using addFeed() as normal, then for the filterfeed() function, do something like:

    Code:
    cssfeed.filterfeed(6, "date") //Show 10 entries, sort by date
    Not sure if this will work, but worth a shot.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •