MihanPanel plugin – JTC form fields not displayed or displayed incorrectly

Home Forums BulletProof Security Pro MihanPanel plugin – JTC form fields not displayed or displayed incorrectly

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #40229
    AITpro Admin
    Keymaster

    Problem posted on wordpress.org > https://wordpress.org/support/topic/conflict-with-bps-plugin/

    Hi

    Thanks for the great job you have done with MihanPanel plugin.

    However, there is a small conflict with one of the functionalities of the following plugin:
    https://wordpress.org/plugins/bulletproof-security/

    Summary:
    BPS adds a text-box captcha (jtc) to the registration/login/forgot-password forms on the login page. Installing MihanPanel causes the following:

    1. On the login/forgot-password forms, two text-boxes appear (instead of one).
    I used CSS to get rid of the second text-box, but you may want to look into this.

    2. On the registration form, no captcha text-box appears at all; however, the captcha keeps working. And it does not let you register because you have not entered the captcha.

    Note: Disabling MihanPanel resolves issue 1 and 2 mentioned above.
    Note 2: I use the pro version of the BPS plugin, but the free version also has the jtc captcha if you need to test things for yourselves.

    Best

    MihanPanel plugin test results:

    Login page Form:
    The additional login page form input text box that is displayed is the BPS JTC bot trap input text box, which is normally hidden using display: none CSS code. The MihanPanel plugin uses the !important CSS property in this CSS file: mihanpanel-lite/css/login.css, which overrides any/all other CSS.  The !important CSS property should ONLY be used sparingly and in cases where it is absolutely necessary to do that.

    BPS JTC bot trap input text box form HTML code:
    input type="text" name="captcha" id="captcha" class="input" value="" style="display: none;"

    The particular CSS code in the MihanPanel plugin this is causing the JTC bot trap input text box to be displayed instead of not being displayed is this CSS code below.

    .login form input[type=email]:not(.mw_default), .login form input[type=text]:not(.mw_default), .login form input[type=password]:not(.mw_default), .login form select:not(.mw_default), .login form label:not(.mw_default) {
        width: 100%;
        color: #222;
        display: block !important;
    }

    When you remove !important from this CSS code: display: block !important; the JTC bot trap input text box is not displayed.

    Register page Form:
    The MihanPanel plugin is using the standard WP Register Form hook: register_form that BPS JTC uses.
    File that contains and loads hooks: /mihanpanel-lite/app/hooks.php
    The register_form hooks are not the cause of the problem.  Based on the code in this MihanPanel plugin file: /mihanpanel-lite/app/sundry.php I believe the problem is caused because the Register Form inputs are based on the data saved in this MihanPanel plugin database table: mihanpanelfields. So since the BPS JTC CAPTCHA input form field is not saved in the MihanPanel plugin database table: mihanpanelfields then the JTC input form field will not be displayed in the Registration form.

    Example: The MihanPanel plugin gets the form input fields by querying the MihanPanel plugin database table: mihanpanelfields for all saved form fields to display.  Since the BPS JTC form input field is not saved in the MihanPanel plugin database table: mihanpanelfields then the BPS JTC form input field is not displayed.

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.