Spam registration

Discussion in 'SaleJunction E-Commerce WordPress Theme' started by maes39, Jan 1, 2015.

  1. maes39

    maes39 Member

    Joined:
    Jul 2, 2013
    Messages:
    123
    Likes Received:
    2
    Last year i asked an question in the next thread:
    http://www.inkthemes.com/community/threads/disable-create-login.9655/

    This works for a long time,but i updated last month the theme and now i get spam registration.

    I want to use the thread from last year but the code is changed.

    Now i have this code:

    <div class="registration">
    <h3>Create Free Account</h3>
    <form name="registration" id="reg_form" class="registrtaionForm" action="<?php echo $action; ?>" method="post">
    <div class="row">
    <label for="user_login">Username<span class="required">*</span></label>
    <br/>
    <input type="text" class="required requiredField" id="user_login" name="your_username" value="<?php if (isset($posted['your_username'])) echo $posted['your_username']; ?>"/>
    <span id="user_error"></span>
    </div>
    <div class="row">
    <label for="email">Email<span class="required">*</span></label>
    <br/>
    <input type="text" class="required requiredField email" id="email" name="your_email" value="<?php if (isset($posted['your_email'])) echo $posted['your_email']; ?>"/>
    <span id="email_error"></span>
    </div>
    <div class="row">
    <label for="rpassword">Enter a Password<span class="required">*</span></label>
    <br/>
    <input type="password" id="rpassword" name="your_password" value=""/>
    <span id="pw_error"></span>
    </div>
    <div class="row">
    <label for="password2">Enter a Password again<span class="required">*</span></label>
    <br/>
    <input type="password" id="password2" name="your_password_2" value=""/>
    <span id="pw_error2"></span>
    </div>

    <?php
    //$captcha_option = inkthemes_get_option('lead_recaptcha');
    //$captcha_option_on = "on";

    if (inkthemes_get_option('reg_captcha') == 'on') {
    ?>
    <div id="recaptcha_widget" style="display:none">
    <div id="recaptcha_image"></div>
    <div class="recaptcha_only_if_incorrect_sol" style="color:red">Incorrect please try again</div>
    <span class="recaptcha_only_if_image">Enter the words below:</span>
    <input type="text" id="recaptcha_response_field" name="recaptcha_response_field" required/>
    <div class="get_captcha"><a href="javascript:Recaptcha.reload()">Get another CAPTCHA</a></div>
    <div class="recaptcha_only_if_audio"><a href="javascript:Recaptcha.switch_type('image')">Get an image CAPTCHA</a></div>
    </div>
    <script type="text/javascript"
    src="http://www.google.com/recaptcha/api/challenge?k=<?php echo $publickey; ?>"></script>
    <noscript>
    <iframe src="http://www.google.com/recaptcha/api/noscript?k=<?php echo $publickey; ?>"height="300" width="500" frameborder="0"></iframe>
    <br>
    <textarea name="recaptcha_challenge_field" rows="3" cols="40"></textarea>
    <input type="hidden" name="recaptcha_response_field">

    </noscript>
    <?php
    if (isset($hasError)) {
    echo '<p style="color:red; margin-bottom:5px;">The captcha was incorrect.</p>';
    }

    ?>
    <?php } ?>


    <div class="row">
    <input type="submit" name="register" value="<?php echo "Register"; ?>" class="submit" tabindex="103" />
    <input type="hidden" name="user-cookie" value="1" />
    </div>
    </form>
    </div>

    Can i delete this code save??
     
  2. Pramod

    Pramod Guest

    Joined:
    Aug 8, 2014
    Messages:
    2,847
    Likes Received:
    63
    Hello,


    If you don't want registrations then you can delete it.

    Thanks & Regards
    Pramod
     
  3. maes39

    maes39 Member

    Joined:
    Jul 2, 2013
    Messages:
    123
    Likes Received:
    2
    Hello,

    The customers of the site may not register.
    The owner of the website has to create the logins after that customers has filled in an Ninja form with an request of register.

    Thanks for the help (after this you can closed the thread)
     
  4. Pramod

    Pramod Guest

    Joined:
    Aug 8, 2014
    Messages:
    2,847
    Likes Received:
    63
    Hello,

    OK ! Then you can delete above code.
    Let me know for further doubts and queries.

    Thanks & Regards
    Pramod
     

Share This Page