Results 1 to 3 of 3

Thread: Advanced RSS ticker, limit feed items to display 10 only

  1. #1
    Join Date
    Apr 2008
    Location
    Manchester: United Kingdom
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question Advanced RSS ticker, limit feed items to display 10 only

    1) Script Title: Advanced RSS Ticker (Ajax invocation)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...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.

    Thanks

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    The number of items for each feed the script retrieves is controlled by LastRSS. Per their documentation, you'll want to call items_limit, by adding it to the PHP script in bridge.php:

    Code:
    // 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.
    $rss->items_limit=10;
    Untested, but should work.

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

    sandinista (07-16-2008)

  4. #3
    Join Date
    Apr 2008
    Location
    Manchester: United Kingdom
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Yes that works perfectly. Thankyou very much

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
  •