Need help creating an RSS feed from comment module

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
casidougal
Forum Members
Forum Members
Posts: 98
Joined: Tue Jun 06, 2006 10:08 pm
Location: USA

Need help creating an RSS feed from comment module

Post by casidougal »

CMSMS 1.5.3, Comments Module 1.9.2, LAMP - PHP 4.4.9, MySQL 5
CGFeedMaker 1.0.4

I was able to tie in my news module with CGFeedMaker with no problems, but 've been unsuccessful in my attempts to create RSS feeds through the comments module.

On CGFeedMaker's help page it states:
This module provides the ability to build and manage RSS Feeds consisting of data from any CMS Made Simple module that supports a summary view
Does anyone know if the comment module meets this criteria?  My most recent failed Comment Module RSS Feed Template is below:

Code: Select all

{* original rss feed template *}
<?xml version="1.0"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
  {* note: if you have not configured pretty urls or mod rewrite, the next line may fail when trying to validate the feed *}
  <atom:link href="{$feed_url}" rel="self" type="application/rss+xml" />
    <title>{$feed.title}</title>
    {if isset($feed.link) && !empty($feed.link)}<link>{$feed.link}</link>{/if}
    {if isset($feed.description) && !empty($feed.description)}<description>{$feed.description}</description>{/if}
    {if isset($feed.copyright) && !empty($feed.copyright)}<copyright>{$feed.copyright}</copyright>{/if}
    {if isset($generator)}<generator>{$generator}</generator>{/if}
    {if isset($feed.managing_editor) && !empty($feed.managing_editor)}<managingEditor>{$feed.managing_editor}</managingEditor>{/if}
    {if isset($admin_email)}<webMaster>{$admin_email} ({$admin_user->firstname} {$admin_user->lastname})</webMaster>{/if}
    {if isset($feed.image) && !empty($feed.image)}
      <image>
	{if isset($feed.description) && !empty($feed.description)}<description>{$feed.description}</description>{/if}
        {if isset($feed.link) && !empty($feed.link)}<link>{$feed.link}</link>{/if}
        <title>{$feed.title}</title>
        <url>{$file_location}/{$feed.image}</url>
      </image>
    {/if}

    {comments assign='junk'}
    {foreach from=$items item='entry'}
    <item>
      <title>{$entry->comment_author} | {$entry->comment_title}</title>
      {capture assign='description'}{$entry->comment_data}{/capture}
      <description>{$description|summarize:200}</description>
      <pubDate>{$entry->date}</pubDate>
    </item>
    {/foreach}
  </channel>
</rss>
While I would love to use CGFeedMaker for this as to take advantage of the feed categories, I've noticed in looking through the code for the comment module there seems to be a built in rss function that I can find no reference to. I see action.rss.php and in comments.module.php 10/6/2008 update notes from Elijah Lofgren and Andi Petzoldt stating,
Added notify functionality (EMail and RSS) for a comment author by new comments.
 

Thank you in advance for your assistance.
casidougal
Forum Members
Forum Members
Posts: 98
Joined: Tue Jun 06, 2006 10:08 pm
Location: USA

Re: Need help creating an RSS feed from comment module

Post by casidougal »

I ended up hiring ajprog off the commercial forum who did a great job creating a rss feed for the comments for each page or news post. I highly recommend his work.

Coincidentally, he did not use CGFeedMaker but rather modified the inherent RSS functionality of the comment module.
inyerface
Forum Members
Forum Members
Posts: 191
Joined: Mon Nov 26, 2007 4:46 pm

Re: Need help creating an RSS feed from comment module

Post by inyerface »

That's great.  Can you please share?
Post Reply

Return to “Modules/Add-Ons”