I have set up a ChronoForm to replace Joomla's default registration form. All work fine apart from that after a form is submitted the next page displays both my Thank You message and Jooma's default message (You can now log in).
I am using the following php code as onSubmit Code - after sending email:
Although I have tried to disable the 'Show Joomla messages' in the Joomla Registration plugin, it doesn't save my choice. Every time I open the plugin's configuration tab the Joomla messages are enabled.
Thank you for your help and time.
I am using the following php code as onSubmit Code - after sending email:
<?php
global $mainframe;
$custom_tag = '<meta http-equiv="refresh" content="5; url=http://www.mysite.gr" >';
$mainframe->addCustomHeadTag($custom_tag);
?>
<p>Thank you for your registration</p>
Although I have tried to disable the 'Show Joomla messages' in the Joomla Registration plugin, it doesn't save my choice. Every time I open the plugin's configuration tab the Joomla messages are enabled.
Thank you for your help and time.
Hi dimitris02,
Oops, there is quite a severe bug in the Plug-ins Helper file which means that paramters with default values set to 1 will never save with a value of 0 :-(
Please open administrator/components/com_chronocontact/helpers/plugin.php and look for this code around line 70 and comment out (or delete) the two marked lines:
Apologies.
Bob
Oops, there is quite a severe bug in the Plug-ins Helper file which means that paramters with default values set to 1 will never save with a value of 0 :-(
Please open administrator/components/com_chronocontact/helpers/plugin.php and look for this code around line 70 and comment out (or delete) the two marked lines:
$params = JRequest::getVar( 'params', '', 'post', 'array', array(0) );
// $mainframe->enqueuemessage(print_r($params, true));
if ( is_array( $params ) ) {
$txt = array();
foreach ( $params as $k => $v ) {
if ( is_array($v) ) {
$v = implode('|', $v);
}
// if ( $v ) { <-- comment out this line
$txt[] = "$k=$v";
// } <-- comment out this line
}
$row->params = implode( "\n", $txt );
}
Apologies.
Bob
This topic is locked and no more replies can be posted.