WordPress.org

Ready to get started?Download WordPress

Forums

WP User Frontend
access to non registered users (7 posts)

  1. globalreporter
    Member
    Posted 2 years ago #

    How can I allow also non registered users to use the submission form? When I am logged out, the post where I placed the form displays the following message: "This page is restricted. Please Log-in to view this page". I want the form appear automatically without need of logging-in

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

  2. robynred
    Member
    Posted 2 years ago #

    in the wpuf-editprofile.php there's code that says ...

    if ( is_user_logged_in() ) {
    $this->show_form();
    } else {
    printf( __( "This page is restricted. Please Register to view this page.");
    }

  3. alovinggoodbye
    Member
    Posted 2 years ago #

    @Robynred -> when I added this coding
    ________________________________________________________________________
    in the wpuf-editprofile.php there's code that says ...

    if ( is_user_logged_in() ) {
    $this->show_form();
    } else {
    printf( __( "This page is restricted. Please Register to view this page.");
    }
    ________________________________________________________________________

    It shut down my site. Is there something I am missing? Perhaps a "Register" plugin of some sort. I want the form appear automatically without need of logging-in

  4. robynred
    Member
    Posted 2 years ago #

    hi i've just noticed that code wasn't what i wanted to copy and paste but i can't edit it. Anyone know how i can remove or edit the above comment.

    Don't paste the code as is from above because the "register" anchor text links to another site.

  5. Alok Ranjan Dubey
    Member
    Posted 1 year ago #

    Hi Guys,
    I am new in wordpress. I am using a plugin 'WP User Frontend' for regiter and edit profile .When i want to edit my profile page then error message show that"This page is restricted. Please Log in to view this page".

    Please help me on this ...
    Thanks in advance.

    Alok ranjan Dubey

  6. Heiko Mamerow
    Member
    Posted 1 year ago #

    Hi folks,

    just comment some lines out and add postings works fine without login:

    1. Open this file: ..../wordpress/wp-content/plugins/wp-user-frontend/wpuf-add-post.php
    2. Edit this:
      if ( is_user_logged_in() ) {
                  $this->post_form( $post_type );
              } else {
                  printf( __( "This page is restricted. Please %s to view this page.", 'wpuf' ), wp_loginout( get_permalink(), false ) );
              }
    3. to this:
      #        if ( is_user_logged_in() ) {
                  $this->post_form( $post_type );
      #        } else {
      #            printf( __( "This page is restricted. Please %s to view this page.", 'wpuf' ), wp_loginout( get_permalink(), false ) );
      #        }
    4. Safe the file.

    ...ready ;-)

    (Don't comment the 2nd. line!)

  7. professor99
    Member
    Posted 1 year ago #

    Note if you alter the code as above some things wont work properly for non-logged in users particularly in the official released version. The development version fixes a lot of these problems.

    Newer frontend versions now being worked on include a Captcha for non logged in users.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic