Problem with Autoresponder after Upgrade to V3.1RC5.2

solidrock 02 Jul, 2009
I have an urgent problem!

I had ChronoForms V.3.0stable installed with an extra option that the Name- & Email-Data will be transfered after submission to the Acajoom Autoresponder. You helped me there by telling me to put that code into the "Form Code"-Area under "On Submit code - after sending email":

<?php
$name = JRequest::getVar('name', '', 'post');
$email = JRequest::getVar('email', '', 'post');
$url  = "http://www.rohrconsulting.at/";
$url .= "index.php?option=com_acajoom&act=subscribe";
$url .= "&name=$name";
$url .= "&email=$email";
$url .= "&receive_html=1";
$url .= "&listid=1";
$url .= "&redirectlink=danke.html";

if ( $debug ) {
    echo "url: ";print_r($url);echo "<br />";
    echo "<br /><a href='$url'>Hier klicken um Fortzufahren</a><br />";
} else {
    $rows[0]->redirecturl = $url;
}
?>

This code will be ignored totally after submission. If I put Debug-Mode ON I can see no errors.
The Thank-You-Site will be displayed like programmed into "On Submit code - before sending email:":

<p> </p>
<h4 align="center">Danke für Ihr Interesse an unserem Angebot.<br />
Wir werden Ihnen in Kürze Informationen zukommen lassen.</h4><br />
<p align="center">Mit freundlichen Grüßen!</p>

Please HELP!
Max_admin 02 Jul, 2009
Hi solidrock,

did you upgrade Chronoforms recently ? if yes then the code will stop working and need a slight update!

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
solidrock 02 Jul, 2009
Hi Max,

I upgraded today (component, module and plugin). Can you give me advice how to change the code? I have no clue what to do or what to change?!
solidrock 03 Jul, 2009

Hi solidrock,

did you upgrade Chronoforms recently ? if yes then the code will stop working and need a slight update!

Max



What do you mean with slight update? What do we need to do?
Max_admin 03 Jul, 2009
Hi solidrock,

please change $rows[0] to $Myform->formrow

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
solidrock 04 Jul, 2009
I changed the code now to

<?php
$name = JRequest::getVar('name', '', 'post');
$email = JRequest::getVar('email', '', 'post');
$url = "http://www.rohrconsulting.at/";
$url .= "index.php?option=com_acajoom&act=subscribe";
$url .= "&name=$name";
$url .= "&email=$email";
$url .= "&receive_html=1";
$url .= "&listid=1";
$url .= "&redirectlink=danke.html";

if ( $debug ) {
echo "url: ";print_r($url);echo "<br />";
echo "<br /><a href='$url'>Hier klicken um Fortzufahren</a><br />";
} else {
$Myform->formrow = $url;
}
?>


but nothing happend!

Do I have to change something else that the area "On Submit code - after sending email:" will be recognized again?
Max_admin 04 Jul, 2009
Hi solidrock,

its was
$rows[0]->redirecturl


so after the change I pointed it should be:
$MyForm->formrow->redirecturl


Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
solidrock 06 Jul, 2009
:arrow: THANK YOU very much! lightbulb
This topic is locked and no more replies can be posted.