Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » [archived] kgr_safe_excerpt

#16 2004-07-29 07:52:28

philipashlock
Member
From: Bellingham, Washington - USA
Registered: 2004-06-20
Posts: 58
Website

Re: [archived] kgr_safe_excerpt

holli.p:

Using my plugin your pictures should stay in the excerpt if they fall within the amount of the body entry that you specify to include in the excerpt.

However, I don’t think it’s possible to use either my plugin or kgr_safe_excerpt on only selected articles

I posted some information about my plugin and how it relates to kgr_safe_excerpt earlier in this thread, but the original post is also available here:

http://forum.textpattern.com/viewtopic.php?id=2777

Offline

#17 2004-07-29 08:13:48

holli.p
Member
From: Pinneberg/Germany
Registered: 2004-04-21
Posts: 83
Website

Re: [archived] kgr_safe_excerpt

> philipashlock wrote:

However, I don’t think it’s possible to use either my plugin or kgr_safe_excerpt on only selected articles

I think it’s possible. You just need another form with the special plugin tags. I call it “excerpt”.

when you need an excerpt, you can use the option “Override form” in textpattern, to change the default form with the excerpt form.

But how I written in the tread of your plugin is my problem to find the right tags to build a proper form.
http://forum.textpattern.com/viewtopic.php?id=2777


Visit my Textpattern sites:
Northerndelight | Hasenbude
Curiculum Vitare | Rezepteblock

Offline

#18 2004-08-02 22:08:59

claudia
New Member
From: rotterdam (wonderfull city!)
Registered: 2004-07-06
Posts: 4
Website

Re: [archived] kgr_safe_excerpt

i tryied to use this plugin. i uploaded it and used the tag in the form of the articles. before i used it in only in the template.

when i used it in the form, i had only one article on the front page, where i wanted it to be, but the other articles dissapeared.
in the page of the article itself, the link “read more” still appeared also when there was nothing else to read.

and now, whenever i try to use the link i was using to access the articles ( it is a list of sections), i get the error:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 1316 bytes) in /www/www.bridgepeople.com/http/tati/textpattern/lib/txplib_db.php on line 181

i must have done something very very wrong.
some help????
txs!
claudia

Offline

#19 2004-08-25 11:41:50

Martagnan
Member
From: Humberside - uk
Registered: 2004-06-21
Posts: 90
Website

Re: [archived] kgr_safe_excerpt

My HTML/Textile is stripped out in the excerpts??

Offline

#20 2004-09-04 05:06:41

vagari
Plugin Author
Registered: 2004-08-25
Posts: 19

Re: [archived] kgr_safe_excerpt

Normally excerpts don’t have paragraphs, so I put them in, but if the body is too small to be cut up it’ll bring in the html. So my wrapped p’s were getting doubled and breaking my validation. :)

I added in this after the “esle if”…

<code>
$excerpt = preg_replace(“/^\t<p>/i”,”“,$excerpt);
$excerpt = preg_replace(“/\s*<\/p>\s*$/i”,”“,$excerpt);
</code>

To pull out the first and last p’s. It’s worked so far, I hope this is helpful. :)

Great plugin Kurt.

Offline

#21 2004-11-17 12:12:01

Martagnan
Member
From: Humberside - uk
Registered: 2004-06-21
Posts: 90
Website

Re: [archived] kgr_safe_excerpt

I cant work this out!!!

I have set my <em>kgr_safe_excerpt</em> to show only the first 20 words when in an article list. (incidentally column on my pages). You can see the problem with a gap below my headline on the first article.

For some reason on the first article (and only the first article) it ADDS extra <p> tags?

I tried Vagari code above but it doesnt seem to do anything?

Cheers

Last edited by Martagnan (2004-11-17 12:14:09)

Offline

#22 2004-11-17 21:39:32

KurtRaschke
Plugin Author
Registered: 2004-05-16
Posts: 275

Re: [archived] kgr_safe_excerpt

Martagnan:

I’m stumped. I have to admit that I really can’t see any reason for the extra <code>&lt;p&gt;</code> tags.

-Kurt

Last edited by KurtRaschke (2004-11-17 21:39:57)


kurt@kurtraschke.com

Offline

#23 2004-11-18 03:37:56

vagari
Plugin Author
Registered: 2004-08-25
Posts: 19

Re: [archived] kgr_safe_excerpt

That’s odd Martagnan, it looks like the problem is in the form (from all the extra whitespace) but I don’t understand why it’d only be in the first list item. I don’t know if it’ll help but I’ll include my form.

<code>
<div class=”<txp:author_id />Box”>
<h3><txp:permlink><txp:title /></txp:permlink></h3>
<p><txp:kgr_safe_excerpt linktext=”…” words=“35” /></p>
<txp:posted /> – by <txp:author /> – <txp:comments_invite /></div>
</code>

Good luck, let us know if you figure it out. :)

Oh yeah, and I like the design on your site.

Last edited by vagari (2004-11-18 03:41:42)

Offline

#24 2004-11-18 09:37:06

Martagnan
Member
From: Humberside - uk
Registered: 2004-06-21
Posts: 90
Website

Re: [archived] kgr_safe_excerpt

KurtRaschke > Im probably going to discover its my fault. I’ll have a poke around later today – thanks!

vagari > Ill give that a go later thanks.

Offline

#25 2004-11-18 14:45:27

Martagnan
Member
From: Humberside - uk
Registered: 2004-06-21
Posts: 90
Website

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

#26 2004-11-26 14:36:53

Martagnan
Member
From: Humberside - uk
Registered: 2004-06-21
Posts: 90
Website

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

#28 2005-04-10 20:38:44

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

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

  1. Index
  2. » Archives
  3. » [archived] kgr_safe_excerpt

Board footer

Powered by FluxBB