2
Hi Edwinspie,
You only need 2 lines of code!
Open file liaise/include/form_render.php
Add around line 104:
$form_output->addElement(new XoopsFormHidden("ID", $ID));
//add this line
$form_output->addElement(new XoopsFormHidden("URL", $_SERVER['HTTP_REFERER']));
//end
Then open liaise/include/form_execute.php
Replace around line 276
//replace the original line for this one
$xoopsMailer->assign("MSG", $_POST['URL']."n".implode("n", $msg));
//end
if( count($err) < 1 ){
if( !$xoopsMailer->send(true) ){
$err[] = $xoopsMailer->getErrors();
}
}
Then just add a link to the liaise form under a product page.
I was needing this to, thanks for the sugestion!