https://www.icyphoenix.com/viewtopic.php?f=35&t=6333&p=43297#p43297
-----------------------------------
christmanrd
Sat 22 Aug, 2009 12:07

Re: Icy Phoenix 1.3.0.53 - RSS Feed
-----------------------------------
Hey there. Hope all is well with you.

I am working on the rss.php to prevent the everything being published on the feed. In other words, what is happening is that the whole topic, etc it being displayed and I only want the Topic title, dtd pstd, etc. nothing else.

I am looking here at this code which is in the rss.php. Can you help?


[code linenumbers=false]// Return topics only, or all posts?  Specified in the URL with "t=".  Defaults to all posts (0).
$topics_only = (isset($_GET['t'])) ? intval($_GET['t']) : 1;
$topics_view = (isset($_GET['topic'])) ? intval($_GET['topic']) : 0;
$sql_topics_only_where = '';
if($topics_only == 1)
{
   $sql_topics_only_where = 'AND p.post_id = t.topic_first_post_id';
}
if($topics_view != 0)
{
   $sql_topic_view = 'AND t.topic_id =' . $topics_view;
}
[/code]

Thanks,


