Time delay posting?

Creating and modifying plugins.
Post Reply
Bandon
Regular
Posts: 6
Joined: Fri Jul 01, 2005 11:10 pm

Time delay posting?

Post by Bandon »

Is there a plugin or way to make it so that posts are not immediately shown and the automatically published later on?

Any ideas if not?

-Bandon
Oliver
Regular
Posts: 178
Joined: Mon Jan 10, 2005 7:43 pm
Location: Herne, Germany
Contact:

Post by Oliver »

When creating a new entry, you can change the date to whenever you want your entry to be published :)

There is a field, where date and time are posted, for example 2005-07-01 23:32. So you can change this to a date in the future...

- Oliver
Last edited by Oliver on Sun Jul 17, 2005 3:32 am, edited 1 time in total.
Image
Bandon
Regular
Posts: 6
Joined: Fri Jul 01, 2005 11:10 pm

Post by Bandon »

Ah, I see that now, thanks for the help!

-Bandon
gwilsonmail
Regular
Posts: 146
Joined: Tue Jul 12, 2005 9:12 pm
Location: Ottawa, Canada
Contact:

Post by gwilsonmail »

That is one solution if you know what time you want to relelase the article.

But what if you keep adding to your blog such that you have a reserve of articles.

Any suggestions as how you would go about releasing them at a rate of 1 or 2 per day?
gw
Col. Kurtz
Regular
Posts: 450
Joined: Thu May 26, 2005 10:43 am
Location: Bonn, Germany
Contact:

Post by Col. Kurtz »

gwilsonmail wrote:That is one solution if you know what time you want to relelase the article.
But what if you keep adding to your blog such that you have a reserve of articles.
Any suggestions as how you would go about releasing them at a rate of 1 or 2 per day?

You can write the articles and not publish them, but save as "draft", so you can built a reserve. But I dont know any way of automatical publishing em later (without any given date). But you can do it manually and just chance from draft to publish, this only takes a few seconds.

This is more a workaround than an answer I know.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

gwilsonmail: That is a very wicked feature request you have there.

Of course you could set each entries publish date to NOW + X days.

The other way is to write a plugin which listens on an external plugin hook so that you can call it via crontab: http//yourhost/s9y/plugin/publish_entry

That plugin will be executed once a day, and it just fetches the latest unpublished article ("WHERE isdraft = 'true' ORDER BY timestamp LIMIT 1") article, then changes the draft state and calls serendipity_updertEntry() which will then publish the article.

So this is possible, it justs requires someone to be bribed writing the plugin. :)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
gwilsonmail
Regular
Posts: 146
Joined: Tue Jul 12, 2005 9:12 pm
Location: Ottawa, Canada
Contact:

Post by gwilsonmail »

Pretty wicked! - I have to agree.

i have some website concepts that would require quite a bit of php coding. But by using a blog and the simple plugins i've found here at serendipity i've found that i can get most of what I want.

Now if only i could get an automated blog replicator
------------------------------------------------------------------------------

Serendipity is a pretty wicked blog server itself. I installed and tried others and the biggest problems i found was

[1] a blog platform that is not actively developed - real bummer if you want some current advice
[2] forums that are not helpful!
[3] addins that required me to learn php!
[4] templates that included both style and inclusion of content - boy do those guys have a lot to learn! Serendipity gets it right - put the inclusion of parts of the site in a database and then just use templates to change the look!
[5] Overly complex article edit pages - worst example was with geeklog. The name says it all - best appreciated by geeks.
[6] no easy way to upgrade - Sparticus is a brilliant concept!

I used the amazon plugin yesterday - boy does it save a lot of time and effort. All I had to do to install it was click and click using sparticus! Brilliant.
gw
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

What do you mean with "automated blog replicator"?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
gwilsonmail
Regular
Posts: 146
Joined: Tue Jul 12, 2005 9:12 pm
Location: Ottawa, Canada
Contact:

Post by gwilsonmail »

I was referring to my post a few days back that after getting a blog setup and all the plugins configured i would want to replicate the installation, but not the article content.

http://www.s9y.org/forums/viewtopic.php?t=2060

I've yet to try out the sql changes myself.

all the best
gw
Post Reply