Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [archived] kgr_safe_excerpt
If there is more article to view and the ‘Read More’ link is required, all tags are stripped out, including the <p>
tags.
If there are no more words than the excerpt the <p>
tags are kept and it displays fine.
Can we stop it from stripping the <p>
tags?
Offline
Re: [archived] kgr_safe_excerpt
Ok… finally I worked out that vagari’s hack above fixes my problem – thanks vagari! Can this ‘hack’ be implimented into main plugin someway?
Offline
#27 2004-11-29 00:30:27
- KurtRaschke
- Plugin Author
- Registered: 2004-05-16
- Posts: 275
Re: [archived] kgr_safe_excerpt
> Martagnan wrote:
> Ok… finally I worked out that vagari’s hack above fixes my problem – thanks vagari! Can this ‘hack’ be implimented into main plugin someway?
Well, I have been travelling the past few days, and I have also been very busy with schoolwork recently, but I’ll try to get an updated plugin released soon.
-Kurt
kurt@kurtraschke.com
Offline
Re: [archived] kgr_safe_excerpt
hi, i’m using this plugin quite happily…
wondering though whether there’s a way or an attribute that could be added to opt NOT to use the whole excerpt if there is one….
that is, if i want only the first 20 words of the article to show, kgr_safe_excerpt does that beautifully — until it comes across an article that has a manually-created excerpt.. then kgr_safe_excerpt prints the whole excerpt instead of the first 20 words… if i really just want 20 words to show..whether it’s 20 words of the article or 20 words of the excerpt.. how can i accomplish this?
textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation
Offline
#29 2005-04-21 01:05:58
- proph3t
- Member
- Registered: 2004-09-26
- Posts: 31
Re: [archived] kgr_safe_excerpt
Not working for me on the latest versions of Textpattern strangely enough…
Anyone have a fix? I’ve narrowed the problem down to the implode/explode functions area.
Maybe its just my server? www.winatpoker.com/page.php
Offline
#30 2005-04-21 21:18:14
- proph3t
- Member
- Registered: 2004-09-26
- Posts: 31
Re: [archived] kgr_safe_excerpt
No one?
Offline
#31 2005-04-21 21:24:02
- KurtRaschke
- Plugin Author
- Registered: 2004-05-16
- Posts: 275
Re: [archived] kgr_safe_excerpt
I’ve been meaning to release an update for a while now…I’ll see if I can get something put together by the weekend.
Features in the (hopefully) upcoming release:
- RC3 support
- Option to count characters as opposed to words
- Option to count words/characters even if the excerpt is being shown
-Kurt
kurt@kurtraschke.com
Offline
Re: [archived] kgr_safe_excerpt
:) yay! thanks Kurt
textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation
Offline
#33 2005-04-22 00:07:56
- proph3t
- Member
- Registered: 2004-09-26
- Posts: 31
Re: [archived] kgr_safe_excerpt
thanks!
Offline
#34 2005-04-24 02:10:21
- KurtRaschke
- Plugin Author
- Registered: 2004-05-16
- Posts: 275
Re: [archived] kgr_safe_excerpt
Okay, the new version is out (same location as before; see the first post in this thread). As promised, it works under RC3, and there are two new parameters: “countchars” and “countexcerpt”, which both do just what you’d expect. Set “countchars” to 1, or “true”, or any value, and then the value of the “words” parameter will used to count characters instead of words. If “countexcerpt” is true, then the excerpt, if it exists, will used, but it will be truncated based on word or character count according to the same rules applied to the body.
-Kurt
kurt@kurtraschke.com
Offline
#35 2005-04-26 22:57:51
- proph3t
- Member
- Registered: 2004-09-26
- Posts: 31
Re: [archived] kgr_safe_excerpt
Hey Kurt, wonderful plugin thanks for updating.
I was wondering, could you make it so it automatically adds a … at the end of where it cuts it off.
Also, it seems like some excerpts are being put inside <p>‘s and some not, or something like that, is there a way to make them consisitent? Thanks a bunch once agian.
Offline
Re: [archived] kgr_safe_excerpt
This plugin looks great, but I’m having some problems getting it to work in RC3.
I added txp:kgr_safe_excerpt words=“100” linktext=“Read More” to my list form, but the output always says “more…” instead of “Read More”, and nothing changes when I change the words parameter. Also, it cuts off everything that comes after the tag (it deletes my comments_invite tag).
I’m probably missing something obvious, but can anyone suggest anything?
Thanks!
Robert
P.S. How do I enclose a tag in <> when I post a message here?!
Futurosity | Creating Possibilities
Mystics of the Ordinary | One Man. One Year. One Novel.
Offline