Skip to:
Content
Pages
Categories
Search
Top
Bottom

Schedule posts and mismatch Publication time-stamp at the latest topics list

  • @neon67

    Participant

    I use the post publication schedule.
    All new posts are displayed through the tracker “latest topics” at my main page.
    ะžะบ, the schedule publication, for example, at 14 00, appears at 14 00 in the tracker . But it does not appear at the top, the time-stamp will be lower. For example, at 8: 00, displaying the real creation time for the schedule.

    Is’s solvable?
    May be there are special plugins or life hacks?

    Please advise – how to solve this problem.

Viewing 14 replies - 1 through 14 (of 14 total)
  • @robin-w

    Moderator

    is this related to bbpress ?

    @neon67

    Participant

    Yes, fully.
    Schedule post = new topic in the forum branch, tracker = [bbp-topic-index]

    @robin-w

    Moderator

    so what is the post publication schedule ? wordpress delayed publishing or a plugin?

    @neon67

    Participant

    And wordpress and ‘add new topic’ delayed publishing well.

    The problem in generating [bbp-topic-index] – timestamp and rank in the tracker appears according to the real writing of the post, not top.
    ——-
    Example: at 8: 00 I create a new topic for posting on the forum at 14: 00.
    At 14 00 the topic published, appears at the list of topics, but with the upper rank and timestamp as 8 00, not top.

    how to fix this?

    @neon67

    Participant

    Unfortunately, the problem not solved.
    Scheduled topics are published, but appear in the list of topics with the first save date (not with the time of the delayed publication).

    Have an idea to use a some outside buffer for publishing. Is there such a remote plugin scheduler? Something like posting via email-just schedule a date in the mail-client. But works for the blog, not for bbpress.

    @robin-w

    Moderator

    ok, let me take a further look

    @robin-w

    Moderator

    this is more complicated than it as first looks, as there is forum data that needs updating

    but as a start

    function rew_status_transitions( $post ) {
    	if ( $post->post_type == 'topic') {
    		//update the post meta
    		update_post_meta ($post->ID, '_bbp_last_active_time' , $post->post_date) ;
    	}
    	 
    }
    add_action(  'future_to_publish',  'rew_status_transitions', 10, 1 );

    @neon67

    Participant

    Thank very much for your concern.
    I’ll report the results as soon as I test it.

    @robin-w

    Moderator

    it really needs to also update the forum latest activity – I’ll try and look at that as well

    @neon67

    Participant

    It’s working! Great!
    1.New scheduled topic: time of publication and the timestamp in tracker coincide now!
    2.Old topic (written 5 years ago) after time-correction for today – appear in the tracker correctly!
    3.But, does not work for scheduled replay in topic. If replace the word “topic” for word “replay” in the code – will this work?

    @robin-w

    Moderator

    totally untested but try

    function rew_status_transitions( $post ) {
    	if ( $post->post_type == 'reply') {
    		$topic = bbp_get_reply_topic_id ($post->ID) ;
    		//update the post meta
    		update_post_meta ($topic, '_bbp_last_active_time' , $post->post_date) ;
    	}
    	 
    }
    add_action(  'future_to_publish',  'rew_status_transitions', 10, 1 );

    @neon67

    Participant

    Thank you! I will try )

    @neon67

    Participant

    It’s been 3 years and 2 months – and everything works great.

    Such a short entry in functions frees up a lot of free time for administrator. You can better plan the appearance of content in your forum, smooth out the peaks and days of silence, leave the scheduled right answers or warnings in the topics.
    I recommend the authors of bbpress to include these lines in the standard delivery))

    Thanks so much to Robin for your generosity and kindness!

    @robin-w

    Moderator

    thank you so much for your kind words ๐Ÿ™‚

Viewing 14 replies - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.
Skip to toolbar