Adding non WP Users as writers

  • Unknown's avatar

    Is it possible to get someone writng on your blog if she has no account on WP?

  • Unknown's avatar

    No, they’ll need an account.

    Just get them to sign up and let you know their username and then you can add them as an author.

    They don’t need to use their own blog that gets created.

  • Unknown's avatar

    i have a wp account. is it possible to fetch content to my blog via php script ?. i found it for blogger.if possible guide me….

    thanks in advance….

  • Unknown's avatar

    Via RSS you can but I have a feeling that that is not what you’re asking about here.

    There are a couple of plugins that you can use on a WP blog hosted elsewhere but I believe they require RSS feeds as well.

    Maybe if you pointed us to teh method that this occurs on Blogger, maybe we can help more. I know I’ve not heard of one.

  • Unknown's avatar

    first of all thanks for your quick response..:)
    i am a beginner to php……..
    i have given below the php script which will post to blogger….. i need a simple script similar to this for wordpress or what are the things i ve to change here….
    …i tried upto my knowledge….
    <?php
    /*

    POST TO BLOGGER USING PHP AND CURL

    Before you can use this script, you need a blogger acocunt.
    You need to have a blog that you can post to.
    You need to know the blogid of the blog you want to post to.
    To get the blogid, go to blogger.com and log in to your blogger account.
    There will be a list of blogs.
    When you click on a blog name, it will go to a url like :
    http://www.blogger.com/posts.g?blogID=1234567

    The blogID portion is what you use for your $blog_id
    – in the above example it is 1234567

    Set the date of your post */

    $issued=gmdate(“Y-m-dTH:i:sZ”, time());

    // *Set the title of your post*/
    $title=”TEST1″;

    // Set the body text of your post.
    $body=”This is a test post, sent using the atom api.”;

    //* This needs to be changed to the blogID of the blog*/
    // you want to post to (as discussed at the top of this script)
    $blog_id=””;

    // You must know your username and password
    // to be able to post to your blog.
    $your_username=”srini”; //change this to your blogger login username
    $your_password=”343434″; // change this to your blogger login password

    // This is the xml message that contains the information you are posting
    // to your blog
    $content = “<?xml version=’1.0′ encoding=’UTF-8′ standalone=’yes’?>rn”
    . “<entry xmlns=’http://purl.org/atom/ns#’>rn”
    . “<title mode=’escaped’ type=’text/plain’>”.$title.”</title>rn”
    . “<issued>”.$issued.”</issued>rn”
    . “<generator url=’http://yoursite.com/’>Your client’s name here.</generator>rn”
    . “<content type=’application/html+xml’>rn”
    . “<div xmlns=’http://www.w3.org/1999/xhtml’>”.$body.”</div>rn”
    . “</content>rn”
    . “</entry>rn”;

    /* This is the custom header that needs to be sent to post to your blog.*/
    $headers = array( “Content-type: application/atom+xml” );

    // Use curl to post to your blog.
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, “https://www.blogger.com/atom”.$blog_id);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_TIMEOUT, 8);
    curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
    curl_setopt($ch, CURLOPT_USERPWD, $your_username.’:’.$your_password);
    curl_setopt($ch, CURLOPT_POSTFIELDS, $content);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    $data = curl_exec($ch);

    if (curl_errno($ch)) {
    // print curl_error($ch);
    } else {
    curl_close($ch);
    }
    echo $data;
    echo $ch;
    // $data contains the result of the post…

    ?>

    waiting for ur valuable feedback…..

  • Unknown's avatar

    Um, we’re not allowed to run PHP scripts here due to security reasons. Again, it would require a WP hosted elsewhere for this to work.

  • Unknown's avatar

    “£$your_username=”srini”; //change this to your blogger login username
    $your_password=”343434″; // change this to your blogger login password”

    So every author would be ‘srini’
    Sort of defeats having lots of people using the script?

    And for the above for posting from elsewhere, why not just use w.bloggar?

  • Unknown's avatar

    u can change it to your blogger-login id within “”.

    i ve no idea about w.bloggar……i need similar script

    for wordpress to include in my project.

  • Unknown's avatar

    mike,

    thanks for your guidance.:)

    i ll try to work out as per your instruction.

  • The topic ‘Adding non WP Users as writers’ is closed to new replies.