Disable login/registration pages?
-
Since I want to use my own login/registration forms, is it possible to completely deactivate the ones that come with wpForo? I know that I can change the links, but I can still reach these pages over the URL directly. Is there a way to avoid this?
-
Also you can disable forum user registration in Dashboard > Forums > Settings > Features admin page setting NO the “Enable User Registration” option.
Thank you for your help. I already did the steps you described, but the wpForo login page is still accessible via its direct URL. Is there a way to block it out completely?
You can copy
login.phpfile from wpForo theme directory, paste it in current active WordPress theme’s/wpforo/folder, edit it and remove the form part, so the direct URL will open an empty page. More info about customizing wpForo theme files can be found in the documentation: https://wpforo.com/docs/root/forum-themes/theme-customization/-
This reply was modified 7 years, 2 months ago by
gVectors Team.
Thank you, I’ll try that!
Ok I added the file, can you tell me which part I have to remove?
<?php // Exit if accessed directly if( !defined( 'ABSPATH' ) ) exit; ?> <p id="wpforo-title"><?php wpforo_phrase('Forum - Login') ?></p> <form name="wpflogin" action="" method="POST"> <div class="wpforo-login-wrap wpfbg-9"> <div class="wpforo-login-content"> <h3><?php wpforo_phrase('Welcome!') ?></h3> <div class="wpforo-table wpforo-login-table"> <div class="wpf-tr row-0"> <div class="wpf-td wpfw-1 row_0-col_0" style="padding-top:10px;"> <div class="wpf-field wpf-field-type-text"> <div class="wpf-field-wrap"> <i class="fas fa-user wpf-field-icon"></i> <input autofocus placeholder="<?php wpforo_phrase('Username') ?>" required="TRUE" type="text" name="log" class="wpf-login-text" /> </div> <div class="wpf-field-cl"></div> </div> <div class="wpf-field wpf-field-type-password"> <div class="wpf-field-wrap"> <i class="fas fa-key wpf-field-icon"></i> <input placeholder="<?php wpforo_phrase('Password') ?>" required="TRUE" type="password" name="pwd" class="wpf-login-text" /> <i class="fas fa-eye-slash wpf-show-password"></i> </div> <div class="wpf-field-cl"></div> </div> <div class="wpf-field wpf-field-type-text wpf-field-hook"> <div class="wpf-field-wrap"> <?php do_action('login_form') ?><div class="wpf-field-cl"></div> </div> <div class="wpf-field-cl"></div> </div> <div></div> <div class="wpf-field"> <div class="wpf-field-wrap" style="text-align:center; width:100%;"> <p class="wpf-extra wpfcl-1"> <input type="checkbox" value="1" name="rememberme" id="wpf-login-remember"> <label for="wpf-login-remember"><?php wpforo_phrase('Remember Me') ?> | </label> <a href="<?php echo wpforo_lostpass_url(); ?>" class="wpf-forgot-pass"><?php wpforo_phrase('Lost your password?') ?></a> </p> <input type="submit" name="wpforologin" value="<?php wpforo_phrase('Sign In') ?>" /> </div> <div class="wpf-field-cl"></div> </div> <div class="wpf-field wpf-extra-field-end"> <div class="wpf-field-wrap" style="text-align:center; width:100%;"> <?php do_action('wpforo_login_form_end') ?> <div class="wpf-field-cl"></div> </div> </div> <div class="wpf-cl"></div> </div> </div> </div> </div> </div> </form> <p> </p><p> </p><p> </p>Just remove the whole code.
Thank you!
Thank you, it worked perfectly. I did the same for register.php, is that correct?
Yes, you can. Also make sure the these options are set “NO” in Dashboard > Forums > Settings > Features admin page:
1. Enable User Registration
2. Replace Registration Page URL to Forum Registration Page URL
3. Replace Login Page URL to Forum Login Page URL
4. Replace Reset Password Page URL to Forum Reset Password Page URLThank you very much!
-
This reply was modified 7 years, 2 months ago by
The topic ‘Disable login/registration pages?’ is closed to new replies.
