Forums

Problems with Redirect URL

galbur 16 Dec, 2011
Hi

First. Great Component. I'm impressed about the features and the usability of ChronoForms.
I use Bulkmailer as my favourite Newslettertool. There is a script on my Testserver called MLM to subscribe/unsuscribe to a list.

All i have to do, is to give an url with parameters via the "Redirect URL" after submitting.
Everything works fine, except one thing. Instead of "somebody@somewhere.com" i got somebody%2540somwhere.com" and the script doesn't work.

So the redirection url is
....?cmd=subscribe&list=special&email=somebody%2540somewhere.com
instead of
.....?cmd=subscribe&list=special&email=somebody@somewhere.com

Any idea?

Another Question

How can i build a form with some fields and an "Yes, please send me the newsletter"-Chekcbox.
And: The redirection i described above should only work (of course;-) when the checkbox is on.

Thank you in advance
Chris
GreyHead 17 Dec, 2011
Hi galbur,

Which version of ChronoForms are you using? You can find the version from Site Admin | Extensions | Install/Uninstall | Components in Joomla! 1.5 or Site Admin | Extensions | Extension Manager | Manage in Joomla! 1.6.

If you pass data in a URL then it needs to be URL encoded as some characters aren't permitted in URLs. If MLM can't handle URL encoded data then it should be a small hack to add a line or two of code. The PHP funcion you need is urldecode()

The answer to your second question depends on the CF version.

Bob
galbur 17 Dec, 2011
Hi Bob

Thank you for your quick reponse.
I am using ChronoForms 4.0 RC2.0 with Joomla 1.5.

then it should be a small hack to add a line or two of code. The PHP function you need is urldecode()



Where do i have to add the 2 lines? Which Code ;-).
Unfortunately i'm not very good in php. :-(

Thank you
Chris
GreyHead 17 Dec, 2011
Hi Chris,

The change would need to be somewhere in the MLM script to allow it to get data from a URL.

Bob
galbur 19 Dec, 2011
Hi Bob

Thank you. I made (with a little from my friends) the change in the lp.php script:

$email = urldecode($email);

.. and ewverything works fine.

There is still my second question: ;-)

How can i build a form with some fields and an "Yes, please send me the newsletter"-Chekcbox. And: The redirection i described above should only work (of course;-) when the checkbox is on.



I am using ChronoForms 4.0 RC2.0 with Joomla 1.5.

Thank you
Chris
GreyHead 20 Dec, 2011
Hi galbur,

The easiest way is probably to use my Event Switcher [GH] action. Add code to the switcher to return 'event_a' when the box is checked and drag the ReDirect action to the 'Event A' event box. NB you can't drag an existing action :-( but you can drag a new one and then copy and paste over the contents.

Bob
galbur 22 Dec, 2011
Thank you very much

I will try this during the Weekend.

Best regards
Chris
This topic is locked and no more replies can be posted.