MyBB Community Forums

Full Version: Ajax / Cool Registration for MyBB *UPDATED*
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11
Attention to all Navbar Users! You can now use Ajax / Cool Registration with Navbar! lol... Toungue

let's talk here! http://community.mybboard.net/showthread.php?tid=18169
This is an interesting mod.

However, there is the problem if there is another text field (in form) named username (like Login block of MKPortal and probably the navbar as I see in mentioned somewhere in this thread). So I made some small changes for this mod. So it :
  • 1/ still works when register page exists another login form (like MKPortal Login block),
    2/ supports multi-language sites (notices will change with user language),
    3/ and there are some fixes in checking password and email matches. Look more reasonable!

Demo: MKPortal Vietnamese Support Register Page

Instructions:

After you installed the original Ajax / Cool Registration mod successful
  • Download the attached file register.js and overwrite the original one.
  • In AdminCP, open Templates -> Modify/Delete -> Current Theme -> Expand -> Member Templates->member_register:

    FIND:

    {$headerinclude}
    

    AFTER IT ADD:

    <script type="text/javascript" language="javascript">
    <!--
    var email_incorrect = '{$lang->email_incorrect}';
    var email_valid = '{$lang->email_valid}';
    var email_invalid_char = '{$lang->email_invalid_char}';
    var email_invalid_domain_char = '{$lang->email_invalid_domain_char}';
    var email_missing_hostname = '{$lang->email_missing_hostname}';
    var email_not_match = '{$lang->email_not_match}';
    var email_match = '{$lang->email_match}';
    var des_ip_invalid = '{$lang->des_ip_invalid}';
    var domain_invalid = '{$lang->domain_invalid}';
    var domain_country_invalid = '{$lang->domain_country_invalid}';
    
    var username_invalid = '{$lang->username_invalid}';
    var username_less_3 = '{$lang->username_less_3}';
    var is_in_use = ' {$lang->is_in_use}';
    var is_available = ' {$lang->is_available}';
    
    var password_less_6 = '{$lang->password_less_6}';
    var password_valid = '{$lang->password_valid}';
    var password_not_match = '{$lang->password_not_match}';
    var password_match = '{$lang->password_match}';
     // -->
    </script>
    

  • Open FORUM/inc/languages/english/member.lang.php:

    FIND:
    ?>
    

    ABOVE IT ADD:

    //ajax registration
    $l['email_incorrect'] = 'Email seems incorrect (check @ and .s)';
    $l['email_valid'] = 'Valid Email';
    $l['email_invalid_char'] = 'This email contains invalid characters.';
    $l['email_invalid_domain_char'] = 'Ths domain name contains invalid characters.';
    $l['email_missing_hostname'] = 'This address is missing a hostname!';
    $l['email_not_match'] = 'Email does not match the one to the left';
    $l['email_match'] = 'Emails match';
    $l['des_ip_invalid'] = 'Destination IP address is invalid!';
    $l['domain_invalid'] = 'The domain name does not seem to be valid.';
    $l['domain_country_invalid'] = 'The address must end in a well-known domain or two letter country.';
    
    $l['username_invalid'] = 'The username does not seem to be valid.';
    $l['username_less_3'] = 'The username must be 3 chars or more';
    $l['is_in_use'] = ' is in use';
    $l['is_available'] = ' Is Available';
    
    $l['password_less_6'] = 'Password must be 6 chars or more';
    $l['password_valid'] = 'Valid Password';
    $l['password_not_match'] = 'Password does not match the one to the left';
    $l['password_match'] = 'Passwords Match';
    //end ajax registration
    

All Done,

Enjoy!

VNChannel.
this mod is one of the best so far.
I recently moved from ipb to mybb, but i noticed how mybb doesnt give yo uthis info on registration as ipb, now with this mod it does

i bet this will be built in to the next verison.

good job. thanks
I would like to see this feature built in.
and it already is in mybb 1.4
labrocca Wrote:I would like to see this feature built in.

rcpalace Wrote:and it already is in mybb 1.4

Yep.
tristam Wrote:
Carey Wrote:
 
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/thinkwii/public_html/inc/plugins/ajax_cr.php on line 35
cadert Is Available

I'm getting this error and the username that i type in changes to

<br />




[Image: error.jpg]

I am getting the same error.Please help this is a cool plugin.
I do either .
i did everything people advise but the porblem "on line 35" still there .
I get this error when I entered a name...
Quote:Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in I:\xampp\htdocs\myBB\inc\plugins\ajax_cr.php on line 34

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in I:\xampp\htdocs\myBB\inc\plugins\ajax_cr.php on line 34

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in I:\xampp\htdocs\myBB\inc\plugins\ajax_cr.php on line 35
username Is Available
Why is this showing up??
Also, I get those errors in front of my name in the input box...Is there a fix for either of these?
Same here. :-\
I asked a friend to help and he said the feature to connect to the MySQL DB is not written corrently. :-\

- H4x0rX
Thank you!I was searching for a mod like this?
Pages: 1 2 3 4 5 6 7 8 9 10 11