View Full Version : Advanced RSS Ticker (Ajax invocation)
csseur
01-19-2008, 01:45 PM
Hello,
1) Script Title: Advanced RSS Ticker (Ajax invocation)
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/rsstickerajax/index.htm
3) Describe problem: it is possible to put a limit of a number of words they are displays in the script?
bye
ddadmin
01-20-2008, 03:01 PM
Erroneous code. Removed. See below for correct changes.
csseur
01-20-2008, 08:31 PM
re,
i try this:
var tickercontent=linktitle.substring(0, 20)+description //STRING FOR FEED CONTENTS
but nothing appears after that.. error of syntax? (i have remove feeddate for my utilisation)
bye
ddadmin
01-22-2008, 04:17 AM
Ah yes, forget what I said above, the substring() function should be called on earlier, before the entire HTML is returned already. So something like:
var linktitle='<div class="rsstitle"><a href="'+this.link[this.pointer]+'">'+this.title[this.pointer].substring(0, 20)+'</a></div>'
var description='<div class="rssdescription">'+this.description[this.pointer].substring(0, 100)+'</div>'
csseur
01-24-2008, 11:28 PM
thanks :)
so, last question: how to put a limit of the number of articles published of the feed ?
bye
ddadmin
01-25-2008, 05:44 AM
Limiting the number of feeds that get returned, among other things, is controlled by LastRSS. Inside bridge.php, try adding the below line in red:
$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 = 5 ; //return 5 items only
See here for more info: http://lastrss.oslab.net/
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.