Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [plugin] [ORPHAN] ajw_comments_feed
You are a beautiful beautiful man.
So far, looks like it’s working fantastically.
Thank you!!
textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation
Offline
Re: [plugin] [ORPHAN] ajw_comments_feed
That’s great Andrew, all seems to be working well!
Thank You!
Offline
#51 2007-04-30 05:52:40
- Logoleptic
- Plugin Author
- From: Kansas, USA
- Registered: 2004-02-29
- Posts: 482
Re: [plugin] [ORPHAN] ajw_comments_feed
Any chance of getting an url_only
attribute, similar to the one used with ajw_clean_feed
?
I get a certain amount of page metadata in the <head>
by doing some hocus-pocus with an extra article tag. If I had this attribute, I could add a clean auto-discovery link
to every blog post that has comments. :-D
Edit
I’m aware that I could do this already with href="<txp:permlink />/rss/"
. To clarify, I’d like to do something like this:
<link rel="alternate" type="application/rss+xml" title="Comments on this article (last 50)" href="<txp:ajw_clean_feed_link flavor="rss" url_only="y" limit="50" />" />
This way, I could circumvent the 5-post syndication limit that I’ve set for articles in Txp’s preferences. For now, I’ll just bump the syndication limit up to 10.
Last edited by Logoleptic (2007-04-30 06:01:54)
Offline
Re: [plugin] [ORPHAN] ajw_comments_feed
Anyone else noticed that this plugin stopped working with 4.2? Its a very nice plugin – any nice programmers want to take this forward?
Offline
Re: [plugin] [ORPHAN] ajw_comments_feed
I noticed it too.
It seems to be a gzip encoding problem. Maybe RSS feeds are gzip encoded since 4.2?
Offline
Re: [plugin] [ORPHAN] ajw_comments_feed
Ok I figured out how to fix the problem.
Edit the plugin code as following :
Replace the lines
//turn on compression if we aren't using it already
if (extension_loaded('zlib') && ini_get("zlib.output_compression") == 0 && ini_get('output_handler') != 'ob_gzhandler' && !headers_sent()) {
@ob_start("ob_gzhandler");
}
by the lines :
//turn on compression if we aren't using it already
if (extension_loaded('zlib') && ini_get("zlib.output_compression") == 0 && ini_get('output_handler') != 'ob_gzhandler' && !headers_sent()) {
$buf = '';
while ($b = @ob_get_clean())
$buf .= $b;
@ob_start('ob_gzhandler');
echo $buf;
}
and the line
$title = escape_output(strip_tags($article['Title']));
by the line
$title = htmlspecialchars(strip_tags($article['Title']));
It should work now.
Offline
Re: [plugin] [ORPHAN] ajw_comments_feed
Whoa thanks! This works now on TXP Tips – thanks a lot Grégocentrique!
Offline
Offline
#57 2011-07-13 02:39:01
- aliceaod
- Member
- Registered: 2011-07-11
- Posts: 18
Re: [plugin] [ORPHAN] ajw_comments_feed
Docs say this works just like txp:feed_link tag, which can be wrapped around an image.
I tried
<txp:ajw_comments_feed_link /><txp:image id=“30” class=“align” /></txp:ajw_comments_feed_link>
but no joy. How can I link an RSS Icon to this?
Offline
Re: [plugin] [ORPHAN] ajw_comments_feed
Looks to me like it should be
<txp:ajw_comments_feed_link><txp:image id=“30” class=“align” /></txp:ajw_comments_feed_link>
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
#59 2012-07-09 14:51:12
- spyke584
- New Member
- Registered: 2012-07-01
- Posts: 2
Re: [plugin] [ORPHAN] ajw_comments_feed
can anyone send me a correct link for latest version because link is broken.. thanks!
Offline
#60 2012-07-09 15:12:30
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,311
Re: [plugin] [ORPHAN] ajw_comments_feed
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline