I've read through the whole forum on all posts regarding this and nobody seems to have this problem.
Not sure what to do.
jsgraphix.com/register.html
Thanks.
1. Form passed first SPAM check OK
2. Form passed the submissions limit (if enabled) OK
3. Form passed the Image verification (if enabled) OK
4. Form passed the server side validation (if enabled) OK
5. $_POST Array: Array ( [text_0] => test [text_1] => test [text_2] => [email]w59cb83x@yahoo.com[/email] [text_3] => test [text_4] => test [chrono_verification] => zeisL [button_6] => Register [2340330a50a7ef7a37c9dced32e44165] => 1 [1cf1] => 2a01be174509dc51542034fa685ec149 [chronoformname] => register )
6. $_FILES Array: Array ( )
7. Form passed the plugins step (if enabled) OK
8. Debug End
It's not creating any users or doing the normal registration process?
Anyone?
I have created it exactly how it is in the tutorial with the text_0 fields and so on. I have enabled the plugin, I have it configured to a different table other than the jos_user table, I have made sure all my text_xx files match correctly, I have enabled everything that should be enabled and it still is not working. I also tried to change this option Run Before/After the Email ?, before and after. If someone could please help me out here.... I have already posted in 3 other topics than this one and nobody is answering me.
Screenshots/Code:
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="width: 150px;">Name*</label>
<input class="cf_inputbox required" maxlength="150" size="30" title="" id="text_0" name="text_0" type="text" />
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="width: 150px;">Username*</label>
<input class="cf_inputbox required" maxlength="150" size="30" title="" id="text_1" name="text_1" type="text" />
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="width: 150px;">Email*</label>
<input class="cf_inputbox required validate-email" maxlength="150" size="30" title="" id="text_2" name="text_2" type="text" />
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_password">
<label class="cf_label" style="width: 150px;">Password*</label>
<input class="cf_inputbox required" maxlength="150" size="30" title="" id="text_3" name="text_3" type="password" />
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_password">
<label class="cf_label" style="width: 150px;">Confirm Password*</label>
<input class="cf_inputbox required" maxlength="150" size="30" title="" id="text_4" name="text_4" type="password" />
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_captcha">
<label class="cf_label" style="width: 150px;">Image Verification</label>
<span>{imageverification}</span>
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_button">
<input value="Register" name="button_6" type="submit" /><input type="reset" value="Reset"/>
</div>
<div class="cfclear"> </div>
</div>


Here is my form backup file:
http://www.jsgraphix.com/register.zip
Are you using any other ChronoForms plugins on your site? If which ones?
I have a modified Joomla Registration plugin that needs testing but it may intefere with other plugins.
Bob
PS I removed your other two identical posts.
Ok - them please try these two files. Rename the old ones so that you can undo the change if necessary.
plugin.php goes into administrator/components/com_chronocontact/helpers/
and
cf_joomla_registration goes into components/com_chronocontact/plugins/
The files are working on my test site and should be OK. Please give them a good test though (and note that some other plugins may not work correctly with this version of the helper file).
Let me know if you find any problems and I'll do my best to fix them asap.
Bob
Fatal error: Cannot instantiate non-existent class: cf_joomla_registrationold in /homepages/35/d221483634/htdocs/home/components/com_chronocontact/libraries/plugins.php on line 30
You'll have to move the old cf_joomla_registration.php-file to another directory, otherwise CF will try to load it as well. Since that class within the file does no longer match the file-name, you end up with this error.
/Fredrik
$post: Array ( [text_0] => John Schmidt [text_1] => w59cb83x [text_2] => [email]w59cb83x@yahoo.com[/email] [text_3] => ******* [text_4] => ******* [chrono_verification] => LgcFM [button_6] => Register [9d026b51ac87562bba8142341762721c] => 1 [1cf1] => 863be60e6f8f850460985dfd9fa60762 [chronoformname] => register [username] => w59cb83x [name] => John Schmidt [email] => [email]w59cb83x@yahoo.com[/email] [password] => ******* [password2] => ******* )
If anyone wants to try this go here
http://www.jsgraphix.com/register.html
Looks good to me - there's ome debug code showing but the regitration looks Ok form the user point of view.
Bob
$post: Array ( [text_0] => Testing [text_1] => Testing [text_2] => [email]bob@example.com[/email] [text_3] => xkZmgDWgV3 [text_4] => xkZmgDWgV3 [chrono_verification] => ufxc3 [button_6] => Register [22fdd8b1ce74d6b7ec5280ea05fc0d34] => 1 [1cf1] => c9eb774fb65fcbd729dfd1a754836ced [chronoformname] => register [username] => Testing [name] => Testing [email] => [email]bob@example.com[/email] [password] => xkZmgDWgV3 [password2] => xkZmgDWgV3 )
Hello Testing, Thank you for registering at JSGraphix. Your account is created and must be activated before you can use it. To activate the account click on the following link or copy-paste it in your browser: http://www.jsgraphix.com/index.php?option=com_user&task=activate&activation=3059a7d63aaf9afc4cb30d3fe7085bbc After activation you may login to http://www.jsgraphix.com/ using the following username and password: Username: Testing Password: xkZmgDWgV3Your 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.
Yes, got the email too.
Hello Testing,
Thank you for registering at JSGraphix. Your account is created and must be activated before you can use it.
To activate the account click on the following link or copy-paste it in your browser:
http://www.jsgraphix.com/index.php?option=com_user&task=activate&activation=3059a7d63aaf9afc4cb30d3fe7085bbc
After activation you may login to http://www.jsgraphix.com/ using the following username and password:
Username: Testing
Password: xkZmgDWgV3
There's a debug option on the plugin config, could be that or could be a stray line left in the code. I'll check in the morning.
Bob
I appreciate all of your help!🙂 Just let me know what I need to do to fix to get that debug info. And I did check and everything is off. So it shouldn't be showing up. Like you said it's probably something with the code.
Thanks again,
John
Modified cf_joomla_registration.php file attached, please put this in the plugins folder to replace the previous copy.
Bob
Well I've tried out the new file, but I ran into a one more problem now.
1) The "Show Joomla messages" is set to Yes, but it does not show the joomla message. It shows this message:
Hello John Schmidt, Thank you for registering at JSGraphix. Your account is created and must be activated before you can use it. To activate the account click on the following link or copy-paste it in your browser: http://www.jsgraphix.com/index.php?option=com_user&task=activate&activation=4c55192b503f596754b7680fb7a9503e After activation you may login to http://www.jsgraphix.com/ using the following username and password: Username: w59cb83x Password: *******
This is supposed to be sent in the email and not show up after you click register.
How do I fix this?
Another version of the plugin file attached tthat fixes that and a couple of other small bugs that I spotted. Hopefully we're getting close now.
Bob
Registration goes fine, user gets the activation email, but I tested out registering with the same username and same email and it let me register. It didn't give me an error saying that a user with that username already exists.
Oh, and one more thing, the Show Joomla messages still isn't working. Just a blank screen now.
What now?
Appreciate all the help so far!
I don't think that the plugin ever did deal with that, nor with a duplicate email. The Joomla error messages are there and the success/failure indicator. I guess that there is some extra coding needed to deal with it.
I'm off to cut the grass whilst the sun shines, back later.
Bob
but I tested out registering with the same username and same email and it let me register. It didn't give me an error saying that a user with that username already exists.
you need to grab the error and display it, the code to do this is here in the forums or in this tutorial :
http://www.chronoengine.com/tutorials/chronoforms-plugins/437-paid-registration-using-paypal-plugin.html
Oh, and one more thing, the Show Joomla messages still isn't working. Just a blank screen now.
do you have auto loging ON ?
Max
<?php
$MyPlugins =& CFPlugins::getInstance($MyForm->formrow->id);
if(!$MyPlugins->cf_joomla_registration['errors']){
$MyPlugins->runPlugin('after_email', array('ONSUBMIT', 'ONLOADONSUBMIT'), 'cf_paypal_api');
if($MyPlugins->cf_paypal_api['payment_status'] == 'SUCCESS'){
echo "Thank you for registering at Mysite.com. You will be recieving a confirmation email shortly";
$MyFormEmails =& CFEMails::getInstance($MyForm->formrow->id);
$MyFormEmails->setEmailData(1, 'enabled', '1');
$MyFormEmails->sendEmails($MyForm, $MyFormEmails->emails);
}else{
$regUser = new JUser($MyPlugins->cf_joomla_registration['user']->id);
$regUser->delete();
$MyForm->addErrorMsg( 'An error occured : '.$MyPlugins->cf_paypal_api['error_message'] );
$MyForm->haltFunction["autogenerated_after_email"] = true;
}
}else{
$MyForm->addErrorMsg($MyPlugins->cf_joomla_registration['errors']);
$MyForm->haltFunction["autogenerated_after_email"] = true;
}
?>
However, this gives an error code every single time I try to register. 1. An error occured : that's all it says? Registration does go through, and same issue again cuz I could register numerous times with same username
Auto login is set to no.
Please try the attached beta plugin.
I've added a few features:[list]
Bob
Well I think I got it all sorted out. I actually got it to work.
I needed to change a few options (flow control = before email) and add in code to the onsubmit before sending email:
<?php
$MyForm =& CFChronoForm::getInstance();
$MyPlugins =& CFPlugins::getInstance($MyForm->formrow->id);
if($MyPlugins->cf_joomla_registration['errors']){
$MyForm->stoprunning = true;
$MyForm->formerrors = $MyPlugins->cf_joomla_registration['errors'];
}
?>
Seems to be working smoothly now. And it takes care of the duplicate username or email issue. Only thing that does not work is the show joomla message. But I don't really care about that as I have redirected the registration to a new page with my own message.
Thank you again for all your fast replies and help on this.
I will try the beta plugin you have attached and let you know what that does.
Thanks again,
John
Excellent, that's more or less the same code as I've added in to the Plugin.
Bob
Please Help,
Steve