View Full Version : rsstickerajax

10-22-2009, 04:38 PM
1) Script Title: RSS Ticker Ajax

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

3) Describe problem: Trying to use it in VBulletin at http://start.mobilebeat.com/forumdisplay.php?f=21 where you see Mobile Beat News - that

<script type="text/javascript">
//rssticker_ajax(RSS_id, cachetime, divId, divClass, delay, optionalswitch)
//1) RSS_id: "Array key of RSS feed in PHP script"
//2) cachetime: Time to cache the feed in minutes (0 for no cache)
//3) divId: "ID of DIV to display ticker in. DIV dynamically created"
//4) divClass: "Class name of this ticker, for styling purposes"
//5) delay: delay between message change, in milliseconds
//6) optionalswitch: "optional arbitrary" string to create additional logic in call back function

document.write("Mobile Beat News")
new rssticker_ajax("MB", 600, "cnnbox", "cnnclass", 3000, "date")

</script> in in the header

<script src="rssticker.js" type="text/javascript">
//credit notice here
</script> is where I want it to display - right by the left of the 6 square ads starting with PCDJ

http://start.mobilebeat.com/rssticker.js is in place as is the last rss stuff at http://start.mobilebeat.com/lastrss/


10-23-2009, 03:06 PM
The main problem (there could be others, but we won't know until we fix this) is that you have the two scripts placed in the reverse locations of where the belong. The one you have in the head belongs in the body at the spot in your code where you want the ticker to show up. The one you've placed in the body belongs in the head.

For an example of how these two scripts should be arranged on a page, view the source code of the demo.htm:


10-23-2009, 04:09 PM
OK got it

Now I just have a Date issue - http://start.mobilebeat.com/showthread.php?t=48794



10-23-2009, 04:51 PM
No not really. Did you edit anything in any of the files as regards the date or date format?

The reason I ask is that this date is taken directly from the feed and then formatted via PHP, then output as text via javascript. So either it is missing in the feed (a very good chance because the date showing is so close to 0hr in code time which is midnight 1/1/70 that it's probably just that (0) minus a time zone correction), or not expressed in the standard way in the feed, or you've done some editing as I was speculating, or maybe something else.

Where's the feed generated? Maybe 'they' aren't including the publication date info.

You could always set the display of that part to none or its visibility to hidden. That would at least eliminate the erroneous info.

But my expertise lies mainly with javascript, so you might have better luck, now that you have this at least working, to start a new thread explicitly about this new issue.

10-26-2009, 01:44 PM
New thread started