I think you have the ChronoForms Book. If so, please check the instructions on page 305 as they are more up to date than the instructions in the Tutorial.
Je crois que vous avez le Livre ChronoForms. Si oui, s'il vous plaît consulter les instructions sur la page 305 car ils sont plus à jour que les instructions dans le didacticiel.
Bob
please show us the code you modified to do the redirection ?
Regards,
Max
I checked the Tutorial and the code looks Ok to me:
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(JURI::base().'index.php?option=com_chronocontact&chronoformname=register_1');
?>
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');
?>
This should work with a standard Joomla! setup - if you have some custom login box then it probably won't work OK.
I've also successfully used a Jumi snippet to catch the registration URL and redirect to a form.
Bob
