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 Mesaje
Informatii despre utilizator in mesaje
Administratorul a dezactivat postarea publica.

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 Mesaje
Informatii despre utilizator in mesaje
Administratorul a dezactivat postarea publica.

Re: On Submit - send info to third party website

Thanks Alex, i'll look into that now.

Shane Kidd
useravatar
Offline
7 Mesaje
Informatii despre utilizator in mesaje
Administratorul a dezactivat postarea publica.

Re: On Submit - send info to third party website

Alex Dobrin a scris:

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 Mesaje
Informatii despre utilizator in mesaje
Administratorul a dezactivat postarea publica.

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 a scris:


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 a scris:


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 a scris:


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 Mesaje
Informatii despre utilizator in mesaje
Administratorul a dezactivat postarea publica.

Informatii forum

Statistici forum:
 
Subiecte:
2281
Sondaje:
0
Mesaje:
10380
Inactiv:
Informatii utilizatori:
 
Utilizatori:
60163
Ultimul inscris:
KevinNeil
Utilizatori activi:
0
Vizitatori activi:
48

Activ: 
Nici un utilizator activ

Legenda forum:

 Subiect
 Nou
 Blocat
 Peren
 Activ
 Nou/Activ
 Nou/Blocat
 Nou/Peren
 Blocat/Activ
 Activ/Peren
 Peren/Blocat
 Peren/Activ/Blocat