[pLog-svn] r5254 - plog/branches/lifetype-1.2/plugins/badbehavior

Reto Hugi plog at hugi.to
Sun Apr 1 09:24:13 EDT 2007


BB is still kind of a black box to me, but I'd like to change that.
After a first short look at what it's supposed to do, I have the
following questions and remarks:

1. there is a db table that gets filled with stuff. and plenty of it.
I'm running bb on my low traffic site for a couple of weeks and it's
already 1MB. We should think about an interface to manage that data, right?

2. as bb is a plugin it doesn't get activated as long as you don't hit
the "plugins" page in the admin interface. that's probably not how it
should be. should we add bb to the config value ("plugin_list") in the
wizard?

3. does anyone of you entirely rely on bb? I disabled authimage for
about 24h and got arount 30 spam comments comming through. is that
something you'd expect?

4. bb 2.0.10 is out, but as I understand we did customizations and I
don't want to brake stuff :)
http://www.bad-behavior.ioerror.us/

thanks for replies and cheers,
reto


On 04/01/2007 03:08 PM, reto at devel.lifetype.net wrote:
> Author: reto
> Date: 2007-04-01 09:08:16 -0400 (Sun, 01 Apr 2007)
> New Revision: 5254
> 
> Modified:
>    plog/branches/lifetype-1.2/plugins/badbehavior/pluginbadbehavior.class.php
>    plog/branches/lifetype-1.2/plugins/badbehavior/readme.txt
> Log:
> fixed typo and adjusted the readme (in case a user stumbles on it)
> 
> 
> Modified: plog/branches/lifetype-1.2/plugins/badbehavior/pluginbadbehavior.class.php
> ===================================================================
> --- plog/branches/lifetype-1.2/plugins/badbehavior/pluginbadbehavior.class.php	2007-04-01 13:02:20 UTC (rev 5253)
> +++ plog/branches/lifetype-1.2/plugins/badbehavior/pluginbadbehavior.class.php	2007-04-01 13:08:16 UTC (rev 5254)
> @@ -9,7 +9,7 @@
>  	class PluginBadBehavior extends PluginBase
>  	{
>  		var $_logTable;
> -		var $_diasplyStatus;
> +		var $_displayStatus;
>  		
>  		function PluginBadBehavior()
>  		{
> @@ -24,7 +24,7 @@
>  			$config =& Config::getConfig();
>  			$prefix = Db::getPrefix();
>  			$this->_logTable = $prefix . $config->getValue( 'bb2_log_table' );
> -			$this->_displayStatus = $config->getValue( 'bb2_display_stats' );
> +			$this->_displayStatus = $config->getValue( 'bb2_display_status' );
>  		}
>  
>  		/**
> 
> Modified: plog/branches/lifetype-1.2/plugins/badbehavior/readme.txt
> ===================================================================
> --- plog/branches/lifetype-1.2/plugins/badbehavior/readme.txt	2007-04-01 13:02:20 UTC (rev 5253)
> +++ plog/branches/lifetype-1.2/plugins/badbehavior/readme.txt	2007-04-01 13:08:16 UTC (rev 5254)
> @@ -1,25 +1,18 @@
>  Plugin: Bad Behavior Integration
>  Author: The LifeType Team
>  Release Date: 2006/07/25
> -Version: 1.0
>  
> -This plugin offers anti-spam protection powerd by bad behavior http://error.wordpress.com/
> +This plugin offers anti-spam protection powered by Bad Behavior (http://www.bad-behavior.ioerror.us/).
>  
> -1. Copy the badbehavior folder to your plugins folder
> -2. Add the following lines to the top of index.php (try after the
> -          other include_once lines)
> +Although Bad Behavior is already included with LifeType since version 1.2 you might need to configure your template to take full advantage of Bad Behavior. Follow the steps below to add Bad Behavior to your template.
>  
> -    // Bad Behavior Check, hope this can stop most spam comments and trackbacks
> -    include_once( PLOG_CLASS_PATH."plugins/badbehavior/index.inc.php" );
> +1. Refresh the plugin center until you see the badbehavior plugin appers.
> +2. Add the following scripts to header.template between <head></head>
>  
> -3. Refresh the plugin center until you see the badbehavior plugin appers.
> -4. Add the following scripts to header.template between <head></head>
> -
>      {if !empty($badbehavior)}
>        {$badbehavior->showBB2JavaScript()}
>      {/if}
>  
> -5. That's All
>  
>  You also can use the followings method to get some useful information:
>  1. Use {$badbehavior->showBB2Timer()} to get the badbehavior timer
> 
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://limedaley.com/mailman/listinfo/plog-svn



More information about the pLog-svn mailing list