Textpattern Forum

You are not logged in. Register | Login | Help

#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: 361
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
textpattern.net :: TextBook – Textpattern wiki

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

Board footer

Powered by FluxBB