View Full Version : Random news in gAjax RSS Feeds Displayer
khicon
08-07-2008, 02:39 AM
1) Script Title: gAjax RSS Feeds Displayer
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex18/gajaxrssdisplayer.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,
khicon
08-08-2008, 05:34 AM
May I give it a bump? :P
Anyone has solution yet?
ddadmin
08-08-2008, 06:44 AM
Sure, try the attached modified .js file, which adds an additional sort string of "random", such as:
<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>
khicon
08-08-2008, 11:52 AM
Thank you!
It works like charm. :D
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.