PDA

View Full Version : How to mix multiple feeds in a random order



TennisWill
12-04-2012, 12:26 AM
1) Script Title: gAjax RSS Feeds Displayer v2.0 (hosted)

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex18/gajaxrssdisplayer.htm

3) Describe problem:

Is there a way to mix up the display order of multiple feeds? Currently Feed A will display the first 10 items (1-10) sorted by date; then Feed B will display 10 items (11-20) by date; etc.

It would be nice to blend 5 or 10 unique feeds together all in a random order sorted by date.

Thanks for any help.

Beverleyh
12-04-2012, 02:24 PM
This code looks promising: http://www.widgetsandburritos.com/merge-rss-feeds-php-cache/

You should them be able to use "http://mywebsite.com/path/to/feed.php" in the RSS Feeds Displayer "cssfeed.addFeed()" array.

You could also try this: http://www.webmaster-source.com/2007/08/06/merging-rss-feeds-with-simplepie/

ddadmin
12-04-2012, 06:17 PM
This is how the script should behave by default already- if you setresults to be shown by date, the script will always order the entries based solely on their published dates, irrespective of the entry's source. Below is a screenshot of this in action (notice the BBC entries don't appear side by side):

http://img839.imageshack.us/img839/7208/screengo.gif

TennisWill
12-04-2012, 08:48 PM
Thank you for the replies.

vwphillips
12-05-2012, 04:22 PM
sort by date is not random

see

http://www.vicsjavascripts.org.uk/AASlideBounce/dd.htm