Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-12-13 17:06:56

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

[plugin] [ORPHAN] ajw_nofeed

ajw_nofeed

This plugin will allow you to hide certain problematic/invalid body or excerpt content from being output in your RSS and Atom feeds.

Last edited by Andrew (2007-01-03 03:59:10)

Offline

#2 2005-12-13 20:56:25

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

Re: [plugin] [ORPHAN] ajw_nofeed

What a great little solution…Thanks once again Andrew.

Offline

#3 2007-07-18 08:13:28

gemal
Member
From: Copenhagen, Denmark
Registered: 2007-01-09
Posts: 107
Website

Re: [plugin] [ORPHAN] ajw_nofeed

Andrew wrote:

ajw_nofeed This plugin will allow you to hide certain problematic/invalid body or excerpt content from being output in your RSS and Atom feeds.

It doesn’t seems to work in TextPattern 4.0.5. Changing the source to this seems to work:

function ajw_nofeed($atts, $thing)
{
	global $permlink_mode;
	$feed = false;
	if ($permlink_mode == "messy") {
		if (gps('rss') || gps('atom'))
			$feed = true;
	} else {
		$req = serverSet('REQUEST_URI');
		extract(chopUrl($req));
		if ($u1 == 'rss' || $u1 == 'atom')
			$feed = true;
	}
	return ($feed ? '' : parse($thing));
}

Offline

Board footer

Powered by FluxBB