• Resolved flizzywp

    (@flizzywp)


    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?

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author gVectors Team

    (@gvectors-team)

    The best way is removing those from menu and redirecting theme to your login/register pages using according options in Dashboard > Forums > Settings > Members admin page. just put your page URLs in according authorization option:

    Plugin Author gVectors Team

    (@gvectors-team)

    Also you can disable forum user registration in Dashboard > Forums > Settings > Features admin page setting NO the “Enable User Registration” option.

    Thread Starter flizzywp

    (@flizzywp)

    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?

    Plugin Author gVectors Team

    (@gvectors-team)

    You can copy login.php file 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/

    Thread Starter flizzywp

    (@flizzywp)

    Thank you, I’ll try that!

    Thread Starter flizzywp

    (@flizzywp)

    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>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p>
    • This reply was modified 6 years, 1 month ago by flizzywp.
    • This reply was modified 6 years, 1 month ago by flizzywp.
    Plugin Author gVectors Team

    (@gvectors-team)

    Just remove the whole code.

    Thread Starter flizzywp

    (@flizzywp)

    Thank you!

    Thread Starter flizzywp

    (@flizzywp)

    Thank you, it worked perfectly. I did the same for register.php, is that correct?

    Plugin Author gVectors Team

    (@gvectors-team)

    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 URL

    Thread Starter flizzywp

    (@flizzywp)

    Thank you very much!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Disable login/registration pages?’ is closed to new replies.