Spambot Email Protector v2.00 Released

10 posts by 5 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: May 2, 2011   (RSS)

Re: [Dave] Spambot Email Protector v2.00 Released

By Maurice - November 4, 2010

that is cool great work
-------------------------------------------

Dropmonkey.nl

Re: [Dave] Spambot Email Protector v2.00 Released

By gkornbluth - November 22, 2010

Superb idea

Great improvement.

So elegant.

So necessary

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [Dave] Spambot Email Protector v2.00 Released

By Djulia - April 27, 2011

Hi Dave,

I need to deactivate the plugin to export a list in a XML file.

Also, is there a function which makes it possible to deactivate a plugin ?

For example : 'spambotEmailProtector' => false,

Thanks for your suggestion! :)

Djulia

Re: [Djulia] Spambot Email Protector v2.00 Released

By Dave - April 27, 2011

Hi Djulia,

Do you mean disable it temporarily? Such as with PHP code? Or disable it from the CMS?
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Spambot Email Protector v2.00 Released

By Djulia - April 27, 2011

Temporarily. It causes errors and does not give the possibility of making the file valid!

Thanks ! :)

Djulia

Re: [Djulia] Spambot Email Protector v2.00 Released

By Dave - April 27, 2011

Hi Djulia,

It doesn't do that, but we can make it do it. :)

In spambotEmailProtector.php replace this:
if ( !defined('IS_CMS_ADMIN')) {

With this:
if ( !defined('IS_CMS_ADMIN') && !@$GLOBALS['SEP_DISABLED'] ) {

And then set this "before" the code you need it disabled for:
<?php $GLOBALS['SEP_DISABLED'] = true; ?>

Let me know if that works for you.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Spambot Email Protector v2.00 Released

By Djulia - April 27, 2011

It is perfect!

My file xml is valid now !

Thank You again ! :)

Djulia

Re: [Dave] Spambot Email Protector v2.00 Released

By gkornbluth - April 28, 2011 - edited: April 30, 2011

Hi Dave,

I’m using the spambot email protector 2.0 plugin on V2.07, but the same problem occurs when I tried using the email protector as a standalone.

I’m pulling a list of emails from the records in a database, and listing them, 24 at a time, inside a series of <div>s.

Unless I’m missing something, when I look at the source code of the generated web page, only the first email address in each <div> gets encrypted.

Here’s the active code in the head:
<?php header('Content-type: text/html; charset=utf-8'); ?>
<?php


if (!defined('START_SESSION')) { define('START_SESSION', true); }
// load viewer library
$libraryPath = 'cmsAdmin/lib/viewer_functions.php';
$dirsToCheck = array('/hsphere/local/home/gkornblu/mysite.com/','','../','../../','../../../');
foreach ($dirsToCheck as $dir) { if (@include_once("$dir$libraryPath")) { break; }}
if (!function_exists('getRecords')) { die("Couldn't load viewer library, check filepath in sourcecode."); }
if (!@$_SESSION['username']) { header("Location: http://mysite.com/cmsAdmin/admin.php?redirectUrl=" . $_SERVER['REQUEST_URI']); exit; }

// load records
list($publcity_listingsRecords, $publcity_listingsMetaData) = getRecords(array(
'tableName' => 'publcity_listings',

));

list($common_informationRecords, $common_informationMetaData) = getRecords(array(
'tableName' => 'common_information',

'limit' => '1',
));

$common_informationRecord = @$common_informationRecords[0]; // get first record
?>


And in the body:
<div align="center"><b>EMAIL ADDRESS LIST
</b><br />
In groups of <?php echo $common_informationRecord['max_emails'] ?> e-mail addresses each.
<br />
Copy each group to the BCC: field of your e-mail.
</div>
<div align="center" >
<div align="left"><hr color="#<?php echo $common_informationRecord['line_color'] ?>" />
<br />
<?php $count = 0; ?><?php $count2 = 0; ?>
<?php foreach ($publcity_listingsRecords as $record): ?>
<?php if ($record['email_address']): ?><?php $count2++; ?>
<?php echo $record['email_address'] ?>;&nbsp;
<?php endif ?>
<?PHP $maxemails= $common_informationRecord['max_emails'];
if (@++$count % $maxemails == 0): ?>
</div>
<div align="left"><br />
<hr color="#<?php echo $common_informationRecord['line_color'] ?>" />
<br />
<?PHP endif; ?>
<?php endforeach ?>
<br /><br />
<hr color="#<?php echo $common_informationRecord['line_color'] ?>" /><br />
</div>

<div align="center">There are <?php echo $count2 ?> email addresses in your list
</div>

<div>
<hr color="#<?php echo $common_informationRecord['line_color'] ?>" />
</div>
</div>


Any ideas?

Thanks,

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [gkornbluth] Spambot Email Protector v2.00 Released

By Jason - May 2, 2011

Hi Jerry,

Could you fill out a [url http://www.interactivetools.com/support]2nd Level Support Request[/url] with a link to a page demonstrating this problem so we could take a closer look?

thanks
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/