This topic contains 2 reply and 2 voices, and was last updated by Sk 5 years, 3 months ago
Viewing 2 Posts - 1 through 2 (of 2 total)
Author Posts
May 6, 2014 at 4:28 pm 19975
Sk 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
July 2, 2014 at 2:26 pm 22731
Denis Denis

Hello,

how and where can I change this?

July 2, 2014 at 3:04 pm 22732
Sk Sk

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 2 Posts - 1 through 2 (of 2 total)