Forum Replies Created

Viewing 11 Topics - 1 through 11 (of 11 total)
Author Posts
June 13, 2013 at 2:47 am in reply to: Post status not following form settings 4866
titanweb titanweb

Yeah I know what you’re saying but I’ve added them back in and it’s still not applying the correct post_status. Would I need to recreate the form that generates the posts?

The problem is in the plugin and it conflicts with the subscription setting. If you enable subscription and you have balance, it’ll publish your post automatically.

As a quick solve, I would suggest you to change /class/subscription.php line:251, where it says ’post_status’ => ‘publish’ change it to ’post_status’ => ‘draft’. I’ll try to fix this bug.

/**
 * Publish the post if payment is made
 *
 * @param int $post_id
 */
function handle_post_publish( $order_id ) {
    $post = self::post_by_orderid( $order_id );

    if ( $post && $post->post_status != 'publish' ) {
        $update_post = array(
            'ID' => $post->ID,
            'post_status' => 'draft'
        );

        wp_update_post( $update_post );
    }
}
June 11, 2013 at 6:25 am in reply to: Post status not following form settings 4776
titanweb titanweb This reply has been marked as private.
June 11, 2013 at 6:21 am in reply to: Post status not following form settings 4774
titanweb titanweb

Hrm I’ve just tested this again but and it doesn’t seem to be honouring my form setting to save the new post as ‘draft’, ‘pending’ or anything else for that matter (other than published).

Is there somewhere else I can change code to make sure it stays as draft/pending?

I’ll provide links and log in details in a private reply.

WordPress 3.5.1
WPUF 2.1.5

May 1, 2013 at 8:22 am in reply to: Post status not following form settings 3053
titanweb titanweb

With your latest update (2.1.4) was this fixed or do I have to re-apply the hotfix to the subscription.php file?

April 22, 2013 at 1:32 am in reply to: Post status not following form settings 2652
titanweb titanweb

Hi Tareq! Thanks for sorting that out for me 🙂 The status get’s changed the “pending” now, instead of “draft” but I can work with that. Any status that removes posts visually from the front-end will do 🙂

When I created a post with an Administrator account, the post status remained as published.
When I created a post with a Customer/Subscriber account, the post status was changed to “Pending”.

April 19, 2013 at 8:48 am in reply to: Post status not following form settings 2531
titanweb titanweb

If only this was true 🙂

That’s just a custom field, it actually represents nothing other than emailing the client depending on the status.

It’s here that is the issue:

The status, which is set in the form settings, should be Draft.

When you edit this same product from the front-end, it does change the status. Only when you create does it not set it to Draft :/

Also the only reason you are the author of the product is because you’re an Administrator account. This makes me think that I might need to add more capabilities to the Customer role to enable them to be an author in the first place.

So yeah, my initial problem still exists 🙁 Thank you for at least try though 🙂

April 19, 2013 at 1:30 am in reply to: Post status not following form settings 2500
titanweb titanweb This reply has been marked as private.
April 18, 2013 at 8:13 am in reply to: Post status not following form settings 2436
titanweb titanweb

Also I have two users. My admin account and a customer account. The post in the backend recognises the author as my admin, even though I’ve created it with my customer account :/

April 18, 2013 at 8:07 am in reply to: Post status not following form settings 2432
titanweb titanweb

I’ve made a new form and the post still isn’t getting saved as “draft”…it’s still published on creation.

I’ve only got two forms. The one for creating custom posts “product”, and for registering users. I have subscription packs enabled.

Can I send you login details so you can have a look at my settings/plugins?

April 15, 2013 at 1:36 am in reply to: Post status not following form settings 2217
titanweb titanweb

I’ll test on a newly-made form and see if it occurs still.

April 10, 2013 at 3:12 am in reply to: Post status not following form settings 1985
titanweb titanweb

However when I edit the post from the Dashboard, it changes the post status to draft correctly.

Viewing 11 Topics - 1 through 11 (of 11 total)