make posts "publish" or "draft" in one click

Discussion in 'WordPress' started by DarkRaisin, Jul 19, 2006.

  1. #1
    hi
    is there a way or plugin to change the "manage post" section in admin area in such away that one column is added to table where it shows that post status (may be 2 images -red for published and gray for saved).

    and more: once this is done one can click on those images to publish or deactivate (make them as draft) posts??

    is this possible? please guide me.


    edit:

    I did it. Almost. now it looks like this (messy yet but will be cleaned up soon):

    [​IMG]

    don't be fooled by post tiltes, they are just there for testing. everythng is sortable you can sort your posts by ID, post title, post date, post status, what ever. Post title is clickable and brings you to edit post page.

    when you click on the post status it does the followings:
    - change the post_status from "draft" to "publish" or other way around.
    - it time-stamps the "post_date" and "post_date_mgt" with now date and time.

    however, posts that are being published in this way do not show up in the sites index page. what am I doing wrong. I went to the wp_posts table and compare a normal published post with one my published one and they were the same. they had the same parameters.

    I guess I need to alter some other things somewhere else to make them really published. can someone help me please.

    what do I need to change to make a post published? or may be they are published but they do not appear in the index page!
     
    DarkRaisin, Jul 19, 2006 IP
  2. DarkRaisin

    DarkRaisin Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    OK, nobody,
    I noticed that posts published in this way will showup after 2-3 hours on index page. why is that? timing problem??

    please help.
     
    DarkRaisin, Jul 20, 2006 IP
  3. enposte

    enposte Active Member

    Messages:
    133
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3
    I am not sure if I am understanding your question correctly...

    Have you changed the wp time in the general options? maybe you're using a different locale for your post timestamp than that used by wordpress.
     
    enposte, Jul 20, 2006 IP
  4. DarkRaisin

    DarkRaisin Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    the question was: when I publish a post (not through the normal WP write post section but by altering the post status and time stamp with the script I wrote) why my posts show up two hours later in the blog. why??

    yeh, about the time zone I have played around with WP, changing the zone by -2, +2, 1, 2, and so on, nothing happened, the same problem.

    I think I am going to change my script (the one altering the post_date) in such a way that the timestamp is not "now" but "now+2 hours". may be this helps.

    the strange thing is that if I publish a post through normal WP and one through my script, both have the same time (almost) but only those of mine show up 2 hours later in the blog.

    thanks for the reply.

    just one question though: how do you make a post published?? I mean what should you change and where.
     
    DarkRaisin, Jul 21, 2006 IP