Chronoforms & Acymailing CURL trouble

login418 24 Jan, 2012
I'm trying to intergrate my Chronoforms registration form with Acymailing, using CURL I suppose.
I want to use my "Event Interest?" checkbox group to generate which newsletter the user will be subscribed to (multiple selections possible).
I also want to continue to send the "Event Interest?" checkbox group results to the database as it does now. (Thanks GH for that!)

My basic registration form works properly.
My Acymailing Subscription via URL works properly.
I setup CURL in Chronoforms right after Handle Arrays.
But the form, as it stands now, doesn't subscribe to mailing lists.

I can use all the help I can get! 😲

http://gator1806.hostgator.com/~instylet/index.php?option=com_chronoforms&view=form&Itemid=278&lang=en
J 1.7.3
CF 4.0 RC2.0
login418 29 Jan, 2012
Anyone want to chime in on this? Seems like a big headache to me. May have to post in paid service forum...
GreyHead 29 Jan, 2012
Hi login418 ,

There's not enough info to comment here. What do you see if you add a Debugger action to the ON Submit event?

Bob

PS YOu may need to use my CURL [GH] if you need to pass array values to AcyMailer.
login418 30 Jan, 2012
Sorry about not giving enough info!
Below are the debugger results. I know it's wrong because it's not set to handle the array. Just assign to 1 mailing list (#3). But that doesn't even work. I downloaded your custom curl and added it to the action stack but I don't know how to set it up.

[input_checkbox_group_32] is the array.

CURL is at the bottom of the Action stack.
Params/Fields map =
user[name]={name}
user[email]={email}
ctrl=sub
task=optin
option=com_acymailing
hiddenlists=3

Array
(
    [name] => dr evil
    [username] => drevil
    [email] => drevil@example.com
    [password] => password
    [password_confirm] => password
    [phone_number] => 555-5555
    [company] => dr evil corp
    [industry] => evil
    [gender] => Male
    [age] => 66
    [how_find_us] => Web Search
    [introduced] => Steve Humble
    [input_checkbox_group_32] => Fashion,Themed,Golf
    [other_interests] => Networking
    [additional_comments] => do evil
    [ea] => 
    [nea] => 
    [rpp] => 
    [ct] => 
    [chrono_verification] => MtVxU
    [input_submit_12] => Submit
    [b97bcec7e61523be1dc1bf6e23ec9c23] => 1
    [language] => en-GB
    [option] => com_chronoforms
    [view] => form
    [Itemid] => 278
    [lang] => en
    [chronoform] => New_Member_Reg
    [event] => submit
    [password2] => password
    [_PLUGINS_] => Array
        (
            [joomla_registration] => Array
                (
                    [*isRoot] => 
                    [id] => 73
                    [name] => dr evil
                    [username] => drevil
                    [email] => drevil@example.com
                    [password] => db041c3012f2f3c31384db5b566c96e7:0zuODTunehAvsahzXb2xHlEcS7HirQH8
                    [password_clear] => password
                    [usertype] => deprecated
                    [block] => 1
                    [sendEmail] => 0
                    [registerDate] => 2012-01-30 05:06:37
                    [lastvisitDate] => 
                    [activation] => 09676834a9408bd07c7f6b38d7f3f378
                    [groups] => Array
                        (
                            [0] => 2
                        )

                    [*_params] => JRegistry Object
                        (
                            [data:protected] => stdClass Object
                                (
                                )

                        )

                    [*_authGroups] => Array
                        (
                            [0] => 10
                        )

                    [*_authLevels] => Array
                        (
                            [0] => 1
                            [1] => 4
                        )

                    [*_authActions] => 
                    [*_errorMsg] => 
                    [*_errors] => Array
                        (
                        )

                    [aid] => 0
                    [password_confirm] => password
                    [phone_number] => 555-5555
                    [company] => dr evil corp
                    [industry] => evil
                    [gender] => Male
                    [age] => 66
                    [how_find_us] => Web Search
                    [introduced] => Steve Humble
                    [input_checkbox_group_32] => Fashion,Themed,Golf
                    [other_interests] => Networking
                    [additional_comments] => do evil
                    [ea] => 
                    [nea] => 
                    [rpp] => 
                    [ct] => 
                    [chrono_verification] => MtVxU
                    [input_submit_12] => Submit
                    [b97bcec7e61523be1dc1bf6e23ec9c23] => 1
                    [language] => en-GB
                    [option] => com_chronoforms
                    [view] => form
                    [Itemid] => 278
                    [lang] => en
                    [chronoform] => New_Member_Reg
                    [event] => submit
                    [password2] => password
                )

        )

    [chronoform_data] => Array
        (
            [cf_uid] => 17438d831d5f31120fee817e16098dc2
            [cf_created] => 2012-01-29 23:06:38
            [cf_ipaddress] => 122.29.52.121
            [cf_user_id] => 0
            [name] => dr evil
            [username] => drevil
            [email] => drevil@example.com
            [password] => password
            [password_confirm] => password
            [phone_number] => 555-5555
            [company] => dr evil corp
            [industry] => evil
            [gender] => Male
            [age] => 66
            [how_find_us] => Web Search
            [introduced] => Steve Humble
            [input_checkbox_group_32] => Fashion,Themed,Golf
            [other_interests] => Networking
            [additional_comments] => do evil
            [ea] => 
            [nea] => 
            [rpp] => 
            [ct] => 
            [chrono_verification] => MtVxU
            [input_submit_12] => Submit
            [b97bcec7e61523be1dc1bf6e23ec9c23] => 1
            [language] => en-GB
            [option] => com_chronoforms
            [view] => form
            [Itemid] => 278
            [lang] => en
            [chronoform] => New_Member_Reg
            [event] => submit
            [password2] => password
            [_PLUGINS_] => Array
                (
                    [joomla_registration] => Array
                        (
                            [*isRoot] => 
                            [id] => 73
                            [name] => dr evil
                            [username] => drevil
                            [email] => drevil@example.com
                            [password] => db041c3012f2f3c31384db5b566c96e7:0zuODTunehAvsahzXb2xHlEcS7HirQH8
                            [password_clear] => password
                            [usertype] => deprecated
                            [block] => 1
                            [sendEmail] => 0
                            [registerDate] => 2012-01-30 05:06:37
                            [lastvisitDate] => 
                            [activation] => 09676834a9408bd07c7f6b38d7f3f378
                            [groups] => Array
                                (
                                    [0] => 2
                                )

                            [*_params] => JRegistry Object
                                (
                                    [data:protected] => stdClass Object
                                        (
                                        )

                                )

                            [*_authGroups] => Array
                                (
                                    [0] => 10
                                )

                            [*_authLevels] => Array
                                (
                                    [0] => 1
                                    [1] => 4
                                )

                            [*_authActions] => 
                            [*_errorMsg] => 
                            [*_errors] => Array
                                (
                                )

                            [aid] => 0
                            [password_confirm] => password
                            [phone_number] => 555-5555
                            [company] => dr evil corp
                            [industry] => evil
                            [gender] => Male
                            [age] => 66
                            [how_find_us] => Web Search
                            [introduced] => Steve Humble
                            [input_checkbox_group_32] => Fashion,Themed,Golf
                            [other_interests] => Networking
                            [additional_comments] => do evil
                            [ea] => 
                            [nea] => 
                            [rpp] => 
                            [ct] => 
                            [chrono_verification] => MtVxU
                            [input_submit_12] => Submit
                            [b97bcec7e61523be1dc1bf6e23ec9c23] => 1
                            [language] => en-GB
                            [option] => com_chronoforms
                            [view] => form
                            [Itemid] => 278
                            [lang] => en
                            [chronoform] => New_Member_Reg
                            [event] => submit
                            [password2] => password
                        )

                )

            [cf_id] => 8
        )

    [chronoform_data_cf_id] => 8
    [curl] => 
)


===================================================

Debug Data
	.	Core Captcha
	.	Passed the core captcha check!
	.	
	.	curl
	.	CURL OK : the CURL function was found on this server.
	.	$curl_values:
	.	curl_target_url: http://gator1806.hostgator.com/~instylet/index.php?option=com_acymailing
GreyHead 30 Jan, 2012
Hi login418,

First off, the standard cURL action doesn't support the curly brackets syntax. It only uses curl_param_name=input_name. This means that you have to add any fixed values into the $form->data array before the cURL action runs. A bit messy but not difficult using a Custom Code action.

If you use my custom cURL [GH] action that does support the curly bracket syntax. To install it use the Install Action button in the Forms Manager Toolbar (please upgrade to CFv4 RC3.0 to see it).

Bob
login418 01 Feb, 2012
I'm in over my head. cURL [GH] installed and added to the actions stack but I have no idea what to write in the Params/Fields map or anywhere else for that matter. Are you willing to have a look for me? 😶 Donations awaitlightbulb
This topic is locked and no more replies can be posted.