xoops forums

talunceford

Just can't stay away
Posted on: 2008/4/1 14:18
talunceford
talunceford (Show more)
Just can't stay away
Posts: 532
Since: 2002/8/14
#1

Working on an AJAX validation registration form and other updates....

Hey all,

Its been a few... caugh... months since my last post, but here is an update on a few things that I have been working on. Of course my BF2Online.com site is one site that I have going right now that has been an evolving creation since its initial inception. The main improvement that I have made to this site is the user info page. If you haven't ever looked at my user info on that site, please give it a go, its a HEAVILY modified version of the userinfo page along with quite a few other custom modifications to the core files to get it to work the way it does. I incorporated flash graphs for statistics tracking, and a custom template file that handles all of the front end stuff. I also added a custom buddy tracker, so that you can track friends that are members on the site. There are many many features that were created for this particular function of the site.

Here is a small preview of the userinfo section,
Resized Image

but you can see it in action here.

The newest portion of the site that I am currently working on is the registration form. I found a nice little AJAX validation script and wanted to incorporate it into the registration section of my site.

Here is what I came up with:
Resized Image


Resized Image


The register page is tied directly to the XOOPS database, and it checks the xoops_user table to see if the username is taken or not. I am trying to get it to where it uses the same name, email and password checking as the original registration page does that way it is as secure as the original page. Right now it is more of pre-check than anything. After I am done, it will prevent mistakes from happening.

Let me know what you guys think.

belia

Just popping in
Posted on: 2008/4/1 14:56
belia
belia (Show more)
Just popping in
Posts: 83
Since: 2007/12/18
#2

Re: Working on an AJAX validation registration form and other updates....

the ajax registration is nice ...improve it more and i think it should be included in core 3.0

figu78

Just popping in
Posted on: 2008/4/1 16:13
figu78
figu78 (Show more)
Just popping in
Posts: 60
Since: 2006/8/19
#3

Acojonante

Well done!! nice userinfo mod....

talunceford

Just can't stay away
Posted on: 2008/4/1 16:44
talunceford
talunceford (Show more)
Just can't stay away
Posts: 532
Since: 2002/8/14
#4

Re: Acojonante

Thanks all,

One thing that I didn't include in the post was a direct link to the registration page.

http://www.bf2online.com/register.php

You can play with it there.

The original AJAX script can be found here.

I will keep working on the script over the course of the next few days. It really isn't that complicated to integrate. I think what I would like to see happen is make it so that the script will enable or disable certain form elements, such as the submit button based on the criteria that is needed to complete the registration form successfully. The criteria being:
1. the username meets the complexity requirements established by the site owner
2. the username isn't taken
3. The passwords meet the complexity requirements established by the site owner.
4. The passwords are the same
5. The email hasn't been used in a registration prior to current user registration.

If all those items are met, the submit button is enabled. So, as you can now see there is some work yet to be done.

Anyway, thats all I have for now.

talunceford

Just can't stay away
Posted on: 2008/4/2 21:28
talunceford
talunceford (Show more)
Just can't stay away
Posts: 532
Since: 2002/8/14
#5

Update

Ok all,

Yesterday I posted about the progress of the registration page for my BF2Online.com site. I have an update for you. All XOOPS checking is now done prior to submission. Password strength can now be checked via an integrated password strength checker. I am still working on a way to get the actual password field to pass the value to the iframe box, but I am getting closer on that aspect of this upgrade.

Here is a screenshot of the progress.

Resized Image


Give it a whirl and let me know what you guys think.

Thanks!

Runeher

Module Developer
Posted on: 2008/4/2 21:45
Runeher
Runeher (Show more)
Module Developer
Posts: 825
Since: 2008/1/24
#6

Re: Working on an AJAX validation registration form and other updates....

very nice... you need too move the scroll box for 'test your password' down a bit...other than that it looked very good.


Rune

talunceford

Just can't stay away
Posted on: 2008/4/2 21:51
talunceford
talunceford (Show more)
Just can't stay away
Posts: 532
Since: 2002/8/14
#7

Re: Working on an AJAX validation registration form and other updates....

Cool, thanks, what browser did you view that in?

talunceford

Just can't stay away
Posted on: 2008/4/2 21:54
talunceford
talunceford (Show more)
Just can't stay away
Posts: 532
Since: 2002/8/14
#8

Re: Working on an AJAX validation registration form and other updates....

There are some problems with the way that it is viewed in IE, so I will try and combat those tonight. For now if you view it, its best viewed in Firefox.

Runeher

Module Developer
Posted on: 2008/4/2 22:21
Runeher
Runeher (Show more)
Module Developer
Posts: 825
Since: 2008/1/24
#9

Re: Working on an AJAX validation registration form and other updates....

i'm using the latest version of firefox...

when you scroll down, the top of the scroll box touches the Verify Password box...

Rune