$6 for quick Wordpress Plugin Modification

Discussion in 'Programming' started by tressin, Jun 25, 2008.

  1. #1
    Hi, I need a Wordpress plugin modified slightly.
    The plugin is located here:
    http://wordpress.org/extend/plugins/simple-post/

    Basically, the plugin makes creating posts easier, but after each post is created, it goes to the newly created post.

    What I'd like for it to do instead is to create the post and go back to the original post screen. I need to make many many posts and having the plugin go back to the write screen right after submitting a post will save me a lot of time.

    First person to PM me or post how to do this gets $6 Paypal.
     
    tressin, Jun 25, 2008 IP
  2. pixeladd

    pixeladd Banned

    Messages:
    2,238
    Likes Received:
    93
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    might be easier to opening lots of tabe up with create post
     
    pixeladd, Jun 25, 2008 IP
  3. mrinal

    mrinal Peon

    Messages:
    433
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    i'll be trying wid this plugin....for 'create the post and go back to the original post screen'

    will inform if it works...
     
    mrinal, Jun 26, 2008 IP
  4. clarky_y2k3

    clarky_y2k3 Well-Known Member

    Messages:
    114
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    108
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    I've got something similar working on my WordPress installation.

    Edit simple-post.php (/wp-content/plugins/simple-post/):-

    Find:
    
    else if ( url_to_postid(wp_get_referer()) == $post_ID )
    
    PHP:
    Replace With:
    
    else if ( strpos(wp_get_referer(), '/wp-admin/') === false && url_to_postid(wp_get_referer()) == $post_ID )
    
    PHP:
    Edit post.php (/wp-admin/):-

    Find:
    
    elseif ( false !== strpos($location, 'wp-admin') )
        $location = "post-new.php?posted=$post_ID";
    
    PHP:
    Replace With:
    
    elseif ( false !== strpos($location, 'wp-admin') )
    {
        if ( false !== strpos($_POST['_wp_http_referer'], 'simple-post') )
        {
            $location = "post-new.php?page=simple-post/simple-post.php&posted=$post_ID";
        }
        else
        {
            $location = "post-new.php?posted=$post_ID";
        }	
    }
    
    PHP:
    I think that's everything... :)
     
    clarky_y2k3, Jun 26, 2008 IP
  5. goscript

    goscript Prominent Member

    Messages:
    2,753
    Likes Received:
    306
    Best Answers:
    0
    Trophy Points:
    315
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #5
    I don't know about you, but this is the way the last wp version works :confused: When you click on Publish, you get back to the editor window..
     
    goscript, Jun 26, 2008 IP
  6. mrinal

    mrinal Peon

    Messages:
    433
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #6
    yes d default text editor does stay after posting too.... but simple post editor box does not do that and he wants that to stay there even after posting.
     
    mrinal, Jun 26, 2008 IP
  7. tressin

    tressin Active Member

    Messages:
    309
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #7
    Ok, clarky got it figured out for me, thread can be closed or whatever now :)
     
    tressin, Jun 26, 2008 IP