• REGISTRATION REQUIREMENTS:

    Your username here MUST MATCH your XenForo username (connected to your XF license).

    Once you have registered here, then you need to start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

Implemented Draft Article - Publish now & Publish scheduled

Bob

Developer
Staff member
I've enhanced the "Draft" system in AMS to having 2 ways to publish an Article, Publish now and Publish scheduled.

"Publish now" is pretty much the same way as before except a different title for the Button.

"Publish scheduled" is a new feature that allows drafts to be scheduled in order to be auto published in the future (via CRON).

Note: the CRON is scheduled to run every 10 minutes, however, as you know, CRON is triggered by activity on your site, so if nobody is online, CRON doesn't run by itself, it requires site activity, so its not automatic that an article will be published exactly at the time you set.

Here you can see an Article that is in the state "draft". There are now 2 publish buttons, one for immediate publishing and the other to schedule publishing at a scheduled date/time.

Selection_467.png


Scheduling is as simple as choosing a date/time (in the future). That is all there is too it.

Selection_468.png


The date picker is the standard XF date picker. Time is set by hours and minutes (10 minute intervals). Time Zone picker is standard XF timezones.

Selection_469.png


Here you can see an article that is scheduled to be published (state = 'awaiting'). Unlike XF1 version of AMS, the XF2 version of AMS lets you continue to perform actions on an article that is "Awaiting" AND as you can see, the "Publish now" button is still available, which allows you to immediately publish an article that is awaiting publishing. You can also change the scheduled date by clicking on the "Change scheduled date" button (comes in handy to move something up to May that is scheduled in June, July, etc... )

Selection_470.png


Note: An error will be thrown if the scheduled date is in the past or present... the system only allows scheduled dates into the future.

Selection_471.png


Associated Discussion Threads. I was going to move the creation of associated threads for Drafts into the Publish Draft Service, HOWEVER, after speaking with several AMS license holders, I've decided against this as a lot of them modify the 1st post of the associated discussion thread during the DRAFT process.

One change that I've made however is to the expected title of the associated thread when initially saving the article as a Draft. Currently it uses the deleted article template (adds [Deleted] to the end of the thread title). This does cause some confusion, so I've modified the 'getExpectedThreadTitle()' function to check if the article state is "draft' or 'awaiting' and instead, use a different thread tittle template with the phrase 'xa_ams_article_awaiting_publishing' "Article awaiting publishing"

Now when viewing the thread list, you see [Article awaiting publishing] on threads associated with an Article that is in Draft or Awaiting state, which is much more clear to the viewing staff member that its not DELETED, but awaiting publishing.

Selection_473.png


Same thing in the Approval queue, its much more clear that the thread is associated with an article that is awaiting publishing and that the publishing process will handle approving the thread at the appropriate time.

Selection_474.png
 

Attachments

  • Selection_472.png
    Selection_472.png
    22.7 KB · Views: 1
Upvote 0
This suggestion has been implemented. Votes are no longer accepted.
Back
Top