Content last modified Monday 6 March 2017
hop to #bottom
Categories:
About It:
Rate it:
  • Helpful?
  • 1 Yes
  • 0 No
Flag it:
Contact Reason [ ? ]

Add link to comments in feeds

A simple one-line addition to both rss.php and atom.php will allow for displaying a link to comments inside the body of your website’s feeds:

Comment on this Article

These modifications were implemented on 1.0RC3, but there is no reason why they couldn’t be used or adapted for earlier Textpattern versions.

/textpattern/publish/rss.php :: line 65
/textpattern/publish/atom.php :: line 124

Simply add the following line to both rss.php & atom.php on the above-specified lines:

$Body .= doSpecial(tag(tag( 'Comment on this Article', 'a', ' href="' . permlinkurl($a) . '#' . gTxt('comment') . '"'), 'p'));
Article Request Count:
Posted here:
07 May 2005
Article modified:
07 May 2005

You may want to leave your comments/questions at the Forum thread for quicker feedback. Otherwise, comment away:

Your comment will NOT be submitted until you click the 'Submit' button on the next pageload.

Commented (13)

goow site – good work!
Ð? где тут архив новоÑ?тей?

That works a treat, thanks! Check my stuff at http://podcastparadise.com
Thanks for looking.

Samantha Jackson:

God is the foundation of all evil

2000 artists : download video. full lyrics, music photo

I have new health and can sell it in you need new health :),

Subscribe to this article's comments RSS feed. [ ? ]   View Recent Comments across the site.

Would you care to write a comment or visit the forum discussion?

You know you want to visit the Archives.

Browse

Categories


Articles

There are also tag clouds, 'cause those are fun.
Published with Textpattern