[BETA] AJAX Registration Checks 0.1.2

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Scam Warning
Locked
User avatar
Quezza
Registered User
Posts: 212
Joined: Sat Oct 23, 2004 7:17 pm
Location: Hertfordshire, UK
Contact:

[BETA] AJAX Registration Checks 0.1.2

Post by Quezza »

Latest Version: 0.1.2 All known bugs fixed

When the user is registering on your forum, my mod checks a number of things using AJAX (quickly, silently & discretely, without reloading the page). After a check, a short message is shown to the user with the result. It is a very quick check and doesn't inhibit the filling in of the form in any way, the user can just do it normally. They do not need to wait until the check is finished (which takes a faction of a second anyway) before the continue with the form.

It checks the following so far:
  • Checks if the username is available or has already been taken.
  • Checks that the username abides by all of phpBB's rules, such as no illegal characters, correct length, etc.
  • Checks that the first passwords entered is not too long or short.
  • Check how "strong" the first passwords entered is. Based on a number of factors including: length, lower-case letters, upper-case letters, digits, special characters, etc.
  • Checks that the two passwords entered are the same.
  • Checks if the first email address is in the correct format.
  • Checks if the first email address for for a valid domain with a MX record.
  • Checks that the two email addresses entered are the same.
[/color]

Downloads:
AJAX Registration Checks Version 0.1.2

Demo Board:
Temporary Demo Board
Note: This board has a number of other mods installed and is my testing place, the this is the only mod which affects the registration process (at the moment, anyway).

Screenshots:
The standard registration form before any info has been entered is just like before the MOD:
Image

When you enter a username that has already been entered a quick loading message is shown (for a fraction of a second and I didn't manage to screenshot it!) and then this is displayed:
Image

When a new username is entered and it has not been registered before this message is shown:
Image

I can't be bothered right now to make screenshot for all the different messages, but you should get the idea and if you don't then visit the test board or install it yourself.

Credits:
[/color]

What are your thoughts? Is there anything else that you would like it to be able to do checks on?

If you install it, please post here so that I know roughly how many people have installed it :)

:D Luke :D
Last edited by Quezza on Fri Jun 01, 2007 10:58 am, edited 12 times in total.
User avatar
Quezza
Registered User
Posts: 212
Joined: Sat Oct 23, 2004 7:17 pm
Location: Hertfordshire, UK
Contact:

Re: [DEV] AJAX Checking (of many things on registration)

Post by Quezza »

Edited first post, the coding is now completed I now just need to make the MOD file and get it packaged... :D
User avatar
Quezza
Registered User
Posts: 212
Joined: Sat Oct 23, 2004 7:17 pm
Location: Hertfordshire, UK
Contact:

Re: [DEV] AJAX Checking (of many things on registration)

Post by Quezza »

Released version 0.1.0
User avatar
Volunteer Forum
Registered User
Posts: 400
Joined: Mon Sep 12, 2005 9:59 pm

Re: [BETA] AJAX Registration Checks 0.1.0

Post by Volunteer Forum »

I don't get the small images to show before the red text..

Also, some of the text does not change when you change default board language.
For instence:

Username:
if unawailibly = wrong language
If awailiby = wrong language

Mail:
If the same = wrong language
If not same = Right language

Password:
If correct = Right language
If incorrect = Right language
<-- Only row working =P

etc in this file:
language/sv/mods/ajaxchecks.php

If you make a new version i hope you have the update code changes =P
Everything that is not perfect is a flaw [",]
User avatar
Quezza
Registered User
Posts: 212
Joined: Sat Oct 23, 2004 7:17 pm
Location: Hertfordshire, UK
Contact:

Re: [BETA] AJAX Registration Checks 0.1.0

Post by Quezza »

The images not showing up is probably because you either didn't update your imagesets in the ACP or missed out the changes to the ACP pages so the update didn't work. The images do work fine, I can assure you :)

All of the text is language based so there should be no problems with the MOD, itself. If some of them update and some don't, this is probably something to do with phpBB3 caching, make sure all the cache is cleared and refresh everything and try again.

:D
User avatar
JunglistPerfection
Registered User
Posts: 611
Joined: Mon Apr 09, 2007 11:58 pm
Location: Chicago, IL

Re: [BETA] AJAX Registration Checks 0.1.0

Post by JunglistPerfection »

Nice mod
User avatar
Volunteer Forum
Registered User
Posts: 400
Joined: Mon Sep 12, 2005 9:59 pm

Re: [BETA] AJAX Registration Checks 0.1.0

Post by Volunteer Forum »

Strange, i did clean the cache many times..
Now i opened in firefox and it worked (tha language) o.O
Well nice anyway..

Still i have problem with the images, and i gone thrue the whole
code again and i cant see any problem.. (hmm i take a look again)

Update:
Aha, i diden't know there was other cache things then the one on "admin index" page (first page)
Well now i have learned a new thing :)



Also, i found a bugg..
User Name:
Leon -> Is already Taken
leon -> Is awailibly

So you must fix for it to check for upper/lowercase..
Everything that is not perfect is a flaw [",]
User avatar
Quezza
Registered User
Posts: 212
Joined: Sat Oct 23, 2004 7:17 pm
Location: Hertfordshire, UK
Contact:

Re: [BETA] AJAX Registration Checks 0.1.0

Post by Quezza »

Ok, The bugs are:
  1. Username check is case-sensitive and it shouldn't be
  2. Checking the two email addresses are the same is case-sensitive and it shouldn't be
I'll get them fixed ASAP and add a new version
keepitguilleaume
Registered User
Posts: 19
Joined: Fri May 25, 2007 9:28 pm

Re: [BETA] AJAX Registration Checks 0.1.0

Post by keepitguilleaume »

just use the php strtolower($string) function

i think thats what phpbb uses for the "username_clean" field in the phpbb_users table
Dima_2005
Registered User
Posts: 15
Joined: Sat May 26, 2007 7:45 pm

Re: [BETA] AJAX Registration Checks 0.1.0

Post by Dima_2005 »

Very weird, only works on IE, doesn't work on FireFox
User avatar
Quezza
Registered User
Posts: 212
Joined: Sat Oct 23, 2004 7:17 pm
Location: Hertfordshire, UK
Contact:

Re: [BETA] AJAX Registration Checks 0.1.0

Post by Quezza »

Dima_2005 wrote:Very weird, only works on IE, doesn't work on FireFox
Try clearing your Firefox cache.

I made this and tested it fully using Firefox (with the help of Firebug) then once it worked fine for Firefox I got it working for IE. It works perfectly in both browsers and should work in any modern browser (such as Opera, Safari, Konqueror, Flock, etc.). The screenshots were even taken in Firefox, using Screengrab.

Luke
Dima_2005
Registered User
Posts: 15
Joined: Sat May 26, 2007 7:45 pm

Re: [BETA] AJAX Registration Checks 0.1.0

Post by Dima_2005 »

Hmm, I think I'll just have to change style...
Because when I run FireBug, I get this error ar registration:

Code: Select all

document.getElementById("username") has no properties
sndReq("usernamecheck", "username", "Dima_2005", "ignore", "ignore")ucp.php (line 154)
onblur(blur )ucp.php (line 1)
[Break on this error] if (mode == 'usernamecheck' && document.getElementById('username').value != ''...
ucp.php (line 154)
document.getElementById("email_confirm") has no properties
onblur(blur )
User avatar
yexusbeliever
Registered User
Posts: 586
Joined: Mon Dec 08, 2003 8:49 pm
Location: Olympus phpBB3

Re: [BETA] AJAX Registration Checks 0.1.0

Post by yexusbeliever »

I think you got everything listed that I wanted on this feature list. I think more can just be too much. Thanks for the sharing.
daemonic
Registered User
Posts: 72
Joined: Sat Oct 25, 2003 4:06 am
Location: London, UK

Re: [BETA] AJAX Registration Checks 0.1.0

Post by daemonic »

hiya,

can you help, the email and password checks are wokring fine for me, but the username check is not, can you give me some pointers?

http://dev.gt4oc.net/forums/ucp.php?mode=register
My Mods:
OurTube (YouTube clone) [Core: 95%, Features: ??%]
Shop with PayPal Checkout [85%]
Like my mods? Why not make a donation
Locked

Return to “[3.0.x] MODs in Development”