Results 1 to 8 of 8

Thread: RSS Display Box - setting correct path

  1. #1
    Join Date
    Jan 2014
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default RSS Display Box - setting correct path

    http://www.dynamicdrive.com/dynamici...ybox/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
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	root.jpg 
Views:	238 
Size:	32.8 KB 
ID:	5325  

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Go back to what you had before, when it was working, that was fine.

    Or change to:

    Code:
    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.
    Last edited by jscheuer1; 01-06-2014 at 10:00 PM. Reason: add 'Also'
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jan 2014
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Click image for larger version. 

Name:	error.jpg 
Views:	169 
Size:	91.5 KB 
ID:	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

  4. #4
    Join Date
    Jan 2011
    Location
    Southeastern CT
    Posts
    612
    Thanks
    46
    Thanked 32 Times in 32 Posts

    Default

    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
    Thanks,

    Bud

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by ajfmrf View Post
    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.

    Quote Originally Posted by redpis View Post
    Click image for larger version. 

Name:	error.jpg 
Views:	169 
Size:	91.5 KB 
ID:	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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  6. #6
    Join Date
    Jan 2014
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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?

  7. #7
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by redpis View Post
    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.
    Last edited by jscheuer1; 01-08-2014 at 03:42 AM. Reason: add - Let me try . . .
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  8. #8
    Join Date
    Jan 2014
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

Similar Threads

  1. How to Adjust Timezone Setting in RSS Display Boxes?
    By air009 in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 06-14-2012, 04:24 PM
  2. Replies: 2
    Last Post: 11-06-2009, 07:00 AM
  3. Replies: 4
    Last Post: 06-10-2008, 07:31 PM
  4. Replies: 3
    Last Post: 03-16-2008, 02:01 AM
  5. How to do correct path?
    By toplisek in forum PHP
    Replies: 3
    Last Post: 05-16-2007, 07:25 PM

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
  •