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,
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 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.
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.
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
Forum Legend: