Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Adding XML feeds to Pausing RSS scroller

  1. #1
    Join Date
    Sep 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Adding XML feeds to Pausing RSS scroller

    1) Script Title: Pausing RSS scroller

    2) Script URL (on DD): RSS Pause Scroller

    3) Describe problem: First off, i have never created an RSS feed.
    I have uploaded the script to my server... it works.

    Now... my goal is to get it to display an XML feed from an icecast2 server...
    it exports the playlist of what is currently playing on the Radio.

    My questions are what do i call this XML file from the icecast2 server, what
    file do i edit in the DD script,( the rsspausescroller.js). I believe it should
    be as easy as renaming an id or instance!

    Where is the info that this Scroller is displaying?
    {new rsspausescroller("dynamicdrive", "pscroller2", "rssclass", 3000, "", "date+description")}
    these seem to be the source but i want them to be my XML export.

    Hope this is clear.

    Regards,

    CaribbeanOS-X

  2. #2
    Join Date
    Sep 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Answered it myself...i think.

    If i am not mistaken, I can edit the scrollerbridge.php file and add what xml files i want it to display.

    // Define your list of RSS URLs- "RSS_id"=> "URL to RSS feed"
    $rsslist=array(
    "cnn" => "http://rss.cnn.com/rss/cnn_topstories.rss",
    "bbc" => "http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml",
    "news.com" => "http://news.com.com/2547-1_3-0-5.xml",
    "slashdot" => "http://rss.slashdot.org/Slashdot/slashdot",
    "dynamicdrive" => "http://www.dynamicdrive.com/export.php?type=new",
    );


    If there is anything else i need to be aware of, please post it.

    Appreciate the help.

    Kindest Regards,

    CaribbeanOS-X

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

    Default

    Yep, the adding of RSS feeds is done within scrollerbridge.php. This is explained on the DD script page. For example:

    Code:
    // Define your list of RSS URLs- "RSS_id"=> "URL to RSS feed"
    $rsslist=array(
    "cnn" => "http://rss.cnn.com/rss/cnn_topstories.rss",
    "bbc" => "http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml",
    "news.com" => "http://news.com.com/2547-1_3-0-5.xml",
    "slashdot" => "http://rss.slashdot.org/Slashdot/slashdot",
    "dynamicdrive" => "http://www.dynamicdrive.com/export.php?type=new",
    "myfeed" => "http://www.mysite.com/news.rss",
    );
    Then, to display the feed "myfeed", your initalization code on your page may look like:

    Code:
    new rsspausescroller("myfeed", "pscroller1", "rssclass", 3000, "_new", "description+date")

  4. #4
    Join Date
    Sep 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Great work...

    Appreciate the help...

    Great, i will be trying this out today!

    Thanks for the quick reply... great site!

    Regards,

    CaribbeanOS-X

  5. #5
    Join Date
    Sep 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by ddadmin View Post

    Then, to display the feed "myfeed", your initalization code on your page may look like:

    Code:
    new rsspausescroller("myfeed", "pscroller1", "rssclass", 3000, "_new", "description+date")
    DDadmin: I am getting closer, i have a test .rss file on my server. I can subscribe to it via FF.

    When i add "test" (instead of "myfeed") in the demo.htm the scrolling box only says "Ajax Pagination script" and does not scroll any longer.

    new rsspausescroller("test", "dynamicdrive", "pscroller2", "rssclass", 3000, "", "date+description")

    And i added "test" into the bottom line of the scrollbridge.php


    // Define your list of RSS URLs- "RSS_id"=> "URL to RSS feed"
    $rsslist=array(
    "bbc" => "http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml",
    "news.com" => "http://news.com.com/2547-1_3-0-5.xml",
    "slashdot" => "http://rss.slashdot.org/Slashdot/slashdot",
    "dynamicdrive" => "http://www.dynamicdrive.com/export.php?type=new",
    "test" => "http://www.mysite.com/sub/scrollphp/test.rss",
    );


    Each time i add an instance to the demo.htm page, it just stops...
    i think it is pulling info from "dynamicdrive" => "http://www.dynamicdrive.com/export.php?type=new",
    This is one of the msg's it feeds out as it scrolls:
    "This script lets you include content from multiple
    pages and display them on demand, using Ajax. Pagination
    links are automatically created, with each page downloaded
    only when requested."


    I can't get it to even feed the "bbc" or "cnn" (as in the example) but those, including mine work within my browser FF as a valid .rss.

    <script type="text/javascript">
    //new rsspausescroller(RSS_id, divId, divClass, delay, linktarget, optionalswitch)
    new rsspausescroller("cnn", "pscroller1", "rssclass", 3000, "_new", "description+date")
    </script>


    Your next step?

    Kindest regards,

    CaribbeanOS-X

  6. #6
    Join Date
    Sep 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I will end this thread:
    Simply put, throughly check the code and all the names and id's.

    This is my answer to my problem:

    new rsspausescroller("test", "pscroller2", "rssclass", 3000, "_new")

    Works great now.

    Love the script, good work.

  7. #7
    Join Date
    Jan 2008
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default having trouble with my own feeds (gives up fetching?)

    here is the feed I want:

    http://www.lung.ca/rss_e.php

    where do I make changes to scrollbridge.php and to my demo file to get this to feed?

    TIA

  8. #8
    Join Date
    Jan 2008
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I just figured it all out....my editor was doing screwy things...notepad worked bettter. By the way . I now need to edit all the "look of the scroll box" ....is that in scrollbridge.php? instructions anywhere?

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

    Default

    Quote Originally Posted by rcw View Post
    By the way . I now need to edit all the "look of the scroll box" ....is that in scrollbridge.php? instructions anywhere?
    By look, do you mean the colors, dimensions of the box? That's all done with CSS, which by default is this code inside your page:

    Code:
    <style type="text/css">
    
    /*Example CSS for the two demo scrollers*/
    
    #pscroller1{
    width: 450px;
    height: 1.2em;
    border: 1px dashed black;
    padding: 5px;
    background-color: lightyellow;
    }
    
    #pscroller2{
    width: 400px;
    height: 150px;
    border: 1px solid black;
    padding: 5px;
    background-color: #F0F0F0;
    }
    
    .rssclass .rsstitle{
    font-weight: bold;
    }
    
    .rssclass .rssdate{
    color: gray;
    font-size: 85%;
    }
    
    .rssclass a{
    text-decoration: none;
    }
    
    </style>

  10. #10
    Join Date
    Jan 2008
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    yes that what I mean. but the scroller does not keep the title of the feed anywherer such as "CNN" just outside the scroller box? How can I get that?

    TIA

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
  •