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
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
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:
Bob
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
hello GreyHead
first thanks a lot
how can i put that code in the whrite place?
what should i do in the commponent?
first thanks a lot
how can i put that code in the whrite place?
what should i do in the commponent?
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
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
i am using version 2.3.0.988
is it matter?
is it matter?
oops oops i am using v3, is it matter?
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:
Bob
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
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
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
Hi rubyakerman,
Bob
In CFv3 there is an Extra Code tab in the cURL plug-in configuration with an 'Extra before CURL code'.
Bob
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
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
This topic is locked and no more replies can be posted.