vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Spam Decimator Version 1.0.5 (https://vborg.vbsupport.ru/showthread.php?t=93762)

RaidenDAWG2 05-30-2008 07:24 PM

I've (finally) released the 1.5.0 upgrade. Long story short, it makes use of some better backend code, as well as implementing some new options such as the long overdue multiple usergroups per permission level and a new postbit modification that utilizes a plugin that checks the user's postcount as well as permissions.

I'll take feature requests for Version 2.0 (due out late next month) through June 5th in this thread.

Fraxter 05-30-2008 08:24 PM

Quote:

Originally Posted by RaidenDAWG2 (Post 1536515)
I've (finally) released the 1.5.0 upgrade. Long story short, it makes use of some better backend code, as well as implementing some new options such as the long overdue multiple usergroups per permission level and a new postbit modification that utilizes a plugin that checks the user's postcount as well as permissions.

I'll take feature requests for Version 2.0 (due out late next month) through June 5th in this thread.

Thanks for the update. I will test it on 3.7, if i find any bugs i will report they.

regards

MindStar 05-31-2008 01:11 PM

Quote:

Originally Posted by RaidenDAWG2 (Post 1536515)
I've (finally) released the 1.5.0 upgrade. Long story short, it makes use of some better backend code, as well as implementing some new options such as the long overdue multiple usergroups per permission level and a new postbit modification that utilizes a plugin that checks the user's postcount as well as permissions.

I'll take feature requests for Version 2.0 (due out late next month) through June 5th in this thread.

I would really appreciate it if you could configure it to use the postbit hooks rather than having to edit templates; it would be one less edit to have to make each time the vB core team release a(nother) critical update that messes with the master templates :(

RaidenDAWG2 05-31-2008 03:36 PM

Quote:

Originally Posted by MindStar (Post 1537030)
I would really appreciate it if you could configure it to use the postbit hooks rather than having to edit templates; it would be one less edit to have to make each time the vB core team release a(nother) critical update that messes with the master templates :(

Consider it done, I was researching how to pull that off last night as a matter of fact.

MindStar 06-02-2008 11:46 AM

Quote:

Originally Posted by RaidenDAWG2 (Post 1537121)
Consider it done, I was researching how to pull that off last night as a matter of fact.

Excellent. I'm sure you'll get more Installs and fewer support queries :)

GuaRRand 06-06-2008 08:31 AM

Tried to upload the product, but i got this error

Code:

Database error in vBulletin 3.5.4:

Invalid SQL:

### INSERT QUERY GENERATED BY fetch_query_sql() ###
INSERT INTO plugin
        (`active`, `executionorder`, `title`, `hookname`, `phpcode`, `product`)
VALUES
        ('1', '5', 'Decimator Postbit', 'postbit_display_start', 'global $candecimate;\r\nglobal $vbulletin;\r\nif($vbulletin->options[\'sd_enabled\'])\r\n{\r\n$candecimate = false;\r\n$modgroups = explode(\",\", $vbulletin->options[\'modgroupid\']);\r\n$supergroups = explode(\",\", $vbulletin->options[\'supermodid\']);\r\n$admingroups = explode(\",\", $vbulletin->options[\'adminid\']);\r\n$decimators = array_merge($admingroups,$modgroups,$supergroups);\r\nif(!in_array($post[\'usergroupid\'], $decimators))\r\n{\r\n      if(in_array($vbulletin->userinfo[\'usergroupid\'], $decimators))\r\n      {\r\n            if($post[\'posts\'] < $vbulletin->options[\'sd_postmax\'])\r\n{\r\n            $candecimate = true;\r\n}\r\n      }\r\n}\r\n}\r\nelse\r\n{\r\n$candecimate = false;\r\n}', 'spamdecimator');

MySQL Error  : Unknown column 'executionorder' in 'field list'
Error Number : 1054
Date        : Friday, June 6th 2008 @ 11:30:26 AM
Script      : http://chikens.net/admincp/plugin.php
Referrer    : http://chikens.net/admincp/plugin.php?do=productadd
IP Address  : 62.58.80.115
Username    : xxxxxxxxxxxxxxx
Classname    : xxxxxxxxxxxxxx


RaidenDAWG2 06-06-2008 05:19 PM

I will get you a fix for that...unfortunately, I used a later version to export the XML file, which caused that particular error...

Really need to get this moved to the 3.6.x add-on's now.

-RD

Michael Biddle 06-19-2008 05:36 AM

Not sure if this has been reported, but you have a real problem in this. The $candecimate variable will not show up if you have a zero (0) value set for the maximum posts. Also after that fixed I realized that if it was at zero, it would throw an error from decimator.php. Both of my fixes are tested on 3.6.8.

I had to change the plugin to this:

PHP Code:

global $candecimate$vbulletin;
if(
$vbulletin->options['sd_enabled'])
{
    
$candecimate false;
    
$modgroups explode(","$vbulletin->options['modgroupid']);
    
$supergroups explode(","$vbulletin->options['supermodid']);
    
$admingroups explode(","$vbulletin->options['adminid']);
    
$decimators array_merge($admingroups,$modgroups,$supergroups);
    
    if(!
in_array($post['usergroupid'], $decimators))
    {
          if(
in_array($vbulletin->userinfo['usergroupid'], $decimators))
          {
            if(
$vbulletin->options['sd_postmax'] == '0')
            {
                
$candecimate true;
            }
            else
            {
                if(
$post['posts'] < $vbulletin->options['sd_postmax'])
                {
                    
$candecimate true;
                }
            }
          }
    }
}
else
{
    
$candecimate false;


and then in decimator.php find this:

PHP Code:

if($spammerinfo['posts'] > $vbulletin->options['sd_postmax'])
            {
                
$error "Spammer has more than " $vbulletin->options['sd_postmax'] .
                         
" posts and cannot be decimated!";
            } 

and change to this:

PHP Code:

if($vbulletin->options['sd_postmax'] > '0')
        {
            if(
$spammerinfo['posts'] > $vbulletin->options['sd_postmax'])
            {
                
$error "Spammer has more than " $vbulletin->options['sd_postmax'] .
                         
" posts and cannot be decimated!";
            }
        } 

Hope this helps others.

Crono_86 06-19-2008 03:01 PM

Quote:

Originally Posted by RaidenDAWG2 (Post 1335745)
In this next week I hope.



I can do the current post's IP address with very little problem. Consider it added in the next update.

Was this feature added in?

RaidenDAWG2 06-19-2008 08:34 PM

Quote:

Originally Posted by whitemike (Post 1553280)
Not sure if this has been reported, but you have a real problem in this. The $candecimate variable will not show up if you have a zero (0) value set for the maximum posts. Also after that fixed I realized that if it was at zero, it would throw an error from decimator.php. Both of my fixes are tested on 3.6.8.

I had to change the plugin to this:

PHP Code:

global $candecimate$vbulletin;
if(
$vbulletin->options['sd_enabled'])
{
    
$candecimate false;
    
$modgroups explode(","$vbulletin->options['modgroupid']);
    
$supergroups explode(","$vbulletin->options['supermodid']);
    
$admingroups explode(","$vbulletin->options['adminid']);
    
$decimators array_merge($admingroups,$modgroups,$supergroups);
    
    if(!
in_array($post['usergroupid'], $decimators))
    {
          if(
in_array($vbulletin->userinfo['usergroupid'], $decimators))
          {
            if(
$vbulletin->options['sd_postmax'] == '0')
            {
                
$candecimate true;
            }
            else
            {
                if(
$post['posts'] < $vbulletin->options['sd_postmax'])
                {
                    
$candecimate true;
                }
            }
          }
    }
}
else
{
    
$candecimate false;


and then in decimator.php find this:

PHP Code:

if($spammerinfo['posts'] > $vbulletin->options['sd_postmax'])
            {
                
$error "Spammer has more than " $vbulletin->options['sd_postmax'] .
                         
" posts and cannot be decimated!";
            } 

and change to this:

PHP Code:

if($vbulletin->options['sd_postmax'] > '0')
        {
            if(
$spammerinfo['posts'] > $vbulletin->options['sd_postmax'])
            {
                
$error "Spammer has more than " $vbulletin->options['sd_postmax'] .
                         
" posts and cannot be decimated!";
            }
        } 

Hope this helps others.

Stupid me...it'll be fixed in the update.

Quote:

Originally Posted by Crono_86 (Post 1553649)
Was this feature added in?

It can be pretty easily.

Smitty, if you see this, I'll have your feature done this weekend and I'll post an update of 1.5 with it included. Sorry it's taken me this long man.


All times are GMT. The time now is 08:29 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01600 seconds
  • Memory Usage 1,793KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (6)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete