anonymous posting Wordpress plugin


More information here: http://wordpress.org/extend/plugins/anon-posting/

If you have any questions, please post comments.

Related posts:

  1. Anonymous Comments Wordpress plugin

Tags: ,

34 Comments

  • NotAlame says:

    Hi!

    Thanks for your plugin!
    First, I want to add a category selector in the form so that, every anonymous user will be able to choose the category to add his post’s in !
    Then, I want to know how the published post can be changed to a “waiting for reading by admin” one… I mean that the post will be published only after the authorisation of an admin!
    How can I do these things??

    Thanks!
    PS: Sorry for my bad English…

  • draftbetter says:

    Hey, thanks for the update, works great with my other plugins now. I will be making this active on my site shortly. Also, there is a changeable option now at the top of the plugin code in the editor and when changed from publish to draft will allow for approval before being published.

  • Dana Whittle says:

    Hi : I just installed and configured your plugin but can’t figure out how to “call” the option to Post from this page. I am using a Page with the custom field “anonPost” as described but I don’t understand what you mean by “set it to true”. I have tried a template which calls the custom field but nothing shows up but whatever value I put there… what am I missing? Do I need to create a form as well?

    • wlk says:

      Hi,
      Setting field ‘anonPost’ to true means you have to create it at first (as You did), and then set its value to ‘true’, just type this word in the field which is on the right of field name.

  • syed says:

    Hi : I just installed and configured your plugin but can’t figure out how to “call” the option to Post from this page?
    Do I need to create a form as well?

    • wlk says:

      Hi, You have to set up a custom field, it can be done on ‘new post’ page, below the input field for writing post content. First you have to create new by clicking link ‘create new custom filed’ and call it properly (use the name from installation page).

  • Hi! I just installed and configured your plugin but i have a problem with wp_insert_post. When i run this function, the script keeps running until Apache crashes (i think is an infinite loop). When i change add_action(‘the_content’, ‘addAnonContent’); to add_action(‘init’, ‘addAnonContent’); script work ok but i need to put form on page. Any ideas? Kind regards.

    • wlk says:

      Hi, which version of WP are you running?
      PHP script execution time is set by default to 30 seconds, and Apache should not crash even after infinite loop. Does it output any error messages?

      • I tried using the plugin with wordpress 2.8.6 Russian. On my server PHP script execution time is set to 3.000.000 and the script keeps running until Apache crashes (i think is an infinite loop). In the Wordpress Dashboard quickly increase the number of items added up to 100-200. The same insert is made 100-200 times until Apache crash. The same problem: http://wordpress.org/support/topic/311039

    • wlk says:

      I know, version 1.3 doesn’t fix this problem. It’s next on my todo list.

    • wlk says:

      Hello,
      I’ve set php execution time to 3.000.000 as well and it works completely OK.
      The other problem you mentioned is quite different.

      Are you using any other plugins, that might interfere?
      I think that two plugins might be doing some actions and calling functions that will initiate each other actions.

  • luiz says:

    I just tried using the plugin with wordpress 2.8.6 and I’m getting the following error:
    Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /wp-content/plugins/anon-posting/anonpost.php on line 100

    Any ideas or plans on updating the plugin?

    Thanks!

    • luiz says:

      I managed to get it activated on wordpress 2.8.6 by changing the code to this:
      # the response from reCAPTCHA
      $resp = null;

      $resp = (!$captchaEnabled) || recaptcha_check_answer($privatekey, $_SERVER['REMOTE_ADDR'], $_POST['recaptcha_challenge_field'], $_POST['recaptcha_response_field']);

      if ($resp->is_valid) {

      But after adding the custom field on the page and setting it to true I wasn’t able to see the anonymous fields for posting.

      Any ideas?

      Thanks!

    • wlk says:

      Hello, I’m using 2.8.6 myself and it works for me.
      And considering second question, are you using mod_rewrite for nice-looking URL’s ? This might be causing this problem, I’ll probably fix it in few days.

    • wlk says:

      I see, I’ve just fixed problems with mod_rewrite, and added support for my other plugin. In few days I’ll fix it.

  • luiz says:

    I just updated to 1.3 and I still get the same error:
    Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /wp-content/plugins/anon-posting/anonpost.php on line 98

    Any ideas?

  • ohai says:

    I’m having issues after posting. After the post, wordpress redirects to a page that says “post sucessfully added to database, post page: is here” and the url points to http://url.com/category/?p=46 which is fine, except I have permalinks set to Day and Name, so when a user clicks on the link, it takes them to a 404 page. How do I get the plugin to work properly with permalinks?

    • wlk says:

      Those ‘ugly’ links should work with permalinks enabled. I think this is something else, so I’ll check it.

  • Ken says:

    I installed the plug-in and created the page with the custom field and the form shows up on the page but after you submit the comment you get this message: post sucessfully added to database, post page: is here
    When you click on the “is here” link you get a 404 page does not exist error. Can you help me out?

    This is how it’s set up:

    /*
    * You can change this options to suit you needs.
    *
    * If you want to use reCAPTCHA you need to get API key,
    * for more information see: http://recaptcha.net/whyrecaptcha.html
    * then click: “Sign up Now!” or log into your account
    */

    $anonUserName = ‘Anonymous’; // ‘name’ of anonymous user, don’t have to exist
    $category = array(); //this array should contain IDs for categories you want anonymous post to be in, example: array(1,2,4). NOTE: create those categories first, and check their numbers

    $captchaEnabled = false; // enable reCAPTCHA (set to: true/false), do not use ‘ or ”
    $publickey = ”; // enter your API keys here
    $privatekey = ”;
    $enableComments = false; // true if you want to enable comments under posts created with plugin
    $my_post_type = ‘publish’; // avaiable options: ‘publish’ for posts to be published directly
    // ‘draft’ if you want to validate posts (by admin for example), post will appear as draft
    $enable_css = false; // set to true/false if you want css or not (css can be edited at the end of this file)
    $display_content_after_post_created = true; // set to true/false if you want to show content of page displayed above the form after post is sucessfully created on confirmation page
    $use_anonComment = false; // set to true/false if you want to use Anonymous Comment plugin to allow users to comment posts creted with this plugin to be anonymously commented, remember about installing this plugin first

    • Ken says:

      Oh, it’s posting the “comments” on the front page. I don’t want it to do that. I just want the comment to show up above the form on the “let’s Ride” page.

      • wlk says:

        Yes, you can do it, set front page not to display posts of selected category, then add new posts to be added to this category.

    • wlk says:

      Hi, can you paste what is link is under ‘is here’ ? Are you using ‘nice’ permalinks ?
      edit: I see it’s solved :)

  • Daniel says:

    Hi, the Plugin works fine but even when I give the right Code in reCaptcher I become the following message:

    “reCAPTCHA validation failed, try again”

    When the Code was right, I see the Post in the Backend!
    When the Code was wrong I didnt see the Post in the Backend!

    P.S. How I can extend this Plugin for example: Description, Tags and Pictures Upload?

    Greetings

    • wlk says:

      Hi, maybe you left trailing or leading spaces when pasting API keys, or you’re using some other plugins that might interfere?

      If you want to extend it add more fields to code with html, then you would have to read them from php. This is not very complicated.

  • Medo says:

    WOOOOOOOOOOOOW what a fantastic plugin , u SAVED my life ,

    but , is there is any way to make this plugin as a widget ??

    also , is there any way to make ( tags ) input ??

    thanks alllllllllllllllllloooooooooooooot .

    • wlk says:

      Hi, Options u are asking about are not available, I have currently no time to implement them, but they’re easily doable.

      • Medo says:

        OOOPS , there is BIG problem ,

        visitors now can post html codes !!!!!

        is there is any way to disable html from this user “anonymous” ?

        or any way to disable html from all the content in the blog !!!!

        thanks

      • wlk says:

        Yes, You have to edit file anonpost.php:
        on lines 109 and 110 there is:
        ‘post_title’ => $_POST['Title'],
        ‘post_content’ => $_POST['Message'],
        change it to:
        ‘post_title’ => striptags($_POST['Title']),
        ‘post_content’ => striptags($_POST['Message']),
        this should do

  • kenny says:

    Hi, is there anyway to make the posts only appear in a specific page For eg. when an anonymous person leaves a post, it will appear on the main blog page. Can I make it appear only on the page I choose?

  • I updated it to 1.3 but the problem is the same

  • [Solved] You were right the problem was due plugin Yet Another Related Posts Plugin. Thank you for help.

Leave a Reply