Trimmer

All this little plugin does is cutting X characters from the beginning and / or the end of a given text and returns the trimmed string.

Tag:

{exp:trimmer}{/exp:trimmer}

Parameters:

left="X”
cuts X characters from the beginning of a text

right="X”
cuts X characters from the end of a text

Example:

{exp:trimmer left="3" right="4"}
<p>Some text to trim.</p>
{/exp:trimmer}

returns:

Some text to trim.

pi.trimmer.zip


It’s new

This simple little plugin can be used to display some content (like an image) based on the age of an entry.
If the entry has been posted within the number of days specified, the content inside the tag-pair is returned.

Example:

{exp:itsnew date="{entry_date}" days="10"}
<img src="new.gif" />
{/exp:itsnew}

If the entry is older than 10 days nothing is returned otherwise the image will be displayed.

Parameters:
This one is mandatory.

date="{entry_date}"

Optional. Number of days to compare against entry_date. Defaults to 30.

days="10"

pi.itsnew.zip


Search Marker Plugin

When using the EE search module, this plugin will highlight the search terms on the results-page by surrounding them with <span class="marker"></span>.

This plugin is only intended to be used on a search results page, that is, inside {exp:search:search_results}{/exp:search:search_results}.

Step one:
Add the following style to your CSS and modify the color as you see fit.

.marker { background-color#ff0; }

Step two:
Wrap your fields with the plugin tags.

{exp:search_marker}
   
<p>{summary}</p>
    <
p>{body}</p>
{/exp:search_marker}

pi.search_marker.zip


TruncHTML - Yet another text limiter

Most current version is 1.2.2

  • Truncates HTML/Text after the specified number of characters.
  • Does not count characters in HTML-tags.
  • Does not cut-off in the middle of tags.
  • Closes all open tags.

So if you limit the following text to 80 chars…

<class="quote"><b>Never let your sense of morals get in the way of doing what's right.<br />
<em>Isaac Asimov</em></b></p>

the result will be ...

<class="quote"><b>Never let your sense of morals get in the way of doing what's right.<br />
<em>Isaac</em></b></p>

instead of ...

<class="quote"><b>Never let your sense of morals get in the way of doing what's

... which would probably screw the rest of the page.


Strip Linebreaks

This plugin strips any new lines and carriage returns from the text between its tags.

Example:

{exp:strip_lb}
some text
<br />
some more text<br />
even more text<br />
{/exp:strip_lb}

returns:

some text<br />some more text<br />even more text<br />

pi.strip_lb.zip


Page 2 of 3 pages  <  1 2 3 >

Note:

Some of the Plugins listed here have been coded for a rather specialized purpose and may not seem useful for general usage.


Recently updated:

File Type Templates Module (2008-06-15)

AJAX Linktracker (2007-10-01)

Simple Tags (2007-09-20)

SEO gadget (2008-02-01)

Splitting up categories (2008-02-05)

Audio CAPTCHA module (2007-08-28)

Trimmer (2007-08-27)

EE entry rating module (2007-12-20)

TruncHTML - Yet another text limiter (2008-02-15)