Skip to:
Content
Pages
Categories
Search
Top
Bottom

Limiting RSS Feed to First Post Only

  • @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?

Viewing 22 replies - 1 through 22 (of 22 total)
  • @trent

    Member

    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

    @doobus

    Member

    Thanks figured it out.

    @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!

    @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.

    @livibetter

    Member

    Is this close to what you want? Topic Feeds

    If so, just be patient.

    @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.

    @livibetter

    Member

    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.

    @sambauers

    Participant

    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.

    @doobus

    Member

    I can wait, thanks for your efforts.

    @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>

    @livibetter

    Member

    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?

    @doobus

    Member

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

    @livibetter

    Member

    Could you paste complete RSS feed source?

    @doobus

    Member

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

    @livibetter

    Member

    The generated result, when you navigate to /wrdp2/bbp1/rss/.

    The thing starts with <?xml

    @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.

    @livibetter

    Member

    I have no problems on my test forum.

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

    @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/&#8221;

    xmlns:dc=”http://purl.org/dc/elements/1.1/&#8221;

    >

    <channel>

    <title></title>

    <link>

    <b>Fatal error</b>: Call to undefined function bb_option() in <b>C:wampwwwwrdp2bbp1rss.php</b> on line <b>12</b>

    @livibetter

    Member

    Are you using bbPress 0.8.3?

    @doobus

    Member

    Yes

    @livibetter

    Member

    I just noticed I gave you wrong link to rss.php

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

    @doobus

    Member

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

Viewing 22 replies - 1 through 22 (of 22 total)
  • You must be logged in to reply to this topic.
Skip to toolbar