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

Add an RSS feed block to the sidebar [Deleted]

Discussion in 'Template Modifications' started by Brogan, Dec 16, 2010.

  1. Brogan

    Brogan XenForo Moderator Staff Member

    Brogan submitted a new resource:

    Add an RSS feed block to the sidebar (version 1.0) - Feed me!

    Read more about this resource...
    Golden Falcon, Bram, Iestyn and 32 others like this.
  2. Edrondol

    Edrondol Well-Known Member

    Can I like this more than once? Pretty please?
  3. Brogan

    Brogan XenForo Moderator Staff Member

    You can always like this post aswell :D

    I spotted a few problems with the css so I have updated the first post.
    If I make any further changes I will post to let you know.
    Brandon Sheley, Dav and Edrondol like this.
  4. iTuN3r

    iTuN3r Well-Known Member

    Is it possible to do same from each Category i guess here we are getting RSS feeds from each forums.
  5. Brogan

    Brogan XenForo Moderator Staff Member

    You can use any RSS URL(s) you wish.

    Just change the relevant code as required:
    title: 'BBC News', /** Title of the feed */
    url: 'http://feeds.bbci.co.uk/news/rss.xml' /** URL of the feed */
    iTuN3r likes this.
  6. Brogan

    Brogan XenForo Moderator Staff Member

    I've added a new css file to the first post which will show the snippet titles on 2 rows.
    This is only required for the sidebar due it being so narrow.
    The result is as follows:

    Peggy likes this.
  7. Brogan

    Brogan XenForo Moderator Staff Member

    I've just tweaked the css again so the selected news item underlines rather than being bold.
    This is to avoid issues with IE wrapping the items to 2 rows :rolleyes:

    It makes it consistent with the mouseover effect anyway so probably a better approach to take.

  8. ddmmh

    ddmmh Well-Known Member

    I wish I saw this earlier! I signed up for rssinclude which costs me 40 bux a year roughly when I could of done this which looks much much better. Ill be trying this out when I get some time Brogan, love your work. One question. I use XenPortal, will there be an easy enough way to integrate it into the XenPortal sidebar also? so its consistent with the whole site, i tried creating a XenPortal module using the xen include template code but it doesnt seem to work in Xenportal, cheers Brogan.
  9. Brogan

    Brogan XenForo Moderator Staff Member

    I don't have XenPortal installed but I can't see any reason why you can't add it to the sidebar.

    Once you've created the templates, or template if you want to do it all in a single template, you can add it to any other template using xen:include.

    What was the result when you tried to add it?
  10. ddmmh

    ddmmh Well-Known Member

    Just added your fantastic mod, Works fine on all pages. In the portal it also works fine but there is a message at the bottom of the feed "Fetching Feed" I set the cache to 'now' for the xml template so not too sure? Not a huge issue I guess.

    Ill leave it up so you can take a look.


    Just a couple of questions. Is there a way to integrate feeds that have pictures? If you look at my portal I have an RSS feed on the left with pictures, can it be done? Also, just a thought here but what do you think about having the rss in the top of the page of the portal and the rest of the forum? Maybe 3 colums across or something? Ive attached a picture of what I mean, thanks Brogan.

  11. Brogan

    Brogan XenForo Moderator Staff Member

    The Fetching feeds message is because you have 2 instances of the script running on the same page.
    If you remove one it will work.
    Or you might be able to edit the code to get multiple instances working, I haven't checked if that's possible.
    Either that or there's an error in your template/code.

    RSS is designed to be a basic text feed so doesn't support images.
    You would need a custom add-on for that.

    If you want the feed(s) to display horizontally across 3 columns then you would need multiple feeds as the vertical stack isn't configurable. Again you would have to resolve the issue of multiple instances on 1 page.
  12. ddmmh

    ddmmh Well-Known Member

    I disabled the other RSS feed as you suggested but still says fetching feeds. So i removed the other RSS module completley but still the same issues, maybe i need to wait for some sort of google cache refresh?

    ahh ok I think i meant... i forgot the name lol is it RSS2 or RSS XML? the one with the pictures anyway, like on the left you would of seen before in my portal, that is an RSS feed with pictures, is that doable via your methods?

    What about 3 vertical feeds? would that be easier?

    Ive attached the XML i made for the portal, i think i did everything right, all I aded was the xen:include with the template.

    Thanks for your time Brogan.

    Attached Files:

    iXanon likes this.
  13. Brogan

    Brogan XenForo Moderator Staff Member

    You're still trying to load the feed block twice in the sidebar.
  14. ddmmh

    ddmmh Well-Known Member

    Sorry, i thought you meant the RSS block that I had from RSSinclude on the left hand side. Do you mean the actual portal news feed coming from the forums ?
  15. Brogan

    Brogan XenForo Moderator Staff Member

    I don't know how you've got it set up but looking at the code I can see 2 instances of the RSS block.

    I have highlighted the second one in the attached screenshot.

  16. ddmmh

    ddmmh Well-Known Member

    The portal must retrieve the news via RSS feed also. No biggie, it just says fetching feeds on the portal only but it works fine so i wont worry to much for now. One more question, is there anyway to integrate this kind of RSS(pictures)? example : http://www.w3streams.com/
  17. Brogan

    Brogan XenForo Moderator Staff Member

  18. ddmmh

    ddmmh Well-Known Member

  19. Cory Booth

    Cory Booth Well-Known Member

    Brogan, noticed IE doesn't respect the overflow hidden parameter (or I think it is).
    So when a feed title is too long, it wraps.

    Is there anyway to limit the number of characters of a Feed Title or force IE to hide the remanding characters?

    Attached Files:

    • rss.JPG
      File size:
      15.2 KB
  20. Brogan

    Brogan XenForo Moderator Staff Member

    I tried for hours to get that to work, in the end I couldn't.

    Which is why I was forced to set 2 rows for the snippet title.

    It's just another example of why people shouldn't use IE, IMO.
    Peggy likes this.

Share This Page