Redirect problem with Mambot

yellowtip 05 Dec, 2007
Hi,

First of all, great little piece of software you've got here.

I'm planning on using this component on a large resort project. I have however come across a problem:

I'm using the mambot to place the form on a dedicated Feedback page. The link for that page is:
index.php?option=com_content&task=view&id=56&Itemid=99

That all works fine.

However, I'm using the image verification option. When an incorrect code has been entered, the page loads the default form link (after showing the error message):
index.php?option=com_chronocontact&task=send&chronoformname=feedback_form

How can I get it to redirect to the dedicted form page that includes the mambot tag? This page has the correct template and modules applied to it... so it would make sense to have it redirect to this page.

Any help would be appreciated.

Kind regards,
Gerhard<br><br>Post edited by: yellowtip, at: 2007/12/05 00:45
GreyHead 05 Dec, 2007
Hi Gerhard,

I don't have a quick answer for this. Maybe Max will have when he logs in.

I can think of ways of making it work but they are messy and there ought to be a simple answer.

I'll keep thinking tonight . . .

Bob
yellowtip 05 Dec, 2007
Thanks for the quick reply!!!

Normally I wouldn't bother too much with small details like this, but this is a high profile project, so all the small details need to be perfect.

Thanks in advance!
Gerhard
GreyHead 05 Dec, 2007
Hi Gerhard,

Hopefully Max will pick this up. I think he could probably find the right code very quickly.

I think you could do it by using a hidden field to identify the mambot to the ChronoForms code then putting a test in chronocontact.php to redirect to back to the calling page (at present it just recalls the showpage() function). I don't have time right now to dig deep enough to be sure this will work though.

Bob
yellowtip 08 Dec, 2007
Any updates on this issue?

I purchased a license as I assumed there would be some easy fix for this, yet I have not heard anything back from this.

I look forward to hearing from you.
GreyHead 08 Dec, 2007
Hi Gerhard,

I think that Max is talking about the same issue in this thread but no solution yet.

Bob
Max_admin 11 Dec, 2007
Hi Gerhard,

Sorry for the delay but I couldn't check here earlier, in case of emergencies you can always contact me through the contact us form, a quick solution for this issue is to add this code at the form code HTML box :


<?php
if($option != 'com_content')
mosRedirect('index.php?option=com_content&task=view&id=56&Itemid=99');
?>


This will force the form to redirect to the content page if someone tried to open it!!😉

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.