Română (România)English (United Kingdom)



 
If you use aiContactSafe, please post a rating and a review at the Joomla! Extensions Directory.

On Submit - send info to third party website

On Submit - send info to third party website

Hi, great module, love it. So easy to setup and actually use.
My question is, when the Send button is pressed, I don't require an email to be sent anywhere.
I require it to go to the following url:
https://www2.netroomz.com.au/hotel/avai … x?hid=1045
That is an availability page for accommodation.
What I need to do is to grab the "Arrival" date, so the grid starts at the arrival date originally put in the "arrival" date box in aicontact.
if i do the following manually in a web browser, it works:
https://www2.netroomz.com.au/hotel/avai … 04/08/2010
this will start the grid at the 4 august, 2010, which is what i need.
The code appended to the above url is:
ad = arrival date
The date must be passed to this url in dd/mm/yyyy format.
Is this possible?
Await your reply,

Shane Kidd
useravatar
Offline
3 Posts
User info in posts
Administrator has disabled public posting

Re: On Submit - send info to third party website

Hi,

You need to modify the extension code to do that.
See the file components\com_aicontactsafe\models\message.php, function getReturnLink().
That will determine where to redirect the page after the form is submitted.

Alex Dobrin
Algis Info Grup

Follow me on Twitter

Alex Dobrin
useravatar
Offline
3323 Posts
User info in posts
Administrator has disabled public posting

Re: On Submit - send info to third party website

Thanks Alex, i'll look into that now.

Shane Kidd
useravatar
Offline
3 Posts
User info in posts
Administrator has disabled public posting

Re: On Submit - send info to third party website

Alex Dobrin wrote:

Hi,

You need to modify the extension code to do that.
See the file components\com_aicontactsafe\models\message.php, function getReturnLink().
That will determine where to redirect the page after the form is submitted.

I have no hope reading that file.
So as to not interfere with my other "profiles", which all have a distinct return url's, i would assume i edit somewhere here:
// if no link was specified, generate one
        if ( $link == '' ) {
            // read the registered return task
            $return_task = $this->_app->_session->get( 'return_task:' . $this->_sTask );
            // force the return_task variable to be an array
            if (!is_array($return_task)) {
                $return_task = array();

But I have two issues:
1. where would I type in the url i stated in the first post
2. how do I define the "arrive" field on the end of that return url

sorry for wanting something you didn't really make it for.
If it's not possible, i will just make a plain old boring "form" for this particular process.

Shane Kidd
useravatar
Offline
3 Posts
User info in posts
Administrator has disabled public posting

Re: On Submit - send info to third party website

I would have to test the code to be able to give you exact answers, but here is would I would do:

Shane Kidd wrote:


1. where would I type in the url i stated in the first post

In the profile, in the field "Redirect on success URL".

Shane Kidd wrote:


2. how do I define the "arrive" field on the end of that return url

You will define in the profile something like this :
https://www2.netroomz.com.au/hotel/avai … user_date%

This will make sure only one profile is affected and will make it easier to control the redirect.
Then you will only have to replace "%user_date%" with the date read from the user.

Shane Kidd wrote:


sorry for wanting something you didn't really make it for.
If it's not possible, i will just make a plain old boring "form" for this particular process.

Nothing is impossible. smile
The problem is you need some php and javascript knowledge and sorry, I don't have the time to take a dipper look into how to do it.

Alex Dobrin
Algis Info Grup

Follow me on Twitter

Alex Dobrin
useravatar
Offline
3323 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1306
Total Polls:
0
Total Posts:
5894
Average Posts Per Hour:
1.0
User Info:
 
Total Users:
22096
Newest User:
cac2s
Members Online:
0
Guests Online:
112

Online: 
There are no members online

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked