Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-02-01 21:27:28

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

wet_if_status: Conditional tags checking for "live" or "sticky"

wet_if_status contains two conditional tags which check for an article’s status being either “live” or “sticky”, respectively. Usage is plain and simple:

<txp:wet_if_live>...</txp:wet_if_live>

<txp:wet_if_sticky>...</txp:wet_if_sticky>

Both tags are bound to be used in an article context, either as part of an article form or inside the body/excerpt.

Details and download

Offline

#2 2007-02-01 21:46:10

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: wet_if_status: Conditional tags checking for "live" or "sticky"

Hi wet,

Your plugins are great, so I sent you a donation through your site. I hope you keep up the wonderful work!

It would be nice if there were a good way to reward the TXP developers and plugin developers through a central donation service, no? We did it last Christmas as I recall – Alexandra organised it correct?

Offline

#3 2007-02-01 22:17:52

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: wet_if_status: Conditional tags checking for "live" or "sticky"

Thanks a lot for those kind words, I am glad you found good use of my work.

Re: rewarding the developers.

Sencer’s got an Amazon wish list, Alex is accepting donations on his site, Pedro maintains quite a long list of desires, and I once stumbled across Mary’s somewhere I really can’t recall.

So there’s no lack of opportunities…

Offline

#4 2007-02-07 08:06:33

pieman
Member
From: Bristol, UK
Registered: 2005-09-22
Posts: 491
Website

Re: wet_if_status: Conditional tags checking for "live" or "sticky"

Hi Robert
This looks like just what I need, but it’s throwing me an error.
Call to undefined function: assert_article() in /public_html/admin/lib/txplib_misc.php(459) : eval()'d code on line 13
I’m just finishing off a fairly big project that’s running on 4.03 and it’s too close to launch to upgrade – does this plugin require 4.04? I assmume so, but it doesn’t say anywhere so i thought I’d check!
thanks very much – tis a good addition to the toolbox regardless
Stu

Offline

#5 2007-02-07 08:12:08

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: wet_if_status: Conditional tags checking for "live" or "sticky"

This plugin runs on 4.0.4, sorry.

But you can easily remove this single line from the plugin’s PHP code, which serves merely as a measure inhibiting improper tag usage:

assert_article();

This line occurs two times, once per tag.

I think this is the only dependancy on features introduced with 4.0.4, so you might have success with 4.0.3 after this amendment.

Last edited by wet (2007-02-07 08:13:07)

Offline

#6 2007-02-07 08:19:14

pieman
Member
From: Bristol, UK
Registered: 2005-09-22
Posts: 491
Website

Re: wet_if_status: Conditional tags checking for "live" or "sticky"

bloomin marvelous
cheers
:o)

Offline

#7 2009-06-01 06:55:02

eggnog
Member
From: Vancouver
Registered: 2008-03-10
Posts: 37
Website

Re: wet_if_status: Conditional tags checking for "live" or "sticky"

Great plugin… saved my ass! Thanks!

Offline

Board footer

Powered by FluxBB