Sorry, I'm probably a bit slow...I've had a look at a lot of pages on the forum. There are what I would call "snippets" of information on how to create a registration page....but no real definitive guide.
Is there a tutorial somewhere that can step us through the process?
Some questions about it....
* Can I create mmy forum within chronoforms and use the mambot?
* How do I get the two password fields to check they are the same or does the plugin do that?
* What text gets sent out when you want them to activate the link?
* Do you deactivate registration in the config as one person seemed to suggest?
Cheers,
Phil
Use the Joomla Registration Plugin to link a ChronoForms form to the Joomla Registration. In the basic form this just replicates the Joomla Reg code in CF.
The password fields aren't checked but you can use the validation tab to do that - there's been a recent thread on getting this validation working.
The text is default Joomla but you can over-ride it by hacking the plugin. You may need to create copy of the User language file for ChronoForms.
Probably you'll only want members registerign in one place - not sure if you need to deactivate registration to do this, maybe just hide the other forms.
Bob
The password fields aren't checked but you can use the validation tab to do that - there's been a recent thread on getting this validation working.
The most accurate thread I could find on comparing the two passwords was one where you'd mentioned you weren't sure, but offered suggestions. I can't get it to work. Any idea what thread you were meaning?Probably you'll only want members registerign in one place - not sure if you need to deactivate registration to do this, maybe just hide the other forms.
Not sure what you mean? As in hiding the ability to register in the forum etc? I was just going to hack any registration files..probably jus the login module.Phil
PS...Bob, you may recall you're helping me with an issue where a drop-down login box appears when it shouldn't on a contact form. Well, in testing this registration page, the login box is satying hidden as it should...meaning one of the settings in the other form is the issue. Just trying to figure out what!
The most recent thread on comparing two fields is here - there are two different methods suggested, I thin either should work OK.
Bob
Step 1
-------
In my form HTML, I've got the following....
<p><strong>Password</strong> *<br />
<input class="required" name="password1" type="password" value="" size="50"></p><BR/><BR/>
<p><strong>Verify Password</strong> *<br />
<input class="required validate-the_same_value" name="password2" title="password2" type="password" value="" size="50">
Step 2--------
open mooValidation.js under components/com_chronocontact/js/
after this line :
Validation.addAllThese([
add :['validate-the_same_value',
'The passwords you have entered do not match.',
function (v,elm) {
return !Validation.get('IsEmpty').test(v)
|| ((elm.value == $(elm.getProperty('title')).value)? true : false )
}],
There are some changes there based on what everyone was saying in that other thread, but I still don't think it's right...or how it knows what fields to check?
Cheers,
Phil
All that looks good from a quick scan - but I gather that it's still not working.
I'll take a look at the code a bit later today.
Bob
Phil
My form looks like this....
<p><strong>Password</strong> *<br />
<input class="validate-the-same-value" name="password1" title="password1" type="password" value="" size="50">
</p><BR/><BR/>
<p><strong>Verify Password</strong> *<br />
<input class="validate-the-same-value" name="password2" title="password2" type="password" value="" size="50">
</p>
And in the mooValidations.js file, I currently have....
['validate-the-same-value', 'Matching passwords are required.', function(v,elm) {
return !Validation.get('IsEmpty').test(v)
;
}],
Now you might say that this is doing no comparison...and you'd be right. I took the advice in the other thread and wanted to make sure some checking was happening. So the code above produces a warning if either password field is empty.
It's when I add in this...
|| ((elm.value == $(elm.getProperty('title')).value)? true : false )
..that the entire checking stops....it doesn't check to see if the password fields are empty any more and it doesn't check if they are the same.
Phil
I spent an hour or so on this earlier today - with no success. It needs someone with better JavaScript skills than me to look at it.
I was trying the example validator from Andrew Tetlaw's site - he has password confirmation working on the demo page - but the same code (as far as I can tell) fails in ChronoForms.
Bob
I have no idea!
Cheers, Phil
I see you have your HTML coded wrong!! if you checked the main post again you will see that your code should be like this :
<p><strong>Password</strong> *<br />
<input name="password1" title="password1" type="password" value="" size="50">
</p><BR/><BR/>
<p><strong>Verify Password</strong> *<br />
<input class="validate-the_same-_value" name="password2" title="password1" type="password" value="" size="50">
</p>
let me know
Cheers
Max
To confirm my code. The form HTML is now....
<p><strong>Name </strong>*<br />
<input type="text" class="required" name="from_name2" size="50" value="" />
</p><BR/><BR/>
<p><strong>Username</strong> (to be displayed) *<br />
<input type="text" class="required" name="from_username2" size="50" value="" />
</p><BR/><BR/>
<p><strong>Email Address</strong> * <br />
<input type="text" class="required validate-email" name="from_email2" size="50" value="" />
</p><BR/><BR/>
<p><strong>Password</strong> *<br />
<input name="password1" title="password1" type="password" value="" size="50">
</p><BR/><BR/>
<p><strong>Verify Password</strong> *<br />
<input class="validate-the_same-_value" name="password2" title="password1" type="password" value="" size="50">
</p>
<BR/><BR/>
<p>
<b>By the act of registering, you agree to abide by the <a href='http://www.nziphone.com/forum-rules-and-guidelines.html'>Forum Rules and Guidelines</a> for NZiPhone.com</b><BR/>
<BR/>
</p>
<h3 style="color:#FF0000">Note - This registration page is a test page that should resolve other issues. If the page fails to work, please use the Contact form to report the issue. Many thanks for your patience.</h3>
<BR/><BR/><p>Â </p>
<p><em>For security, please type in the code you see here...which is CaSe senSiTive !</em></p>
<p><?php if(!$my->id){ ?>
{imageverification}
<?php } ?>
</p><p>
<input type="reset" name="reset" value="Reset" />
   Â
<input type="submit" name="doit2" id="doit2" value="Submit Form" />
</p>
<p>Â </p>
<p>* = Required </p>
And the code in the mooValdation.js is....
['validate-the_same-_value', 'Matching passwords are required.', function(v,elm) {
return !Validation.get('IsEmpty').test(v) || ((elm.value == $(elm.getProperty('title')).value)? true : false )
;
}],
Cheers,
Phil
I'm sorry, I think I copied a wrong post, the code should be like this actually :
<p><strong>Password</strong> *<br />
<input name="password1" id="password1" title="password1" type="password" value="" size="50">
</p><BR/><BR/>
<p><strong>Verify Password</strong> *<br />
<input class="validate-the_same_value" name="password2" title="password1" type="password" value="" size="50">
</p>
and :
['validate-the_same_value', 'Matching passwords are required.', function(v,elm) {
return !Validation.get('IsEmpty').test(v) || ((elm.value == $(elm.getProperty('title')).value)? true : false )
;
}],
I just put your code in a new form and it doesn't work for me either :-(
Bob
Yes, I just corrected the code!😉
First, I'm not getting any notifications from the forum....just thought I would mention it as I know you changed servers. Second..again, thanks for all this help.
I tried the script and this time I was able to submit a form with no passwords at all (both fields blank) and this took me to a page on my site that had the comment "REG_COMPLETE_ACTIVATE". The account I registered received an email that said "Account details for" and nothing else. The email said "SEND_MSG_ACTIVATE". So lots of blanks, but the process kinda worked (except allowed blank password fields) as the user account was created in Joomla.
Trying to register with mismatching password, I again got an error page that said "500 - PASSWORD DO NOT MATCH."
Phil
Max changed the forum as well as the server and thread subscriptions didn't get carried over. If you scroll down to the bottom of the thread you'll see a 'Subscribe topic' link which shoudl allow you to re-subscribe to this link.
[attachment=1]03-08-2008 15-25-21.png[/attachment]
When you create a new post or edit the old one there is an Options Tab below the edit window where you can ask to be notified about replies.
To be automatically subscribed you need to go to the User Control Panel and set Notification On.
[attachment=0]03-08-2008 15-29-48.png[/attachment]
The cryptic messages that you are getting are because the User module language files are not loaded if the user isn't logged in - which you aren't at this stage. I tend to copy the defines into the beginning of my form code but the more elegant way is to make a copy of the language file and add it to the ChronOfomrs component. I'll remind myself how to do this and re-post it here.
Bob
'll remind myself how to do this and re-post it here.
Thank, as you've got me confused....but given the fact that it's all not working, what language comes through is less of a worry for me at the moment than just getting the thing working. This one has me stumped completely.
Phil
<p><strong>Password</strong> *<br />
<input name="password1" id="password1" title="password1" type="password" value="" size="50">
</p><BR/><BR/>
<p><strong>Verify Password</strong> *<br />
<input class="validate-the_same_value" name="password2" title="password1" type="password" value="" size="50">
</p>
And...
['validate-the_same_value', 'Matching passwords are required.', function(v,elm) { return !Validation.get('IsEmpty').test(v) || ((elm.value == $(elm.getProperty('title')).value)? true : false );}],
Phil
I cant find why it doesn't work then, I never tested this but at the other post it has been reported that it worked, so until I test this myself I can't comment any more, do you get any JS errors on page ?
Cheers
Max
And the good news..by unsubscribing and re-subscribing this morning....I got notified of this post!! 😀 😀
Phil
Cheers, Phil
Just to say that I got your email and will take a look as soon as I can - it's been a bit of a madhouse here this week - back to tranquillity shortly I hope.
Bob
use Internet Explorer to view the page, you can see at the bottom left ?
Hi, I'm on a Mac, but fired up windows and IE didn't report any errors that I could see anywhere.
Phil
The cryptic messages that you are getting are because the User module language files are not loaded if the user isn't logged in - which you aren't at this stage. I tend to copy the defines into the beginning of my form code but the more elegant way is to make a copy of the language file and add it to the ChronoForms component. I'll remind myself how to do this and re-post it here.
Bob
I'm getting the same cryptic messages that Philip Roy had so how exactly do you copy the language file into the CF component? thanks
You can include a block of defines like this in the beginning of the file that manages the login process:
// Edit the language defines here
// :: Hack :: Language defines inserted because user is not logged in
// // language defines from en-GB.com_user.ini
define('SEND_MSG',"Hello %s,\n\nThank you for registering at %s.\n\nYou may now Login to %s using the username and password you were emailed.");
define('SEND_MSG_ACTIVATE',"Hello %s,\n\nThank you for registering at %s. Your account is created and must be activated before you can use it.\nTo activate the account click on the following link or copy-paste it in your browser:\n%s\n\nAfter activation you may login to %s using the following username and password:\n\nusername - %s\npassword - %s");
define('SEND_MSG_ADMIN',"Hello %s,\n\nA new User has registered at %s.\nThis e-mail contains their details:\n\nName - %s\ne-mail - %s\nUsername - %s\n\nPlease do not respond to this message as it is automatically generated and is for information purposes only.");
define('SEND REGISTRATION',"Send Registration");
define('ACCOUNT DETAILS FOR',"Account Details for %s at %s");
define('REG_COMPLETE',"You may now Login.");
define('REG_COMPLETE_ACTIVATE_TITLE',"Registration Complete!");
define('REG_COMPLETE_ACTIVATE',"Your account has been created and an activation link has been sent to the e-mail address you entered. Note that you must activate the account by clicking on the activation link when you get the e-mail before you can login.");
or you can copy the whole en-GB.com_user.ini file in the language/en=GB folder and call the copy en-GB.com_chronocontact.ini
Bob
* Should I try the beta?
* Is it safe to use the beta on a production site?
Otherwise I'm happy just to wait see what happens with version 3.
Cheers,
Phil
Sorry, You have entered a wrong verification code, Please try again!!
It submitted perfectly fine for me earlier today too. :?
Which version do you have ? and do you reload the whole form page or just hit the back button after submit to retest ?
Hi Phil,
BETA 2 is very fine and we are using it here at the Contact page and the submit stories page!
Regards,
Max
Cheers,
Phil
I suggest this, leave your email template empty in the wizard, save your form, now open it in the forms management, go to the templates editor, open the editor HTML code editor, remove all the HTML code, add your plain text, save the form!
Hi Bullfn33,
Which version do you have ? and do you reload the whole form page or just hit the back button after submit to retest ?
2.5 J1.5 RC3.1 and I've tried both ways to retest it. You type in the letter case for the Captcha correct? Makes no sense that it worked the first time I tried it. Then I added in the block of language files and it started giving the message. Same result with removing the block of text and that was the only change I had made since it worked.
I just notice that when you load the page one image flashes up to be immediately replaced by another - don't know why this should be though.
Bob
Yes it is the previous one - I didn't think so earlier.
We had a problem like this several months ago . . . iirc it was fixed in a later release of CF. I don't remember the cause now - and this may not be the same thing.
Bob
I think reloading image is fine, its just a new image for a new session, I cant test this form while it registers new users too!
I unchecked the Joomla Registration plugin.
yes it doesn't work, which type of session handler do you have at the joomla global config ? can you set it to database and retest ?
it was set to database
I'm coming back to this fairly old post of mine now that there is a new stable version of the component. I'm still keen to create a registration page, but not sure what to do with the new version.
I used the wizard to create a form (Name, Username, email, password and confirm password) and saved it. Then put a tick next to it and and clicked on the "Joomla Registration" and entered the details you see in the image attached. Also switched on Anti Spam and Validation.
At the moment, it isn't checking the 2 passwords are the same, isn't creating a user in the database or sending out emails. Some of the things I know I need to switch on, but not sure what I'm doing wrong to even start having the 2 passwords compared. Am I still needing to hack files to add validation coding?
Cheers,
Phil
Regards
Max
<label class="cf_label">Password*</label><input class="cf_inputbox required" maxlength="150" size="50" id="text_3" name="text_3" type="password"></div><div class="clear">Â </div></div><div class="form_item"><div class="form_element cf_password"><label class="cf_label">Confirm Password*</label><input class="cf_inputbox required" maxlength="150" size="50" id="text_4" name="text_4" type="password"></div>
I then go back to that image in my previous post and enter "text_3" into both password fields?
Also....do I need to create the content of emails that go out or does the plugin do all that?
Cheers, Phil
Regards
Max
Phil
Regards
Max
Cheers, Phil
<?php
global $mainframe;
if(JRequest::getVar('text_3') != JRequest::getVar('text_4'))
return 'Sorry, your passwords don't match, try again!';
?>
Regards
Max
500 - PASSWORD DO NOT MATCH.
You may not be able to visit this page because of:
...etc etc. Not sure what to do there?
Another question. My main reason for wanting to use Chrono Forms for registration is to do away with the Security Images component. It's a great component, but it means having to patch Joomla every time an update comes out. Using CF should make things a lot easier and make the experience nicer. I intend to hack the login module on the site to point to my new registration page, but how would I stop anyone getting to the page that endsin "index.php?option=com_user&task=register"....as I don't want them registering that way?
Thanks in advance (and sorry for all the questions).
Phil
to full integrate this form as the only registration form there a joomla plugin must be written to redirect any user trying to access the default joomla login page to the new form, I will try to write one very soon as I need one myself!🙂
Regards
Max
Hi Phil, you will keep the plugin config as the last image above, don't change it, only make the server side validation, is this the case now ?
If I leave both boxes as "text_3" as in my second image, then it doesn't check that the passwords are the same...so I changed it back to how the first image has it....with "text_3" and "text_4". It does appear to be checking, but coming up with a nasty 500 page as the error?
to full integrate this form as the only registration form there a joomla plugin must be written to redirect any user trying to access the default joomla login page to the new form, I will try to write one very soon as I need one myself!🙂
Would this do it and is this what you mean?...it came out yesterday....
http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,6042/Itemid,35/
Cheers, Phil
#1- did you make the sever side validation code and enable it ?
#2- I'm not sure, I didn't try it or look at the code of this one!
Regards
Max
Re 2...I tested it and it seems to do just as required :-)
Phil
Regards
Max
Cheers
Max
Awesome!!!! It's all working perfectly with one minor exception. The email that gets sent out to the person registering is missing the actual password for some reason. For example....
After activation you may login to http://www.nziphone.com/ using the following username and password:
Username: Joe Bloggs
Password:
Max...I'm going to be moving my other site to J1.5 in a week or so and will use CF for Registration there too....how about I make up a guide for everyone after all the help I've received here and you're welcome to put it on the site?
Cheers, Phil
some guide will be great for sure, I think you got familiar with it very well now!🙂
Cheers
Max
some guide will be great for sure, I think you got familiar with it very well now!🙂
Ha ha!OK...it'll be a couple of weeks, but I'll get back to you.
Thanks again to everyone for the help!
Phil
For example, instead of index.php?option=com_user&task=register
If I make it index.php?option=com_user&task=register?
...it circumvents the plugin and goes back to the old registration form.
Not sure what to do?
Phil
Then that plugin you mentioned about redirects doesn't work as expected, it only redirects full URLs, that's too easy to break! as a quick workaround but not the cleanest way, here is how we can make the same effect at the template index.php file :
<?php
global $mainframe;
if((JRequest::getVar('option') == 'com_user')&&(JRequest::getVar('task') == 'register')){
$mainframe->redirect('chronoforms_form_link');
}
?>
Cheers
Max
Cheers, Phil
Cheers
Max
Re security images, I meant this....
http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,1211/Itemid,35/
Phil
index.php?option=com_user&task=register does indeed redirect, but index.php?option=com_user&task=register? still gets you back to the unprotected normal Joomla registration.
Phil
index.php?option=com_user&task=register&test2=value
what does the above url do ?
Phil
Unfortunately, task=register? and task=register?? and task=register??? etc etc still take you to the default registration page. Is there not a way to block any combination?
Sorry if I'm sounding worried, but I had a back site hacking experience a while back.
Phil
components\com_user\views\register\tmpl\default.php and edit it to add :
$mainframe->redirect('chronoform_url');
and remove the template hack we made earlier!
let me know the results!
Cheers
Max
Phil
Phil
<?php // no direct access
defined('_JEXEC') or die('Restricted access'); ?>
To....
<?php // no direct access
defined('_JEXEC') or die('Restricted access');
$mainframe->redirect('chronoforms_url');
?>
In my case, "register.html" replaces the text "chronoforms_url" above
Cheers, Phil
Cheers
Max
Phil