make website field compulsory

Posted in

Hi there,
Just wondering if there is a quick way to make the website field on the sign up form compulsory?
I have played with the code but cant find the correct area to adjust?

Many thanks for the great support.

3 Responses to make website field compulsory

  1. Peter June 24, 2014 at 1:19 am #

    Hi Antonio,
    Thanks, I have been into that file and tried some modifications but i am getting errors.
    IT is more complex than I had hoped. WhenI make some changes It is throwing errors
    I have tried to replicate the other required fields!
    Can you assist at all as I cant get this to work?

    Many many thanks

    pete

    • antonio June 24, 2014 at 9:48 am #

      Hi,
      you could add around line 208, something like this:
      $url = isset( $_POST['url'] ) ? Affiliates_Utility::filter( $_POST['url'] ) : '';
      if ( empty( $url ) ) {
      $url_class = ' class="required missing" ';
      $error = true;
      }

      But remember to change the code is not advisable.
      cheers

  2. antonio June 23, 2014 at 7:05 am #

    Hi,
    right now it’s not implemented. You could create you own registration shortcode (in affiliates-pro/lib/core/class-affiliates-registration-php file you can see how to works the actual shortcode).
    cheers

We use cookies to optimize your experience on our site and assume you're OK with that if you stay.
OK, hide this message.

Affiliates · Contact · Jobs · Terms & Conditions · Privacy Policy · Documentation · Downloads · Useful Plugins · My Account

Share