WordPress.org

Ready to get started?Download WordPress

Forums

WP User Frontend
Usage with Anonymous User (7 posts)

  1. greigner
    Member
    Posted 1 year ago #

    This plug-in has one of the best interfaces I've seen for this type of function. Thank you! However, the reason I know that is because I have been searching and searching for one that allows user generated posts. Not "user" as in a registered WP user with the site's admin panel, but just any old website user/reader.

    Does anyone know if it's possible to do that with this plug-in?

    (example plug-ins that claim to do this but fail on many levels are: Post To Site, and WordPress Guest Post Plug-In.)

    http://wordpress.org/extend/plugins/wp-user-frontend/

  2. Tareq Hasan
    Member
    Plugin Author

    Posted 1 year ago #

    This is feature is not included yet.

  3. sg1_anhell
    Member
    Posted 1 year ago #

    This is more or less possible.
    In my case, I have done this:
    - In "wpuf-add-post.php", search: "is_user_logged_in"
    - And in "else" put the form too, so:

    if ( is_user_logged_in() ) {
    $this->post_form( $post_type );
    } else {
    $this->post_form( $post_type );
    }

    http://www.esodecimostodos.com/escribir-post/

    - With this, there were problems, when an anonymous user publishes a Post, gave an error. so, I created a page to say that the comment is pending review.

    http://www.esodecimostodos.com/post-recibido/

    To make the redirection:
    - In "wpuf-add-post.php", search the last "if": if ($ post_id)
    - And do like this:

    //echo '<div class="success">' . __('Post published successfully', 'wpuf') . '</div>';
    header( 'Location: http://www.esodecimostodos.com/post-recibido' ) ;
    exit();

    if ( $post_id ) {
    header( 'Location: http://www.esodecimostodos.com/post-recibido' ) ;
    exit();

    $redirect = apply_filters( 'wpuf_after_post_redirect', get_permalink( $post_id ), $post_id );

    I hope you find it useful provisionally.
    It is a solution. Sorry for my english: P

  4. Remco Stoffer
    Member
    Posted 1 year ago #

    excelent solution sg1_anhell !!!

    My only problem is, before trying your solution, I do want to charge writers something so I really need the Paypal option. So how would I do this ?? Any ideas.

    Muchas gracias desde Tarragona

  5. sg1_anhell
    Member
    Posted 1 year ago #

    Hola desde Girona ;P

    Maybe doing that:

    if ( is_user_logged_in() && (userpay=yes) ) {
    $this->post_form( $post_type );
    } else {
    show condition or message
    }

    *(userpay=yes)
    this is invented oviously, but is a posible idea, how do that exactly, i don't know sorry

    Un saludo paisano! no se si esto te servirá, pero es la idea que se me ha ocurrido al respecto, no tengo nivel alto de programación así que no puedo ayudarte más perdona. Suerte!

  6. frizzie55
    Member
    Posted 1 year ago #

    To just have a confirmation message at the top of the form, uncomment (removing the first two slashes):

    //echo '<div class="success">' . __('Post published successfully', 'wpuf') . '</div>';

    Edit the 'Post published successfully' to whatever you want.

    And delete:

    if ( $post_id ) {
    $redirect = apply_filters( 'wpuf_after_post_redirect', get_permalink( $post_id ), $post_id );

    wp_redirect( $redirect );
    exit;
    }

  7. greigner
    Member
    Posted 1 year ago #

    Thanks for all the help. In the interest of time and deadlines (the site was for a client), i used a plug in called gravity forms. It does more than what I needed, but it did work well, and helped me get the project done on time.

    There is still a need for simple plug in like this one. Appreciate your hard work, and look forward to future releases!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic