Results 1 to 2 of 2

Thread: Pausing RSS Scroller

  1. #1
    Join Date
    Feb 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Pausing RSS Scroller

    1) Script Title: Pausing RSS Scroller

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

    3) Describe problem: This script is exactly what I am looking for. However, there is one problem I have. The RSS feed(s) is specified in the PHP file. I have a site where depending on the page you select, there will be an RSS with news about that particular item. I do not want all of the feeds to be displayed on all pages. The only way I can see to do this, at this point, is to create multiple copies of the PHP file. Is there anyway (without completely recoding the script) to make it so that the feed is specified in the Javascript? Making the content specific to the page you are on?

    Thanks for any assistance with this.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    There's actually a reason the RSS feeds are defined inside the PHP file, as this is for security reasons. Since this script can be put on any webpage, including on other people's sites, you don't want to allow other webmasters a way to serve up their own RSS feed- even potentially a malicious one- using this script and your server resources (backend PHP).

    The file that needs to be duplicated at this point is scrollerbridge.php, which is actually pretty small. If you're familiar with PHP I'm sure you can abstract that file further, so only a portion of it needs to be duplicated for each page.

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
  •