WebsiteBaker 2.13.8 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
<script type="text/javascript" src=" <?php echo WB_URL; ?>/modules/nospam/nospam.js"></script>
$out = ' <a><img align="middle" border="0" src="' . $url . '"' . $js . '></a> ';
$out = ' <a><img align="absmiddle" border="0" src="' . $url . '"' . $js . '></a> ';
<script type="text/javascript"> function fixemail(id, username){ a = '@'; $(id).href='mail' + 'to:' + username + a + 'northwind-inc' + '.' + 'com'; } </script><a href="#" id="contactus1" onclick="fixemail(this.id,'contactus')">
Just to mention. I have modified some core files to integrate this feature by default with one of the next WB versions. The update protects all emails displayed at the WB frontend without any additional coding. All embedded mails yourname@yourdomain.com or mailto:yourname@yourdomain.de will be protected that way. The protection works the same way like the one implemented in Typo3.Regards Christian
But I thought that also with png format a transparent background is possible.
<?php// enable/disable frontend email spam protection (0.. off, 1.. on)define('SPAM_PROTECTION_MODE', '1');// example 1: replace "@" with (at) and "." with (dot); highlight replacements with different colorsdefine('SPAM_PROTECTION_AT_REPLACE', '<em style="color:blue;">(at)</em>');define('SPAM_PROTECTION_TLD_DOT_REPLACE', '<em style="color:red;">(dot)</em>');// example 2: replace "@" and "." with a user defined image//define('SPAM_PROTECTION_AT_REPLACE', '<img src="' .WB_URL .'/include/mdcr/at.gif" border="0" alt="@" />');//define('SPAM_PROTECTION_TLD_DOT_REPLACE', '<img src="' .WB_URL .'/include/mdcr/dot.gif" border="0" alt="." />');?>
<script type="text/javascript" src=" <?php echo WB_URL; ?>/include/mdcr/mdcr.js"></script>
// example 2: replace "@" and "." with a user defined imagedefine('SPAM_PROTECTION_AT_REPLACE', '<img src="/include/mdcr/at.gif" border="0" alt="@" />');define('SPAM_PROTECTION_TLD_DOT_REPLACE', '<img src="/include/mdcr/dot.gif" border="0" alt="." />');
<p><span style="font-weight: bold;"><br /> E-Mail: <a href="javaacriptt:mdcr('xyz')"> bbb.ccc <img src="http://xxx<img src="http://xxx.de/cms/include/mdcr/dot.gif" border="0" alt="." />de/cms/include/mdcr/at.gif" border="0" alt="@" />web<img src=" http://xxx.de/cms/include/mdcr/dot.gif" border="0" alt="." />de</a></p>
<a href="javascript:mdcr('rfnqyt%3Ffggg3hhhE%7Cjg3ij')">bbb.ccc<img src="http://localhost/webserver/wb267_blank/include/mdcr/at.gif" border="0" alt="@" />web<img src="http://localhost/webserver/wb267_blank/include/mdcr/dot.gif" border="0" alt="." />de</a>
<?phpdefine('SPAM_PROTECTION_MODE', '1');define('SPAM_PROTECTION_AT_REPLACE', '<img src="' .WB_URL .'/include/mdcr/at.gif" border="0" alt="@" />');define('SPAM_PROTECTION_TLD_DOT_REPLACE', '<img src="' .WB_URL .'/include/mdcr/dot.gif" border="0" alt="." />');?>
<a href="mailto:someone@onthe.web" class="someclass">Email me</a><a class="someclass" href="mailto:someone@onthe.web">Email me</a>
<a href="mailto:bbb.ccc@web.de?subject=test" class="test">bbb.ccc@web.de</a><a class="test" href="mailto:bbb.ccc@web.de">bbb.ccc@web.de</a>
<a href="javascript:mdcr('ocknvq%3Ccddd0eeeBygd0fg')bbb.ccc<img src="http://localhost/include/mdcr/at.gif" border="0" ...