Forgive my ignorance but what is the purpose of the Joomla Registration Plugin? I've just installed Chronoforms V3 on Joomla 1.5.7 in legacy mode. I have set up a form and it is working perfectly (YAY!). I presumed that using the Joomla Plugin would replace my chosen form with the Joomla Registration...is this not the case? If it is then what am I missing because I still have the default Joomla registration form in place and if this isn't what it's for then can you let me know it's purpose. Thanks in advance!
The Joomla Registration Plugin lets you use your own ChronoForms form for user registration. That way you have more control over the form and you can also collect some extra info and seve it in a separate table if you wish.
You have to supress the standard registration yourself - there are some instructions for that in the forums I think.
Bob
ChronoForms technical support If you'd like to buy me a coffee or two, thank you very much
Thanks again Bob! I was hoping that new accounts would receive an activation email like they would get registering in the Joomla registration - but I see this is not the case. or am I completely missing something?
As far as I recall you can set up an email as you would with a normal ChronoForms form. Check the tutorial in the Downloads section - that gives more detail.
Bob
ChronoForms technical support If you'd like to buy me a coffee or two, thank you very much
So I read your tutorial (clear as always, guys, let me know that so far you are the best in terms of assistence for Joomla... I get even a better feedback that from official site!!! )
.. oh yeah, tutorial about plugin Joomla registration. I have still to test it true, but one question: is the plugin extending as well the db table where the data are stored I mean, is it possible to extend the jos_user db table with other fields by simply adding more input fields in the form ?
No, I'm pretty certain that CF doesn't alter the structure of the Joomla core tables. That would make upgrades too messy.
Instead you can put extra fields on your form, save them in a CF table using the user_id as an index and then join the two together when you need to use them.
Bob
ChronoForms technical support If you'd like to buy me a coffee or two, thank you very much
Instead you can put extra fields on your form, save them in a CF table using the user_id as an index and then join the two together when you need to use them.
So I tried the following. I created a form register", like the tutorial said. I created a table for that: jos_chronoform_register.
Since the form is linked to the Jregistration plugin, the data are stored anyway in jos_user.
So: how to extend the form wiht more data? is it possible, with the same query, to send part of the data to one table (text_0 ... text_4 to jos_user and the rest (let's say meta of the user, fields meta_1...meta4) to a jos_chronoform_register?
Second question. Which command for a query in sql should I use, to make a check if the user is currently registered, before the user can access to another form in a registered access section? Which command to send some data from field in jos_user to a jos_chronoform_table, after the user click submit, and the system verified the user is subscribed?
first question, select the jos_chronoforms_register table in the DB connection tab and enable the connection.
2nd one, use this code at any form to check if a user is logged in:
<?php $user = JFactory::getUser(); if($user->id){ //do something or nothing, is logged in }else{ echo "you are not logged in";//show login message return;//don't display the form } ?>
Since I wanted to insert the data concerning the user in my cf_table, I was trying to modify the autogenerated code... but when I save it, there are no savings at all!...
Your CF is really nice, because I saw that actually it does half of the job.
add this to the onsubmit before email if you have emails running or to the onsubmit after email!
Yes I did like that, it works, but so what's the difference with the autogenerated code? And is not possible to change it? For example, I cannot delete it, that makes a bit strange for me: I have a code after submitting that is practically the same with the autogenerated one... which is not possible to delete..
You can't delete this auto generated code, either disable the DB connection to disable this code or enable it to run the code, but no need to delete it!
so everything is working fine now, just I guess the last issue.
I followed the tutorial, and I am at this point:
A finishing touch - Directing users away from the regular registration page Once you have created the new registration page and have tested it to ensure it is working properly*, you need to ensure that users don't end up at the old (regular) registration page. To do this, one file needs to be altered (ensure you've made a backup copy of this file first). The file can be found at: components\com_user\views\register\tmpl\default.php You need to alter the code at the very beginning of the file, so that.... <?php // no direct access defined('_JEXEC') or die('Restricted access'); ?> Is changed to.... <?php // no direct access defined('_JEXEC') or die('Restricted access'); $mainframe->redirect('chronoforms_url'); ?> For example, if you want to move the users away from "http://www.yourdomain.com/index.php?option=com_user&task=register to http://www.yourdomain.com/register.html, the code would be.... <?php // no direct access defined('_JEXEC') or die('Restricted access'); $mainframe->redirect('register.html'); ?> Building
So locally everything is ok and working fine: I just replace: register.html with: index.php?option=com_chronocontact&chronoformname=Register
Instead, on the web site on air the redirect does not work. Not that I have SEO enabled.
So I was thinking to take the problem from another point: use the plugin for displaying the form within an article. But the article with the registration form will not available from any menu, so I don't know how the URL will be rewrited.. http://mysite/?/register
Here the code in my file: components\com_user\views\register\tmpl\default.php for allowing redirect in registration form to a "register" form made in CF:
<?php // no direct access defined('_JEXEC') or die('Restricted access'); $mainframe->redirect('index.php?option=com_chronocontact&chronoformname=Register'); ?> <script type="text/javascript"> <!-- Window.onDomReady(function(){ document.formvalidator.setHandler('passverify', function (value) { return ($('password').value == value); } ); }); // --> </script>
I've just installed Chronoforms V3 on Joomla 1.5.7 in legacy mode. I have set up a form and it is working perfectly (YAY!).
I presumed that using the Joomla Plugin would replace my chosen form with the Joomla Registration...is this not the case?
If it is then what am I missing because I still have the default Joomla registration form in place and if this isn't what it's for then can you let me know it's purpose.
Thanks in advance!
The Joomla Registration Plugin lets you use your own ChronoForms form for user registration. That way you have more control over the form and you can also collect some extra info and seve it in a separate table if you wish.
You have to supress the standard registration yourself - there are some instructions for that in the forums I think.
Bob
If you'd like to buy me a coffee or two, thank you very much
I was hoping that new accounts would receive an activation email like they would get registering in the Joomla registration - but I see this is not the case.
or am I completely missing something?
As far as I recall you can set up an email as you would with a normal ChronoForms form. Check the tutorial in the Downloads section - that gives more detail.
Bob
If you'd like to buy me a coffee or two, thank you very much
Thanks!
So I read your tutorial (clear as always, guys, let me know that so far you are the best in terms of assistence for Joomla... I get even a better feedback that from official site!!!
.. oh yeah, tutorial about plugin Joomla registration.
I have still to test it true, but one question: is the plugin extending as well the db table where the data are stored
I mean, is it possible to extend the jos_user db table with other fields by simply adding more input fields in the form ?
No, I'm pretty certain that CF doesn't alter the structure of the Joomla core tables. That would make upgrades too messy.
Instead you can put extra fields on your form, save them in a CF table using the user_id as an index and then join the two together when you need to use them.
Bob
If you'd like to buy me a coffee or two, thank you very much
So I tried the following.
I created a form register", like the tutorial said.
I created a table for that: jos_chronoform_register.
Since the form is linked to the Jregistration plugin, the data are stored anyway in jos_user.
So: how to extend the form wiht more data? is it possible, with the same query, to send part of the data to one table (text_0 ... text_4 to jos_user and the rest (let's say meta of the user, fields meta_1...meta4) to a jos_chronoform_register?
Second question.
Which command for a query in sql should I use, to make a check if the user is currently registered, before the user can access to another form in a registered access section?
Which command to send some data from field in jos_user to a jos_chronoform_table, after the user click submit, and the system verified the user is subscribed?
Thanks... a lot!
first question, select the jos_chronoforms_register table in the DB connection tab and enable the connection.
2nd one, use this code at any form to check if a user is logged in:
Regards
Max
ChronoForms7 Video Tutorials
But perhaps I report a bug:
I want to use the functions for the class Juser (sorry if the words maybe are not correct)
(Forum users, have a nice look at: http://www.jlleblanc.com/joomla/Tutorials/JUser_tutorial_for_Joomla!_1%115/)
Since I wanted to insert the data concerning the user in my cf_table, I was trying to modify the autogenerated code... but when I save it, there are no savings at all!...
Your CF is really nice, because I saw that actually it does half of the job.
Here's the autogenerated code:
I want to add:
but I cannot save it...
Regards,
Max
ChronoForms7 Video Tutorials
Yes I did like that, it works, but so what's the difference with the autogenerated code?
And is not possible to change it?
For example, I cannot delete it, that makes a bit strange for me: I have a code after submitting that is practically the same with the autogenerated one... which is not possible to delete..
Regards
Max
ChronoForms7 Video Tutorials
so everything is working fine now, just I guess the last issue.
I followed the tutorial, and I am at this point:
So locally everything is ok and working fine:
I just replace:
register.html
with:
index.php?option=com_chronocontact&chronoformname=Register
Instead, on the web site on air the redirect does not work.
Not that I have SEO enabled.
I even have tried to insert the whole link:
http://mysite/index.php?option=com_chronocontact&chronoformname=Register
So I was thinking to take the problem from another point:
use the plugin for displaying the form within an article.
But the article with the registration form will not available from any menu, so I don't know how the URL will be rewrited..
http://mysite/?/register
Any help?
It would be the final part!!
http://mysite/index.php?option=com_chronocontact&chronoformname=Register
is display correctly the registration form, even with SEF enabled.
ChronoForms7 Video Tutorials
http://mysite/component/user/?task=register#content
Regards
Max
ChronoForms7 Video Tutorials
Here the code in my file: components\com_user\views\register\tmpl\default.php for allowing redirect in registration form to a "register" form made in CF: As said, the redirect is not working...
SEF enabled, I don't know if it matters.
Try adding 'global $mainframe;' before your re-direct line.
ob
If you'd like to buy me a coffee or two, thank you very much