Text-indent nested category list

I once had the problem that I needed to create a SAEF for a weblog which has three category groups. When using the standard {category_menu}{/category_menu} tag-pair all groups are merged into one which was not appropriate because the category groups did not belong together thematically.

Hence I hardcoded the category menus to show up in three separate select-lists.

However one category group had several levels of subcategories and I wanted to show them properly nested like in the list below:


I ended up with a plugin that transforms the HTML-output of {exp:weblog:categories style="nested"} into an indented text-only version.


Audio CAPTCHA module

Most current version is 1.1.

This module can be used to place a link to a dynamically generated sound-file which will spell the CAPTCHAs created by ExpressionEngine.

An example can be seen over here where CAPTCHAs are enabled for comments.


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


EE entry rating module

I finally could force myself to write up at least a rough documentation for an entry rating module I made some time ago. So here it comes.

Features / characteristics are:

  • independent from comments
  • can be restricted to logged-in members only
  • voting results from members and visitors may be shown separately or overall
  • rating-form is either drop-down with configurable options or radio-inputs from 1 to 5
  • result output either with images (like the stars here) or numbers or both - can be defined with variables in the template
  • works on single- and multi-entry pages
  • {exp:weblog:entries} can be used to list entries sorted by highest ratings.
  • one vote per member per entry allowed
  • one vote per IP per entry allowed

You can see it in action over here


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


Page 3 of 5 pages « Erste  <  1 2 3 4 5 >

About

Here you'll find some scripts and other stuff that might be useful, entertaining or even something completely different.


Random quote

It seemed the world was divided into good and bad people. The good ones slept better... while the bad ones seemed to enjoy the waking hours much more.

Woody Allen