It seems easier to me to take care of this on the javascript side, otherwise it looks like we would need to edit the simplepie.inc file.
Use this modified version of the rssdisplaybox.js file:
Attachment 4358
Replace the original with it.
If you needed to edit it before for the path to main.php, you will need to again.
The browser cache may need to be cleared and/or the page refreshed to see changes.
Try it like that first to make sure it's working, it does here.
If there's a problem at that point, please post a link to the page on your site that contains the problematic code so we can check it out. And give me the address of the empty feed you're talking about.
But, if that all works out and you want to customize the empty feed message, use a text only editor like NotePad. Near the top rssdisplaybox.js now includes the highlighted line:
Code:
// -------------------------------------------------------------------
// RSS Display Box (Ajax invocation)- Created Dec 2nd 2006 | Last updated Dec 18th, 2006
// Author: Dynamic Drive (http://www.dynamicdrive.com)
// -------------------------------------------------------------------
//Unofficial update for "Message for Empty Feed" Feb 17th, 2012 see: http://www.dynamicdrive.com/forums/showthread.php?p=269803#post269803
//Path to "main.php" *relative* to "demo.htm", or the HTML page on your server displaying the RSS Box:
var rssoutputscript="rssbox/main.php"
//Message for Empty Feed
var rssnoitemshtml = '<div><b style="color: red;">No Items Found</b> - Feed is Empty or not a Feed</div>'
//Switch to full URL to "main.php" on your server . . .
You can change it to whatever message you like.
Bookmarks