bbPress

Simple, Fast, Elegant

bbPress support forums » Troubleshooting

Limiting RSS Feed to First Post Only

(23 posts)
  • Started 6 months ago by Doobus
  • Latest reply from Doobus
  • This topic is not resolved

Tags:

  1. Doobus
    Member

    I'm trying to limit the RSS feed, instead of listing all the post within a forum, how do i limit it to the first post only?

    not sure if i'm making sense, but for example I have a forum category called widget 1, inside widget 1 there is 10 sub-categories, how do I make so that the rss feed only shows the 10 sub-categories and not the comments within the sub categories?

    Posted 6 months ago #
  2. Pretty sure line 52 of rss.php in your root folder is what you need to change, but could you give a visual of what you are trying to do?

    Trent

    Posted 6 months ago #
  3. Doobus
    Member

    Thanks figured it out.

    Posted 6 months ago #
  4. Doobus
    Member

    I apologize the was a premature resolved... I didn't get it working, as I thought. Let me clarify what I'm trying to do.

    The RSS feed shows replies to the top topic, I only want the top topic to show up, I don't want any of the replies to show in the rss feed. I hope thats more clear, thanks!

    Posted 6 months ago #
  5. Doobus
    Member

    After all my slicing and dicing with bbPress, I'm finally coming close to completing everything, except one thing. This RSS thing is really killing me :P. I'm wracking my brain trying to explain this the best way possible.

    So here I go. Each forum has a feed, how do I only show the topics in the feed? As it stands right now, the feed is showing the replies as well, I just want topics to show.

    Sorry for sounding redundant, but I'm desperate >_< to complete. Thanks in advance.

    Posted 6 months ago #
  6. Is this close to what you want? Topic Feeds

    If so, just be patient.

    Posted 6 months ago #
  7. Doobus
    Member

    Exactly what I wanted. I was under the impression that this was already doable, I first got the idea that it could already be done from 9rules.com. I was viewing the notes section, where it pulls all the latest topics from all the forums, the feed only shows the topics and not the comments within. Oddly enough, the individual forums themselves show the topic as well as comments within the topics.

    Granted that what I'm looking for is in the trac you provided, but I'm still wondering how 9rules managed to get the front part working to only show the topic and not the replies within, and could this not be applied within forum feeds?

    I did some digging around and found that the 9rule feed is just basically the latest discussion feed, unfortunately mine is still pulling replies within topics. I'm not interested in only being able to do that as it basically gimps what I'm trying to do, but I was curious why mine pulls replies into the feed. Thanks again.

    Posted 6 months ago #
  8. Here is a temporary solution:
    rss.php: http://llbb.pastebin.com/f5c1a8a37
    rss2.php of template: http://llbb.pastebin.com/f24cd6fd3

    If you need the last post content of each topic, please find a recent topic Excerpt and combine this with it.

    Edit: Oops... just find out you are also the starter of that topic.

    Posted 6 months ago #
  9. If you can wait, this functionality is probably going to be in the next release anyway.

    I've already started work on it. I was just putting it aside until I got the new installer and options pages finished.

    Posted 6 months ago #
  10. Doobus
    Member

    I can wait, thanks for your efforts.

    Posted 6 months ago #
  11. Doobus
    Member

    I was testing your temp fix Livibetter, and I was running into this error:

    XML Parsing Error: no element found
    Location: http://localhost/wrdp2/bbp1/rss.php?forum=1
    Line Number 12, Column 1:

    Line 12 of rss.php reads: <link><?php bb_option( 'uri' ); ?></link>

    Posted 6 months ago #
  12. What is that line of generated RSS? <link></link>? (posting completely to pastebin would be better to find out)
    Have you set $bb->uri in your config file?
    What browser are you using?

    Posted 6 months ago #
  13. Doobus
    Member

    I've set my $bb->uri to http://localhost/wrdp2/bbp1, I'm on Firefox.

    Posted 6 months ago #
  14. Could you paste complete RSS feed source?

    Posted 6 months ago #
  15. Doobus
    Member

    I'm a little confused, are you asking for the url of my feed source?

    Posted 6 months ago #
  16. The generated result, when you navigate to /wrdp2/bbp1/rss/.

    The thing starts with <?xml

    Posted 6 months ago #
  17. Doobus
    Member

    When I access wrdp2/bbp1/rss.php, I get this error:

    XML Parsing Error: no element found
    Location: http://localhost/wrdp2/bbp1/rss.php?forum=1
    Line Number 12, Column 1:

    If I try to access it omitting the .php suffix, I get a 404.

    Posted 6 months ago #
  18. I have no problems on my test forum.

    When you see that error, right click, view source, then paste that source here.

    Posted 6 months ago #
  19. Doobus
    Member

    Here is the source:

    <?xml version="1.0"?><!-- generator="bbPress" -->

    <rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    >

    <channel>
    <title></title>
    <link>
    <b>Fatal error</b>: Call to undefined function bb_option() in <b>C:\wamp\www\wrdp2\bbp1\rss.php</b> on line <b>12</b>

    Posted 6 months ago #
  20. Are you using bbPress 0.8.3?

    Posted 6 months ago #
  21. Doobus
    Member

    Yes

    Posted 6 months ago #
  22. I just noticed I gave you wrong link to rss.php

    This is the correct one: http://llbb.pastebin.com/f1aee01cf

    Posted 6 months ago #
  23. Doobus
    Member

    Great it works. Thanks for the temp fix, can't wait till the forum feeds can do this as well.

    Posted 6 months ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.