Textpattern Forum

You are not logged in. Register | Login | Help

#11 2004-07-18 18:29:55

realish
New Member
Registered: 2004-07-11
Posts: 6
Website

Re: [archived] cnj_excerpt

[blushes again]

As you can tell, Damelon, I’m new to all this. I’m in the long and involved process of moving three MT weblogs over to TP on TD. This is the first time I’ve even attempted to use a plugin. I suspect it will be easier next time.

Anyway, that’s got it working. Many thanks to you! (And to octover for making it.)

Offline

#12 2005-03-01 10:56:04

sthmtc
Member
From: CGN, GER
Registered: 2005-01-17
Posts: 586
Website

Re: [archived] cnj_excerpt

great!! thank you so much.

Offline

#13 2005-03-01 21:09:09

heimar
New Member
From: ebonia
Registered: 2004-11-03
Posts: 6

Re: [archived] cnj_excerpt

does it work with rc3?


thank you, Jebus!

Offline

#14 2005-04-08 20:39:44

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

Re: [archived] cnj_excerpt

very useful plugin..
i’m using it on RC3.. the cnj_if_excerpt function seems to go through fine… but everything within cnj_if_no_excerpt gets ignored. anyone have suggestions?
appreciated…


textpattern.org :: find and share Textpattern resources
textpattern.net :: TextBook – Textpattern wiki

Offline

#15 2005-04-08 22:39:06

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

Re: [archived] cnj_excerpt

okay, with much thanks to Remillard and ubernostrum, here is the solution to this problem:

edit the plugin and just replace the entire text with the following:

<pre>
function cnj_if_excerpt($atts, $thing) { global $thisarticle; if(preg_match(‘/\S/’, $thisarticle[‘excerpt’])) { return parse($thing); } else { return; }
}

function cnj_if_not_excerpt($atts, $thing) { global $thisarticle; if(!preg_match(‘/\S/’, $thisarticle[‘excerpt’])) { return parse($thing); } else { return; }
}
</pre>

‘should now work as intended :)


textpattern.org :: find and share Textpattern resources
textpattern.net :: TextBook – Textpattern wiki

Offline

#16 2005-08-05 11:22:37

RUDEWORKS
New Member
Registered: 2005-06-09
Posts: 6

Re: [archived] cnj_excerpt

I’ve been looking for this but the author is not hosting it anymore… Can anyone share this plug-in?

Offline

#17 2005-09-13 09:24:59

realish
New Member
Registered: 2004-07-11
Posts: 6
Website

Re: [archived] cnj_excerpt

luvagod, will somebody please track down this plugin and paste the text in this thread?

(Suffice to say, the text pasted a few messages up doesn’t work.)

Last edited by realish (2005-09-13 09:25:28)

Offline

#18 2006-08-06 18:18:24

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

Re: [archived] cnj_excerpt

pretty delayed response, but hosted now at textpattern.org


textpattern.org :: find and share Textpattern resources
textpattern.net :: TextBook – Textpattern wiki

Offline

Board footer

Powered by FluxBB