Results 1 to 4 of 4

Thread: Random news in gAjax RSS Feeds Displayer

  1. #1
    Join Date
    Aug 2008
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Random news in gAjax RSS Feeds Displayer

    1) Script Title: gAjax RSS Feeds Displayer

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...sdisplayer.htm

    3) Describe problem: I'd like to have my news displayed randomly (instead of sort by date, label or name), is there any way to do that?

    Thank you,

  2. #2
    Join Date
    Aug 2008
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    May I give it a bump? :P

    Anyone has solution yet?

  3. #3
    Join Date
    Aug 2004
    Posts
    9,890
    Thanks
    3
    Thanked 964 Times in 953 Posts
    Blog Entries
    15

    Default

    Sure, try the attached modified .js file, which adds an additional sort string of "random", such as:

    Code:
    <script type="text/javascript">
    
    var cssfeed=new gfeedfetcher("example1", "example1class", "")
    cssfeed.addFeed("CSS Drive", "http://www.cssdrive.com/index.php/news/rss_2.0/") //Specify "label" plus URL to RSS feed
    cssfeed.displayoptions("date") //show the specified additional fields
    cssfeed.setentrycontainer("li") //Display each entry as a list (li element)
    cssfeed.filterfeed(10, "random") //Show 10 entries, sort by random
    cssfeed.init() //Always call this last
    
    </script>
    DD Admin

  4. The Following User Says Thank You to ddadmin For This Useful Post:

    khicon (08-08-2008)

  5. #4
    Join Date
    Aug 2008
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Thank you!
    It works like charm.

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
  •