forum rss link for topics

 We want to make new rss blocks for the home page that will display only one topic from the forums instead of all recent posts.

I hope I am able to make this understandable...

We have a forum topic for jokes, we would like to have an rss feed block on the home page that only shows the 3 last posts in that topic.
 We have a forum topic for fun. We want another rss feed block on the home page to show the last 3 posts in that topic.

etc.

Is it possible to break down the rss feed in this way?

Bill and Deb
Quote · 26 Jul 2013

Yes. When you go into your forum topic you will see a RSS feed link. Click that link to get the url.

Copy that url.

Then go to the page builder for the home page and drag in a RSS Block.

Paste that url as the feed url and set the number of items to display in the block.

https://www.deanbassett.com
Quote · 26 Jul 2013

Holy crap, that was so easy even I can do it...
 Thank you Deano

Bill and Deb
Quote · 27 Jul 2013

Now, How to get it to show the last post in that topic on the front page.

It shows posts starting with the first post in that topic, not the last, so it looks like the forum isn't being used until members click and scroll.

Bill and Deb
Quote · 1 Oct 2013

I have been trying to figure this out since October. Still have RSS feeds showing the first post in a topic instead of the last post. Anyone?

Bill and Deb
Quote · 29 Jan 2014

Have a look at the Forum.php and then in particular the function getRssUpdatedTopics.

That is where are the magic starts.

Dedicated servers for as little as $32 (28 euro) - See http://denre.com for more information
Quote · 29 Jan 2014

Thank you Denre,
Your input just might have us on the right track.

 

This is all we can find on forum.php that refers to RSS and relates to ascending or descending.
I apologize for not being good with this php stuff, still trying to learn it and am afraid to make a mess of things.
 Any thought as to what will happen if we change the highlighted desc below to asc?

 

 

 

function getRssForum ($forum_uri)
    {
        global $gConf;

        $this->_rssPrepareConf ();

        $f = $this->fdb->getForumByUri (filter_to_db($forum_uri));
        $forum_id = $f['forum_id'];

        if (!$f) exit;

        $a = $this->fdb->getTopics ($forum_id, 0);

        reset ($a);
        $items = '';
        $lastBuildDate = '';
        while ( list (,$r) = each ($a) ) {
            $lp = $this->fdb->getTopicPost($r['topic_id'], 'last');

            $td = $this->fdb->getTopicDesc ($r['topic_id']);
            $td = orca_mb_substr($td, 0, $gConf['topics_desc_len']);
            if (orca_mb_len($td) == $gConf['topics_desc_len'])
                $td .= '...';

            if (!$lastBuildDate)
                $lastBuildDate = $lp['when'];

            $items .= $this->_rssItem ($r['topic_title'], sprintf($gConf['rewrite']['topic'], $r['topic_uri']), $td, $lp['when']);
        }

        return $this->_rssFeed ($f['forum_title'], sprintf($gConf['rewrite']['forum'], $f['forum_uri'], 0), $f['forum_title'], $lastBuildDate, $items);
    }

Bill and Deb
Quote · 30 Jan 2014

$a = $this->fdb->getTopics ($forum_id, 0);

That is where the list of topics gets retrieved from the DB.

I suggest you check that function, or replace it with your own

Dedicated servers for as little as $32 (28 euro) - See http://denre.com for more information
Quote · 30 Jan 2014

We managed to get this done on another dolphin site, but it was a 7.0.9 version. It was pretty simple too, only had to change dexc to asc in 3 places. We just can't remember what it was that we did to save our lives. I don't have the knowledge to write my own php code and feel comfortable that I won't destroy Orca altogether.

Bill and Deb
Quote · 30 Jan 2014
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.