Home Forums Plugin Support WP User Frontend Pro Restrict Error Message With link

This topic is: resolved

Tagged: 

This topic contains 2 replies, has 2 voices, and was last updated by  Sk 4 years, 10 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #19975

    Denis
    Participant
    Post count: 165

    Hi,
    hoe can I make this error message with a link to login / register?

    his page is restricted. Please Log in / Register to view this page.

    Cheers,
    Denis

    #22731

    Denis
    Participant
    Post count: 165

    Hello,

    how and where can I change this?

    #22732

    Sk
    Moderator
    Post count: 371

    Hello DenisCGN,

    Please navigate to WPUF/class/admin-form.php on line 520. here you see the line
    $restrict_message = __( "This page is restricted. Please Log in / Register to view this page.", 'wpuf' );

    in function
    function form_settings_posts() {

    Replace the text between the double quote:
    This page is restricted. Please Log in / Register to view this page.

    by

    <a href="<?php echo get_permalink( wpuf_get_option( 'reg_override_page', 'wpuf_profile' ) ); ?>" >Registration</a> / <a href="<?php echo wp_login_url(); ?>" title="Login">Login</a>

    for registration and login page. if you checked Registration link override option and select registration option from adminPanel > User Frontend > Settings > Profile

    by

    <a href="<?php echo wp_registration_url(); ?>" title="Register">Register</a> / <a href="<?php echo wp_login_url(); ?>" title="Login">Login</a>

    if you not done that.

    Thank you.

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Restrict Error Message With link’ is closed to new replies.