Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2006-09-24 05:39:04

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: [plugin] [ORPHAN] rss_auto_excerpt

Does anyone have any other solutions for PREV and NEXT links for the plugin?
I read the solution above, but its not working correctly.

my code is thus:
<code>
<txp:if_category>
<txp:rss_unlimited_categories_article_list section=“blog” form=“blog-list” />
<txp:else />
<txp:if_individual_article>
<txp:article_custom section=“sermons” status=“live” form=“blog” limit=“1” />
<txp:else />
<txp:article_custom section=“blog” limit=“1” status=“sticky” />
<txp:article limit=“5” pageby=“5” form=“blog-list” status=“live” />

<p><txp:link_to_next>NEXT</txp:link_to_next>
<txp:link_to_prev>PREV&nbsp;</txp:link_to_prev></p>

</txp:if_individual_article>
</txp:if_category>
</code>

the site in question is here: liberti.artiswork.org
(which is an poorly styled page currently :)

Thanks.


Offline

#14 2006-09-28 01:57:11

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: [plugin] [ORPHAN] rss_auto_excerpt

err,
Hellooo helllo hellooo (echo effect)

Anybody getting this to work with link to next and prev with pageby attributes?


Offline

#15 2006-10-01 08:41:22

Jaro
Member
From: S/F
Registered: 2004-11-18
Posts: 89

Re: [plugin] [ORPHAN] rss_auto_excerpt

I would like to use this plugin to insert an excerpt of an article to the meta description tag but I have problems to install it. I get the following error:

Notice: unserialize(): Error at offset 0 of 2335 bytes in /xxxxxx/xxxx.xxxx.com/textpattern/include/txp_plugin.php on line 152

Anyone know how could I fix this?

Offline

#16 2006-10-05 21:24:28

TNT
Member
From: Rotterdam, Netherlands
Registered: 2006-01-06
Posts: 256
Website

Re: [plugin] [ORPHAN] rss_auto_excerpt

Using this plugin with great pleasure, but since I re-designed myy site I noticed something that causes to break my layout. Just a little, but it’s happening.

In the source I noticed a strange looking html-tag: <code><p /></code>. I know I did not put that in a page or a form (yes, I doublechecked), so I’m guessing it’s the plugin’s fault. Am I right? And if I’m right, could somebody tell me how to get rid of the strange <code><p /></code>?


Prrrrrrrr

Offline

#17 2006-10-05 21:28:17

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: [plugin] [ORPHAN] rss_auto_excerpt

TNT,
its the same thing I mentioned in the last thread, you need to give the wraptag or break? an empty argument


Offline

#18 2006-10-06 09:16:20

TNT
Member
From: Rotterdam, Netherlands
Registered: 2006-01-06
Posts: 256
Website

Re: [plugin] [ORPHAN] rss_auto_excerpt

ma_smith,

Got the other one working now, but this plugin doesn’t have a <code>striptag</code>. Any more suggestions here, too?


Prrrrrrrr

Offline

#19 2006-10-06 12:29:23

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: [plugin] [ORPHAN] rss_auto_excerpt

This is how I’m using it here

<code>
<txp:rss_auto_excerpt words=“20” linktext=”“ linkwraptag=”“ ending=”…” />
</code>


Offline

#20 2006-10-06 14:33:37

TNT
Member
From: Rotterdam, Netherlands
Registered: 2006-01-06
Posts: 256
Website

Re: [plugin] [ORPHAN] rss_auto_excerpt

Ah, it was the *link*wraptag instead of the wraptag. Thanks! The crazy tag is gone now. Now I have to fix my own crooked, dodgy design to get it the way I want it… :-)


Prrrrrrrr

Offline

#21 2006-10-27 01:54:30

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: [plugin] [ORPHAN] rss_auto_excerpt

Feature request: Ignore content of certain HTML tags like img tags or linked images

Very often I have one or more linked Images at the beginning of my articles. I would like the plugin to ignore these links and image tags when creating an excerpt.

A pure text excerpt would be very welcome …


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

#22 2006-10-27 13:23:48

wilshire
Plugin Author
From: Akron, Ohio
Registered: 2004-08-27
Posts: 656
Website

Re: [plugin] [ORPHAN] rss_auto_excerpt

rss_auto_excerpt 0.2

Many new features including the following:

  • striptags attribute to remove all HTML tags from the auto excerpt
  • overrideexcerpt attribute to display auto excerpt even if one already exists for the article
  • showlinkwithexcerpt attribute to allow you to turn off the automatic link when an auto excerpt is displayed
  • skiplength, skipwords and skipparagraphs attributes to create “reverse” excerpts which display the article body except for the first x characters, words or paragraphs.

More details and an example of a “reverse” excerpt can be found in the plugin help.

rss_auto_excerpt 0.2

Download

Offline

#23 2006-10-27 14:33:07

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

Re: [plugin] [ORPHAN] rss_auto_excerpt

Thanks!!!! This allows me to use the excerpt as the title attribute of my permalinks!!!!

Offline

#24 2006-10-27 15:30:39

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: [plugin] [ORPHAN] rss_auto_excerpt

@Rob: Great work!!!

Minor issue: Using striptags is not possible with paragraphs as no paragraphs are left after striptags. The whole article is shown.

Tag tweaking / Minor hack: If somebody wants to keep certain tags it is possible to add them to the plugin code

Strip all tags: $body = ($striptags) ? strip_tags($body) : $body;
Keep h4 tags: $body = ($striptags) ? strip_tags($body, '<h4>') : $body;

Pls. see PHP documentation for more info.

My code example for the homepage on my website:

<txp:rss_auto_excerpt length="260" linktext="Mehr ..." overrideexcerpt="1" striptags="1" linkwraptag="strong" />

Combined with the tag tweaking from above I get my leading h4 sub-headline plus two lines of text from the first paragraph.

Rob: Beautiful result. Thanks!!!

Last edited by merz1 (2006-10-30 15:30:05)


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

Board footer

Powered by FluxBB