Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#49 2006-08-15 00:52:37

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

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

#50 2006-08-15 03:53:54

davej
Member
From: Ireland
Registered: 2005-11-01
Posts: 27
Website

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

#52 2009-11-27 07:32:21

jstubbs
Moderator
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

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

#53 2009-12-19 19:09:57

Grégocentrique
Plugin Author
From: Rouen, France
Registered: 2009-12-19
Posts: 28
Website

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

#54 2009-12-21 14:55:57

Grégocentrique
Plugin Author
From: Rouen, France
Registered: 2009-12-19
Posts: 28
Website

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

#55 2009-12-21 15:09:24

jstubbs
Moderator
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: [plugin] [ORPHAN] ajw_comments_feed

Whoa thanks! This works now on TXP Tips – thanks a lot Grégocentrique!

Offline

#56 2009-12-21 15:10:54

SuMu
Member
From: Germany - Wuppertal
Registered: 2008-03-06
Posts: 242
Website

Re: [plugin] [ORPHAN] ajw_comments_feed

Thanks :-)


viele Grüße
SuMu

Psychomuell + blogZicke

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

#58 2011-07-13 04:57:00

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

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>

My Plugins

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,306

Re: [plugin] [ORPHAN] ajw_comments_feed


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

Board footer

Powered by FluxBB