Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#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
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
docs.textpattern.io :: Textpattern user documentation
Offline
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
docs.textpattern.io :: Textpattern user documentation
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
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
Re: [archived] cnj_excerpt
pretty delayed response, but hosted now at textpattern.org
textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation
Offline