2006-04-25 13:15:33

csandberg
Plugin Author
gamma
Real name: Christian Sandberg
From: Sweden
Known languages: en, sv, de
Website

csb_if_newer_than

This simple plugin can be used to check if an article has been published within a given time. It’s my first plugin for Textpattern.

Article (website offline – Uli)

Download

Version 1.0
csb_if_newer_than.txt

Usage

In an article form:

<txp:csb_if_newer_than days="30" hours="12" minutes="20">
    The article is posted within 30 days, 12 hours and 20 minutes.
<txp:else />
    This article is too old.
</txp:csb_if_newer_than>

Feel free to make suggestions and report bugs!

{Edited to fix the broken download link. -Uli}

Last edited by uli (2012-02-09 23:19:35)

Offline

 

2006-04-29 13:12:12

Els
Admin
omega
Real name: Els Lepelaars
From: The Netherlands
Known languages: nl, en, (some: de, fr, es, it)
Website

Re: csb_if_newer_than

Thanks for this, using it here to mark ‘new’ articles.


<txp:Els /> ;)
Tag Reference | Unexpected behaviour? Check the tag trace | Still no clue? Check the names of your custom fields

Offline

 

2006-07-14 15:32:32

colak
Admin
omega
Real name: Yiannis
From: Cyprus
Known languages: el, en
Website

Re: csb_if_newer_than

very cool
thanks csandberg

Offline

 

2007-07-04 05:11:38

jauhari
Member
epsilon
Real name: Nurudin Jauhari
Website

Re: csb_if_newer_than

Just Running Good ;) I like it ;)

Offline

 

Powered by FluxBB