Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Adding a Life Span to an article
I’m writing a few articles that are really adverts/plugs … I’d like them to ‘disappear’ from the website on a certain date and time, which I can set at the time of writing.
An e-mail reminder a few days before ‘self destruction’ would be amazing but not essential.
Anyone know of a way / plugin(s) that could do this?
Thanks
Geoff
There are 10 types of people in the world: those who understand binary, and those who don’t.
Offline
Re: Adding a Life Span to an article
Okay I might be answering my own post here … I haven’t tried it yet but ras_delete_expired looks promising.
Especially as it can set the article to ‘hidden’ rather than delete it. Which is better.
Anyone got a clever way to send the e-mail …? Say a week before
There are 10 types of people in the world: those who understand binary, and those who don’t.
Offline
Re: Adding a Life Span to an article
Geoff, take a look at this, also. Never tried, but can be an alternative.
Offline
Re: Adding a Life Span to an article
Hi Zanza,
Thanks
ras_delete_expired seems to have gone to plugin heaven
I found md_expirations and it works.
A little messy to install but it does the job.
Anyone trying this plugin – the documention needs updating as you now have to create a folder called ‘plugins’ within your ‘textpattern’ folder for the two class files.
Geoff
There are 10 types of people in the world: those who understand binary, and those who don’t.
Offline
Re: Adding a Life Span to an article
Interesting. I was looking for ras_delete_expired too, and didn’t find it, actually.
I’m trying to rework the md_versions plugin (and succeded, at some extent), and plan to look to md_expirations, too. Just to know: the problem with md_expirations is only in the plugin directory creation or there are some code mods to be made? In that case, could you post them here?
Thanks!
Offline
Re: Adding a Life Span to an article
There are four files to upload
——————————————————-
The first two
md_expirations_ins_lan_en.php
md_expirations_install.php (creates a table when you call it from your browser)
go in your textpattern folder
————————————————————-
Three and four
md_expirations.class.php
md_expirations_view.class.php
go the plugins folder
—————————————————————
upload plugin code as usual in admin – plugins
—————————————————————————————
It’s supposed to create an admin side extensions tab – it doesn’t on mine (yet)
Just got working I added
add_privs(‘md_expirations’,‘1,2,’);
Below
if (@txpinterface == ‘admin’)
{
…
—————————————————————
The interface on the write tab is messy
There’s some really long text labels on the ext tab and radio buttons
I changed the plugin code to make it look better
Probably best if I e-mailed you the changes
contact me through my website
:-)
Sorry I didn’t lay it out better I don’t have much time
Geoff
One other point I’m on CET which is 00.00 +1hr
The timestamp on this plugin seems to be 8 hours behind me.
As I want all my stuff to expire at midnight I just have to remember to set it to 16:00:00
Anyone know how I could change this?
Last edited by geoff777 (2008-07-25 16:16:40)
There are 10 types of people in the world: those who understand binary, and those who don’t.
Offline
#7 2008-07-25 21:40:13
- rsilletti
- Moderator
- From: Spokane WA
- Registered: 2004-04-28
- Posts: 707
Re: Adding a Life Span to an article
Yes delete_expired has gone to plugin heaven, it was a stop-gap solution that I couldn`t justify further development of given the available expire mod TXP`s available. Crockery has the option, and a mod for the 4.0 branch is out there as well I think, if you ask around some.
A combination of these two may be simpler for setting articles status to hidden within a specific set of time range settings, they are both article form based tags. Easy to use if you read the help sections carefully.
Last edited by rsilletti (2008-07-25 23:20:04)
Offline
Pages: 1