Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 31

Thread: RSS Ticker

  1. #11
    Join Date
    Nov 2011
    Posts
    19
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    http://world-fishing-news.com/RSSWFN...icker_demo.htm

    This is the link above on my server.

    (The previous page is sending you to an invalid url.)Small problem with the top RSS is that the links to each item does not work having said that this is just great and is what I wanted!

  2. #12
    Join Date
    Nov 2011
    Posts
    19
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    OK
    I have had a good look around now and it looks great!
    What do I need to change to run just one feed say
    Fishing News Letters
    RSS LINK
    http://fishingnews.posterous.com/rss.xml

    When I have mastered changing one, I think I will be OK notice I said "think"
    Thank you not only for your help but for that thing that is precious to us all "TIME"

    Billy

  3. #13
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,070
    Thanks
    44
    Thanked 3,216 Times in 3,178 Posts
    Blog Entries
    12

    Default

    I thought I had tested that out and it was working. Perhaps not. In any case, my copy is now doing the same thing. I found a fix. In the js folder replace the simple_crawler.js file with this one:

    Attachment 4228

    The more I think about it, it was working. That feed must have changed their output for the permalinks. No matter, this fix will not harm other feeds' permalinks, as it will do nothing to those that follow the usual format, while fixing any that do it the way this feed is now doing.

    As for having only one feed, just change (on the simple_ticker_demo.htm) this:

    Code:
    <body>
    Some other content above
    <div id="irishanglers" class="marquee"></div>
    <script type="text/javascript">
    new rsscrawler('http://pipes.yahoo.com/pipes/pipe.run?_id=01cac7772e5b26ab65968cd03ed3d8d1&_render=rss', 'irishanglers');
    </script>
    Some other content below
    <div id="ddfeed" class="marquee"></div>
    <script type="text/javascript">
    new rsscrawler('http://www.dynamicdrive.com/export.php?type=new', 'ddfeed');
    </script>
    Some other content below
    </body>
    to this:

    Code:
    <body>
    Some other content above
    <div id="irishanglers" class="marquee"></div>
    <script type="text/javascript">
    new rsscrawler('http://pipes.yahoo.com/pipes/pipe.run?_id=01cac7772e5b26ab65968cd03ed3d8d1&_render=rss', 'irishanglers');
    </script>
    Some other content below
    </body>
    And if you want that to go to a different feed, just change the url (highlighted), ex:

    Code:
    <body>
    Some other content above
    <div id="irishanglers" class="marquee"></div>
    <script type="text/javascript">
    new rsscrawler('http://fishingnews.posterous.com/rss.xml', 'irishanglers');
    </script>
    Some other content below
    </body>
    The id (red two places) may remain the same as long as this is the only feed on the page. But I used 'irishanglers' for that other feed because it's descriptive. Just like I used ddfeed for the Dynamic Drive feed. It's good to keep your id's descriptive, just so you can keep track of which feed is which. But as far as the code is concerned the only requirement is that if there are more than one feed on a page, each feed on the page has to have a unique id.
    Last edited by jscheuer1; 11-27-2011 at 08:23 AM. Reason: add info
    - John
    ________________________

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

  4. #14
    Join Date
    Nov 2011
    Posts
    19
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    I have tried making my own with changing your code but no sucsess!
    called newsletters.

    http://world-fishing-news.com/RSSWFN...wsletters.html

  5. #15
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,070
    Thanks
    44
    Thanked 3,216 Times in 3,178 Posts
    Blog Entries
    12

    Default

    Code:
    <!DOCTYPE html>
    <html>
    <head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <title>newsletters</title>
      <style type="text/css">
    
    /* CSS for RSS crawler(s) */
    
    .marquee {
    	height: 54px;
    }
    
    .rsstable {
    	border-collapse: collapse;
    }
    
    .rsstable td {
    	padding: 5px;
    	margin: 5px;
    	vertical-align: top;
    	background-color: #ffa;
    	font: normal 13px verdana, arial, sans-serif;
    	white-space: normal;
    	border-right: 2px solid #fff;
    }
    
    .rsstable div {
    	width: 600px;
    	height: 45px;
    	font-size: 13px;
    	overflow: hidden;
    }
    
    .rsstitle {
    	font-weight: bold;
    }
    
    .rssdate {
    	color: #222;
    	font-size: 10px;
    	display: block;
    }
    
    /* End CSS for RSS crawler(s) */
      </style>
      <script type="text/javascript" src="js/crawler.js">
    // Text and/or Image Crawler Script v1.5 (c)2009-2011 John Davenport Scheuer
    // as first seen in http://www.dynamicdrive.com/forums/
    // username: jscheuer1 - This Notice Must Remain for Legal Use
      </script>
      <script type="text/javascript" src="js/simple_crawler.js">
    // Simple RSS/Crawler Interface v1.0 (c)2011 John Davenport Scheuer
    // as first seen in http://www.dynamicdrive.com/forums/
    // username: jscheuer1 - This Notice Must Remain for Legal Use
      </script>
      <title>newsletters</title>
      <meta content="WFNews" name="author">
      <meta content="World Fishing News Letters" name="description">
    
    </head>
    <body>
    <div id="newsletters" class="marquee"></div>
    <script type="text/javascript">
    new rsscrawler('http://fishingnews.posterous.com/rss.xml', 'newsletters');
    </script>
    </body>
    </html>
    - John
    ________________________

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

  6. #16
    Join Date
    Nov 2011
    Posts
    19
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    That is working great!
    http://world-fishing-news.com/RSSWFN...wsletters.html

    If I make this one the master html I just need to change the items you said and then keep the new html page in the same directory on my server is this correct.

    Do you also know how often the RSS feed in question refreshes/looks for a update.

    Thank you

    Billy

  7. #17
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,070
    Thanks
    44
    Thanked 3,216 Times in 3,178 Posts
    Blog Entries
    12

    Default

    Yes that's correct.

    I'm not sure I understand the question:

    Do you also know how often the RSS feed in question refreshes/looks for a update.
    The simplepie.inc file caches the feed for 30 minutes on your server. So if the person viewing your page refreshes it, or leaves it and returns, the second and subsequent loads should be faster. But after 30 minutes, simplepie.inc fetches the feed anew and overwrites the cached copy with a new one.

    This is as much to prevent too many requests to the feed server as it is to keep the content reasonably current.

    This is set in the simple_bridge.php file:

    Code:
    // Create simplepie object
    $rss = new SimplePie();
    $rss->cache_location('cache'); //path to cache directory on your server relative to simple_bridge.php. 
    $rss->date_format = 'M d, Y g:i:s A'; //date format of RSS item. See PHP date() function for possible input.
    $rss->cache_max_minutes(30); //Global cache time before fetching RSS feed again, in minutes.
    $allowtags = ''; //tags to allow in items, ex: '<p><a><img>'
    This is all fine and good. Most feeds won't update anywhere near that often. But say the user leaves the feed up in their browser without refreshing the page. In that case it will remain unchanged until it's either refreshed, or the user navigates away from it and returns. In some browsers, if they return via the browser's back button, it still won't update without a refresh.

    If that's a problem, we could add a meta refresh tag to the .htm page or use javascript to refresh it. But in most cases that isn't an issue. Do you anticipate your users leaving the page up for hours on end? And depending upon what else you might have on the page, refreshing it automatically might not be a good idea. But if there isn't anything on the page that causes problems with automatic refreshes and you want it to refresh periodically, we can work that out. Let me know.
    - John
    ________________________

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

  8. #18
    Join Date
    Nov 2011
    Posts
    19
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    John

    All done have put it into an Iframe looks great to me would appreciate your thaughts.
    Your hard work can be found at
    http://world-fishing-news.com/INTRO/1/wfnintro.html

    Billy

  9. #19
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,070
    Thanks
    44
    Thanked 3,216 Times in 3,178 Posts
    Blog Entries
    12

    Default

    When we updated simple_crawler.js I had added a loading image. That wasn't in the archive from before. Make a folder:

    world-fishing-news.com/RSSWFNews/rsscrawler/rsscrawler/images

    Put this image in it:

    - John
    ________________________

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

  10. #20
    Join Date
    Nov 2011
    Posts
    19
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    John

    The above picture isnt loading
    Billy

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
  •