Do not remember me!
/ / / check username availability

check username availability

how to chek automaticaly is username available or not For registration? Added by: in PHP Questions on
You can use jquery to extract data from existing function within DLE registration process...

1) Download the file below and upload to your theme folder, ex "js" folder
2) Open your theme "registration.tpl"
:::::: Add this code in the beginning of the file
[registration]<script type="text/javascript" src="{THEME}/js/register.js"></script>[/registration]
make sure you check the path to file if you place the file in different folder than "js"

:::::: Find
				<input type="text" name="name" id='name' style="width:175px; margin-right: 6px;" class="f_input" /><input class="bbcodes" style="height: 22px; font-size: 11px;" title="Check available" onclick="CheckLogin(); return false;" type="button" value="Check" />
<div id='result-registration'></div>

:::::: Replace with
            	<input type="text" name="name" id='name' size="25" class="f_input" onblur="check_login(this); return false;" required />
<div id='result-registration'></div>

If you want this form to check if password is matched in both fields then follow steps below
:::::: Find
<input type="password" name="password1" class="f_input" />

:::::: Replace with
           	<input type="password" name="password1" size="25" id="password1" class="f_input" onblur="check_first( this )" />
<div id="result-first"></div>

:::::: Find
<input type="password" name="password2" class="f_input" />

:::::: Replace with
            	<input type="password" name="password2" size="25" id="password2" class="f_input" onblur="check_password()"/>
<div id="result-pass"></div>

To check if user input valid email format like someone@somedomain.com then follow step below

:::::: Find
<input type="text" name="email" class="f_input" />

:::::: Replace with
            	<input type="text" name="email" size="25" id="email" class="f_input" onblur="check_mail(this)" />
<div id="result-mail"></div>
Please note, this jquery will not check email from database if it's been registered yet, it will only check if user input valid forma as name@site.com
You are not allow to download file from our server Answered by: yorismith


+2

Comments 3

  1. yorismith
    +1
    yorismith Currently Offline → 10 May 2015 13:28

    You can use jquery to extract data from existing function within DLE registration process...

    1) Download the file below and upload to your theme folder, ex "js" folder
    2) Open your theme "registration.tpl"
    :::::: Add this code in the beginning of the file
    [registration]<script type="text/javascript" src="{THEME}/js/register.js"></script>[/registration]
    make sure you check the path to file if you place the file in different folder than "js"

    :::::: Find
    				<input type="text" name="name" id='name' style="width:175px; margin-right: 6px;" class="f_input" /><input class="bbcodes" style="height: 22px; font-size: 11px;" title="Check available" onclick="CheckLogin(); return false;" type="button" value="Check" />
    				<div id='result-registration'></div>

    :::::: Replace with
                	<input type="text" name="name" id='name' size="25" class="f_input" onblur="check_login(this); return false;" required />
                    <div id='result-registration'></div>

    If you want this form to check if password is matched in both fields then follow steps below
    :::::: Find
    <input type="password" name="password1" class="f_input" />

    :::::: Replace with
               	<input type="password" name="password1" size="25" id="password1" class="f_input" onblur="check_first( this )" />
                    <div id="result-first"></div>

    :::::: Find
    <input type="password" name="password2" class="f_input" />

    :::::: Replace with
                	<input type="password" name="password2" size="25" id="password2" class="f_input" onblur="check_password()"/>
                    <div id="result-pass"></div>

    To check if user input valid email format like someone@somedomain.com then follow step below

    :::::: Find
    <input type="text" name="email" class="f_input" />

    :::::: Replace with
                	<input type="text" name="email" size="25" id="email" class="f_input" onblur="check_mail(this)" />
                    <div id="result-mail"></div>
    Please note, this jquery will not check email from database if it's been registered yet, it will only check if user input valid forma as name@site.com
     N/A |  45
  2. wapmastera
    0
    wapmastera Currently Offline → 11 May 2015 03:41

    Quote: yorismith
    You can use jquery to extract data from existing function within DLE registration process...

    1) Download the file below and upload to your theme folder, ex "js" folder
    2) Open your theme "registration.tpl"
    :::::: Add this code in the beginning of the file
    [registration]<script type="text/javascript" src="{THEME}/js/register.js"></script>[/registration]
    make sure you check the path to file if you place the file in different folder than "js"

    :::::: Find
    				<input type="text" name="name" id='name' style="width:175px; margin-right: 6px;" class="f_input" /><input class="bbcodes" style="height: 22px; font-size: 11px;" title="Check available" onclick="CheckLogin(); return false;" type="button" value="Check" />
    				<div id='result-registration'></div>

    :::::: Replace with
                	<input type="text" name="name" id='name' size="25" class="f_input" onblur="check_login(this); return false;" required />
                    <div id='result-registration'></div>

    If you want this form to check if password is matched in both fields then follow steps below
    :::::: Find
    <input type="password" name="password1" class="f_input" />

    :::::: Replace with
               	<input type="password" name="password1" size="25" id="password1" class="f_input" onblur="check_first( this )" />
                    <div id="result-first"></div>

    :::::: Find
    <input type="password" name="password2" class="f_input" />

    :::::: Replace with
                	<input type="password" name="password2" size="25" id="password2" class="f_input" onblur="check_password()"/>
                    <div id="result-pass"></div>

    To check if user input valid email format like someone@somedomain.com then follow step below

    :::::: Find
    <input type="text" name="email" class="f_input" />

    :::::: Replace with
                	<input type="text" name="email" size="25" id="email" class="f_input" onblur="check_mail(this)" />
                    <div id="result-mail"></div>
    Please note, this jquery will not check email from database if it's been registered yet, it will only check if user input valid forma as name@site.com

    thank you very much. how to show results in a tooltips like this http://inchoo.net/wp-content/uploads/2012/10/messages.jpg
     3 |  7
  3. dlefaq
    0
    dlefaq Currently Offline → 12 May 2015 20:48

    Quote: wapmastera
    thank you very much. how to show results in a tooltips like this http://inchoo.net/wp-content/uploads/2012/10/messages.jpg

    I have no idea, you may need to learn jquery and find plugins for it...but I already answered to your question so if you want fancy more than the answer then you will need to rewrite jquery or javascript for it.
     2 |  102

Information

Would you like to leave your comment? Please Login to your account to leave comments. Don't have an account? You can create a free account now.