View Full Version : Advanced RSS ticker, limit feed items to display 10 only

07-15-2008, 09:14 PM
1) Script Title: Advanced RSS Ticker (Ajax invocation)

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/rsstickerajax/

3) Describe problem: Hi, can anyone help me to alter the code so the Ticker will only display the first 10 items of the RSS feed I am displaying.


07-16-2008, 03:11 AM
The number of items for each feed the script retrieves is controlled by LastRSS. Per their documentation (http://lastrss.oslab.net/doc), you'll want to call items_limit, by adding it to the PHP script in bridge.php:

// Create lastRSS object
$rss = new lastRSS;
$rss->cache_dir = 'cache'; //path to cache directory on your server from this script. Chmod 777!
$rss->date_format = 'M d, Y g:i:s A'; //date format of RSS item. See PHP date() function for possible input.

Untested, but should work.

07-16-2008, 06:08 AM
Yes that works perfectly. Thankyou very much:)