I was just wondering if any knows of an easy way to implement an ajax style username checker to validate a username before submission.
I was thinking that perhaps JFactory could come in handy for this but I'm not 100% certain about that, anyway if anybody has an idea or suggestion I would love to hear it.
James
Hi Grimbly,
I Googled and found a Joomla 1.0 version by pixnet at joomlahacks.com (registration required to download)
Bob
Yep I noticed that one too and downloaded it but haven't really given it a hard look yet. I'm using J! 1.5.6 so I imagine there will be a bit of modification required and I'm not real familiar with Joomla's internal working so I wouldn't know where to begin. I should also mention that I'm currently using CF 3.0 Stable in case that makes any difference.
I've attached the 1.0 version .zip from joomlahacks.com in case you or anyone else was interested in taking a look at it.
Thanks for checking though GreyHead, and thanks for CF and all the help so far on this forum. You guys have a really good thing going here, just wanted to let you know I appreciate it.
Hi Grimbly,
you can also write a simple SQL query at the Server side validation box to check the same username and return some error if the same username was found, this will not be AJAX though.
Cheers,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Hi Grimbly,
I took a quick look at hacking the Joomla Registration plugin this morning. I think it's possible, but not trivial - the AJAX needs to call back to a PHP function and I'm nto quite clear how to make that available from an included file. I just got 'You are not allowed to access this form' messages and couldn't quickly see what was generating them :-(
Just had an even briefer look at Live Validation and that looks very similar to the Dexagogo validation that ChronoForms uses.
Bob
Hi Grimbly,
you can create a PHP file with the PHP code to make the username checking and call it with the AJAX code, get the AJAX response and do what you like.
see this mootools ajax example :
$('start').addEvent('click', function(e) {
e = new Event(e).stop();
var url = "http://demos111.mootools.net/demos/Ajax/lipsum.html";
/**
* The simple way for an Ajax request, use onRequest/onComplete/onFailure
* to do add your own Ajax depended code.
*/
new Ajax(url, {
method: 'get',
update: $('log')
}).request();
});
Cheers
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Hey guys sorry for taking so long to respond. I haven't had time to review the info. you've given me so far, hopefully I will this weekend though. I got sidetracked with the server-side verification and ran into an issue. I think you guys might be able to help.
In the CB plugin configuration there is a field named "lastupdatedate" I was not planning on using that and wanted to change it to "acceptedterms" and link that to the corresponding column in jos_comprofiler but cannot find the code I need to change
This will be used to verify that new users have agreed to my Terms of Service policy.
If either of you could point me in the right direction I would really appreciate it.
Thanks a bunch,
James
Hi James, you mean you want to add a new field or change an existing one ? do what you need then open the plugin configuration page, reconfigure and save so it has the latest data!
Cheers
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
I would prefer to modify. I think it might be easier than adding.
I just need to verify that users accepted my Terms of Service. There is a field in the jos_comprofiler table called "acceptedterms" and I just wanted to send my data to that field.
For testing I've got it linked to the "firstname" field, as the first name is not needed at my site, but it would be nice to have it in a more appropriate field๐
So to sum it all up, I would like to change which column the CB plugin sends the firstname data to, specifically i'd like to change the column from "firstname" to "acceptedterms" in the jos_comprofiler table.
The field name in the plugin config could stay the same for all i care, I just wanted to re-route where the data was sent.
Thanks again,
James
the CB plugin has 5 default fields, name,username,email,pass, verify pass, other fields are CB fields, change them as you like then reconfigure the plugin and save!
Cheers
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Hi gg4j,
I can't understand what you are trying to do, the AJAX code needs to be edited depending on your form code and fields names and PHP file for AJAX to be able to do the username check!
Cheers
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?