View Full Version : Submit entry for drafts
attroll
07-24-2007, 03:26 AM
Is there a way to have the "Automatically Publish On" in the additonal Option for Drafts to default to the date of the entry?
Brian
07-24-2007, 08:57 AM
That could probably be done for when you are editing entries, but I don't think it would work too well for when you're adding a new one since there would not be a previous date selected. If that's something you need then I could probably whip up a quick plugin for you that would do the trick.
attroll
07-24-2007, 01:35 PM
That could probably be done for when you are editing entries, but I don't think it would work too well for when you're adding a new one since there would not be a previous date selected. If that's something you need then I could probably whip up a quick plugin for you that would do the trick.
No this is not something I need. It was just a suggestion. I was thinking that some users may want to create a draft because they may not be able to type their blog all in one session but they want it published for the date they started typing it then they could go back later and finish typing it and then release it and would not have to mess with the date.
As I said it is not something I need but thought it might be a good idea. If not then do not worry about it.
Brian
07-24-2007, 01:43 PM
I think one of us is confused here... Changing the auto-publish date to the current date would publish that entry pretty much immediately, which defeats the purpose of selecting an auto-publish date in the first place. All that option really does is update the entry to mark is as a non-draft (for lack of a better word) on the date/time specified.
attroll
07-24-2007, 01:54 PM
Oh, I see. My bust. I did not realize that this was an auto publish date. When it reaches that date. So then if we leave the date blank then it will remain in drafts until we put a date in it right?
Brian
07-24-2007, 02:27 PM
Yup. When the auto-publish options are left blank, the entry will not be published until you physically edit the entry and un-check the draft box, or view it in the "My Drafts" section and click the "Publish" link.
When you do select a date there, a cache is updated that contains a list of the entries that are set to be auto-published. That cache is checked with every vBa Dynamics page load (just a simple if() condition, nothing strenous), and if any entries are set to be published at or before the current time, they are then updated and marked as a regular entry (non-draft) automatically.
Hopefully that clears things up. :)
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.