chronoform & joomla..please help :)

rubyakerman 23 Jul, 2012
hi,

i did in my joomla website all tald at this guide for send sms massage from my web to cellphones.

http://greyhead.net/chronoforms/chronoforms-sending-an-sms-message-on-submission

everything is working good but i only can send a regullar text & i need to send the details that i got in the LEAD (neme & phone) that the users sends from the website.

i can do it by email by using the code:
{phone}
{number}
but i dont know how to do it via sms & i will be really thankfull for your help. (i send the sms by using the CURLS component of the chromoforms so what to do for sending the LEAD details from the CURL, how can i call them that joomla & chromoforms will recognize them)

please help its importent for me to one of my clients
GreyHead 24 Jul, 2012
Hi rubyakerman,

Assuming that you are using CFv4 you can add a Custom Code action before the cURL action to build your text message something like this:
<?php
$form->data['text'] = "Form submitted by {$form->data['phone']} {$form->data['number']} check your mail now";
$form->data['text'] = urlencode($form->data['text']);
?>

Bob
rubyakerman 24 Jul, 2012
hello GreyHead

first thanks a lot

how can i put that code in the whrite place?
what should i do in the commponent?
GreyHead 25 Jul, 2012
Hi rubyakerman,

Use the form Advanced Wizard and drag a Custom Code action into the On Submit event then move it up before the cURL action and click the 'Configure' icon to open it.

Bob
rubyakerman 27 Jul, 2012
i am using version 2.3.0.988

is it matter?
rubyakerman 27 Jul, 2012
oops oops i am using v3, is it matter?
GreyHead 27 Jul, 2012
Hi rubyackerman,

Yes it matters. In CFv3 there is an Extra Code tab in the cURL plug-in configuration with an 'Extra before CURL code'. You can add code there but it needs to be slightly different:
<?php
$phone =& JRequest::getString('phone', '', 'post');
$number =& JRequest::getString('number', '', 'post');
$text = "Form submitted by {$phone} {$number} check your mail now";
$text = urlencode($text);
JRequest::setVar('text', $text);
?>

Bob
rubyakerman 29 Jul, 2012
oh thanks

i just have a old form that is already done so where should i put the code? in the "form cod" tab in "On Submit code - before sending email:"?

i just dont have a lot of expirience so i dont know exactlly how to work with the component?

thanks a lot i really appreciate your help
GreyHead 29 Jul, 2012
Hi rubyakerman,

In CFv3 there is an Extra Code tab in the cURL plug-in configuration with an 'Extra before CURL code'.


Bob
rubyakerman 02 Aug, 2012
hi

thanks

what i am trying to do is to send by url to gateway the phone & the name of LEAD we get,

i am connecting to the gateway & the sms send, the problem is thet i send it by connecting the gateway by url. i do that from the CURL plug-in configuration in the tab general, & i write the code (that i send by the url) at the "Extra fields Data" area. one of the parameters calld "text" & he get the text that sending in the sms - & here i need to send the phone number & name.

how can i put into the "text" parameter the phone & the name...?

thatnks a lot, i really upreciate your help
GreyHead 02 Aug, 2012
Hi rubkackermann,

Please see this post from earlier in the thread.

Bob
This topic is locked and no more replies can be posted.