PDA

View Full Version : RSS Display Box - setting correct path



redpis
01-06-2014, 08:46 PM
http://www.dynamicdrive.com/dynamicindex18/rssdisplaybox/index.htm

Hi,

After a schoolboy error and with your help, the demo.htm works, my next stumbling block is setting the path, I have tried numerous permatations, but I cant get www.chatteris.biz/rssbox/main.php to work, the message currently shows - Error: Can't find requested RSS in list, with the setting below.




//Path to "main.php" *relative* to "demo.htm", or the HTML page on your server displaying the RSS Box:

var rssoutputscript="http://window.location.hostname/rssbox/main.php"

//Switch to full URL to "main.php" on your server below, so script will work with any page on your server, not just "demo.htm"
//Do NOT change window.location.hostname, which is your site's root domain, dynamically determined
//Configure below line and uncomment it to activate it:

//rssoutputscript="http://window.location.hostname/rssbox/main.php"


I've attached a pic of my root directories, can anyone kindly shine some light on this for an older learning newbie.

Many thanks

Ian

jscheuer1
01-06-2014, 09:37 PM
Go back to what you had before, when it was working, that was fine.

Or change to:


rssoutputscript="http://"+window.location.hostname+"/rssbox/main.php"

Also, be aware - main.php is not a standalone file. It's used by the scripts and demo.htm to display the feeds on demo htm.

redpis
01-06-2014, 10:51 PM
5326

Hi John,

This is going from bad to worse for me!, put everything back to default, uninstalled then re-downloaded the zip file, uploaded again, and now I get the message attached in the image, I had infact tried the string you kindly identified, but using the www.chatteris.biz/rssbox/main.php command I couldn't access the demo page.

The reason for the re-install was then when I checked on the rssbox file permission to ensure it was set to xxx, automatically on exit, it assigned itself 655, reinstalling has stopped this.

Ian

ajfmrf
01-06-2014, 11:43 PM
when I click the link to the above post to the main.php file it says:


Error: Can't find requested RSS in list.

Make sure the feeds you are using are good.

http://simplepie.org/demo/

This can be used to check the feeds to make sure you can use the.

I don't know why but I also had issues with multiple files not working for various reasons

jscheuer1
01-07-2014, 04:15 AM
when I click the link to the above post to the main.php file it says:
Error: Can't find requested RSS in list.


That's what it's supposed to do. The main.php file isn't a standalone file.


5326

Hi John,

This is going from bad to worse for me!, put everything back to default, uninstalled then re-downloaded the zip file, uploaded again, and now I get the message

All that message indicates is that you haven't the correct permission set on the cache folder. It's there, but it's not writable.

redpis
01-07-2014, 08:26 PM
OK, back again..thanks for sticking with me.... the RSS display box is working and displaying feeds after typing- www.chatteris.biz/demo.htm , The next step was to insert the line "http://"+window.location.hostname+"/rssbox/main.php" and check that it was accessible by www.chatteris.biz/rssbox/main.php, this is where it stalls and the 'Error: Can't find requested RSS in list'

Changing it back to- rssbox/demo.htm makes it accessible again, one thing I have discovered is that if I open the rssbox directory and insert modified file, the directory permission alters to 755 from xxx and it does not allow me to change it back, to combat this, any file changes are dropped onto the directory without opening it.

So, should www.chatteris.biz/rssbox/main.php open the display boxes if all is working well or am I barking up the wrong tree?

jscheuer1
01-08-2014, 03:16 AM
So, should www.chatteris.biz/rssbox/main.php open the display boxes

No, never. It's a resource file used by demo.htm and the other scripts. The box(es) will display on demo.htm. You can also have them display on other pages on your site if those are setup correctly. That's the only advantage of using "http://"+window.location.hostname+"/rssbox/main.php" as the path in the rssdisplaybox.js file, it allows other HTML pages in other folders to use main.php and the other scripts to display rss boxes.

Let me try to make it clearer. Main.php is used by rssdisplaybox.js, which asks it to, via an AJAX request to send a PHP object of a given feed, which it gets from simplepie.inc, to outbody.php, which formats that (the feed as a PHP object) into HTML text, which rssdisplaybox.js sends back to a page it's on (like demo.htm) for display, sometimes with further formatiing via virtualpaginate.js.

redpis
01-08-2014, 11:05 AM
John,

Thanks for your time and patience, you post has made it a lot clearer for me, I can now go and souce the feeds and inch may way through incorporating this into my site.

Ian