Forums

Enable mambots in confirmation page

mattiadj 23 Nov, 2009
Hi,
as subject i need to show a mambot in a conrfimation page. I insered the pseudocode of the mambot but nothing is showed.

How can i have a mambot execute in confirmation page?

Regards.

Mattia
GreyHead 24 Nov, 2009
Hi mattiadj,

I'm not sure if you can. There's a setting on the form General tab to enable mambots in the Form HTML but I'm not sure that it will have any affect on any other page.

Bob
nml375 24 Nov, 2009
Hi Mattia & Bob,
As far as I can tell from the source, the "enable mambots" setting will not affect the confirmation page. You should, however, be able to trigger the 'onPrepareContent' event with some custom text, using some custom PHP-code:
<?php
$confirm->text = "<div>Thank you for signing up for our newsletter at spambox@demo.thelostbattalion.org</div>";
global $mainframe;
$parms =& $mainframe->getParams('com_content');
JPluginHelper::importPlugin('content');
$mainframe->triggerEvent('onPrepareContent', array(&$confirm, &$parms, 0));
echo $confirm->text;
?>

The above code should let the email cloaking mambot hide the email address (if enabled), and any {tag}{/tag} substitutions should've been done as well.

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

VPS & Email Hosting 20% discount
hostinger