You are not logged in.
does it work with rc3?
thank you, Jebus!
Offline
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
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
I’ve been looking for this but the author is not hosting it anymore… Can anyone share this plug-in?
Offline
pretty delayed response, but hosted now at textpattern.org
textpattern.org :: find and share Textpattern resources
textpattern.net :: TextBook – Textpattern wiki
Offline