1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

RSS feed to pages outside xenForo?

Discussion in 'XenForo Questions and Support' started by Jethro, Oct 30, 2010.

  1. Jethro

    Jethro Well-Known Member

    Not seeing an option or a XML file floating around the Xen directories. What am I missing?
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  3. Jethro

    Jethro Well-Known Member

    Thanks for the reply Jake, actual just after a feed from one forum, sounds like it's already happening, can you point me to how that hangs together. :)
     
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  5. OperaManiac

    OperaManiac Well-Known Member

  6. Brogan

    Brogan XenForo Moderator Staff Member

    What are you trying to do Jethro?

    I use RSS a lot on my site so I was playing with the Google API last night to set up a news page.
    It works great :)
     
  7. Jethro

    Jethro Well-Known Member

    Simply want to use the RSS feed from a single forum to a block on my front page, not seeing xml files which is what I'm use to for rss :( Have an invision style solution but that seems overkill for what I want to do ....
     
  8. OperaManiac

    OperaManiac Well-Known Member

    you can use buzz boost in feedburner. here is an example. use this code to run the rss feed of this forum...

    Code:
    <script src="http://feeds.feedburner.com/XenForoForum?format=sigpro" type="text/javascript" ></script><noscript><p>Subscribe to RSS headline updates from: <a href="http://feeds.feedburner.com/XenForoForum"></a><br/>Powered by FeedBurner</p> </noscript>
    
     
  9. Brogan

    Brogan XenForo Moderator Staff Member

    Just tried it and got it working :D

    I'll get the code tidied up and post it here in a bit.
     
  10. Brogan

    Brogan XenForo Moderator Staff Member

    OK, this was done using the Google RSS wizard so it's very basic.
    Ideally you want to get your own API key and then do customised CSS, etc.

    This though will give you an idea - it's a feed for the Announcements forum.
    Copy and paste the code below into a Page to see how it looks.

    I'll be doing some proper code at some point, fully integrated into the style and in the sidebar, etc.
    If I get it done before you I'll sling it your way.

    HTML:
    <!-- ++Begin Dynamic Feed Wizard Generated Code++ -->
      <!--
      // Created with a Google AJAX Search and Feed Wizard
      // http://code.google.com/apis/ajaxsearch/wizards.html
      -->
    
      <!--
      // The Following div element will end up holding the actual feed control.
      // You can place this anywhere on your page.
      -->
      <div id="feed-control">
        <span style="color:#676767;font-size:11px;margin:10px;padding:4px;">Loading...</span>
      </div>
    
      <!-- Google Ajax Api
      -->
      <script src="http://www.google.com/jsapi?key=notsupplied-wizard"
        type="text/javascript"></script>
    
      <!-- Dynamic Feed Control and Stylesheet -->
      <script src="http://www.google.com/uds/solutions/dynamicfeed/gfdynamicfeedcontrol.js"
        type="text/javascript"></script>
      <style type="text/css">
        @import url("http://www.google.com/uds/solutions/dynamicfeed/gfdynamicfeedcontrol.css");
      </style>
    
      <script type="text/javascript">
        function LoadDynamicFeedControl() {
          var feeds = [
    	{title: 'XenForo Announcements',
    	 url: 'http://xenforo.com/community/forums/announcements/index.rss'
    	}];
          var options = {
            stacked : false,
            horizontal : false,
            title : ""
          }
    
          new GFdynamicFeedControl(feeds, 'feed-control', options);
        }
        // Load the feeds API and set the onload callback.
        google.load('feeds', '1');
        google.setOnLoadCallback(LoadDynamicFeedControl);
      </script>
    <!-- ++End Dynamic Feed Control Wizard Generated Code++ -->
     
    Jake Bunce and Jethro like this.
  11. OperaManiac

    OperaManiac Well-Known Member

    oh looks much better!
     
  12. Brogan

    Brogan XenForo Moderator Staff Member

    Wait till you see the full CSS'ed version ;)
     
  13. Jethro

    Jethro Well-Known Member

    Get that happening in the resources section dude, a lot of people will be all over this one.

    Excellent work and beats the hell out of the thing I was going to use.
     
  14. Brogan

    Brogan XenForo Moderator Staff Member

    Well it was already on my To Do list but if more people are interested then I'll get started on it right away.
     
  15. Jethro

    Jethro Well-Known Member

    Currently upgrading a Xen forum on a snail like connection, so no hurry from me. Hoping to get your code on site later today, though we have people arriving, it's Halloween, and apparently the house needs cleaning ....
     
  16. Jethro

    Jethro Well-Known Member

    Dude that rocks! Exactly what was required, happy now.
     

Share This Page