Cant find a solution - after email form

allydawn 29 Jul, 2011
Hello.

Sorry for a dumb post, but for a couple of days I'm trying to find a solution to a following problem - I can't get rid of the form that appears again after the email is send - you can see what I mean if you try to send a mail here:

http://xn----7sbbaah9cupueij4m.xn--p1ai/en/about-us/feedbacks

you're gonna need to log in, user is "user" pass is "author"

actually, the problem is that the form is shown in the module position, and I can't do anything to switch it off after the mail is sent. Do you have any idea how to solve it?

Yury
GreyHead 29 Jul, 2011
Hi Yury,

it's tricky. Because you have it in a module it is correcly showing on the page.

You could possibly use the Module settings to turn it off but I suspect that ItemID=9 is the feedback page.

A little PHP snippet in the beginning of the Form HTML might do it:
<?php
$option = JRequest::getString('option', '', 'get');
$task = JRequest::getString('task', '', 'get');
if ( $option = 'com_chronocontact' && $task == 'send') {
  return;
}
?>

Bob
This topic is locked and no more replies can be posted.