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



 
The support for all extensions was moved to jVitals.com.

Please post there the new questions or suggestions you have with them.

This forum was set to be read-only so the information in it is still available.

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

You can now also join aiContactSafe Fan Club on Joomla! People
http://people.joomla.org/groups/viewgroup/813-aiContactSafe+Fan+Club.html

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
7 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
useravatar
Offline
5886 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
7 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
7 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
useravatar
Offline
5886 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
2281
Total Polls:
0
Total Posts:
10380
Dormant:
User Info:
 
Total Users:
60166
Newest User:
Piobbipsy
Members Online:
0
Guests Online:
51

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