redirecting to new form

bzzz 03 Oct, 2010
i created a form with chronoforms and followed the steps to redirect the link of the old joomla registration form to the new one i created but i'm still being redirected to the joomla registration form!!can you tell me why please?
GreyHead 03 Oct, 2010
Hi bzzz,

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
bzzz 03 Oct, 2010
i don't have the book greryhead but one time i read and followed the instructions here in the forum and things were ok but not in the second time!!
Max_admin 04 Oct, 2010
Hi bzzz,

please show us the code you modified to do the redirection ?

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
GreyHead 04 Oct, 2010
Hi bzzz,

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
This topic is locked and no more replies can be posted.