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)

Smitty 04-24-2007 11:27 PM

Quote:

Originally Posted by KidCharlemane (Post 1234993)
VB gives a parsing error when you try to add that code.

OK - Well, I was just about play around with this because there are some 1000+ posters that on my forum the button shows up on, but I'm not a php person so.... I looked at the statements and haven't a clue other than 'trial and error'.

Currently I have
PHP Code:

<!-- Start Spam Assassin -->
<if 
condition="$post[posts]<=10">
<if 
condition="!in_array($post[usergroupid], array(5,6,7))">
<if 
condition="in_array($bbuserinfo[usergroupid], array(5,6,7))"><a href="#" onclick="window.open('decimator.php?userid=$post[userid]&amp;threadid=$post[threadid]&amp;postid=$post[postid]','spam_decimator','statusbar=yes,menubar=yes,toolbar=yes,scrollbars=yes,resizable=yes,width=800,height=600'); return false;"><img src="images/misc/spambutton.gif" alt="Spam Kill" border="0"></a></if></if></if>
<!-- 
End Spam Assassin --> 

NOTE: Now that I look, I may have an unnecessary line:
PHP Code:

<if condition="!in_array($post[usergroupid], array(5,6,7))">
<if 
condition="in_array($bbuserinfo[usergroupid], array(5,6,7))"



Anyway, and I *think* we know it's in this line:
PHP Code:

<if condition="$post[posts]<=10"

Anyway, I posted what I saw because it looked like a similar problem of determining correct post count for the 'if' statement and I figured maybe someone with php experience might be able to help. I really like this mod and would like to figure out how to make this aspect of it work correctly.

W1zzard 05-03-2007 08:36 PM

to disable deletion for users with more than 50 posts add change the code around
$error = "Cannot decimate mods/admins!!!";
to

PHP Code:

        if(($spammerinfo['usergroupid'] == 6) || ($spammerinfo['usergroupid'] == 5) || ($spammerinfo['usergroupid'] == 7))
        {
            
$error "Cannot decimate mods/admins!!!";
        }
        if (
$spammerinfo[posts]>50)
        {
            
$error "This user has too many posts. Are you sure he's a spammer?";
        } 


Smitty 05-03-2007 08:56 PM

Quote:

Originally Posted by W1zzard (Post 1240860)
to disable deletion for users with more than 50 posts add change the code around
$error = "Cannot decimate mods/admins!!!";
to

PHP Code:

        if(($spammerinfo['usergroupid'] == 6) || ($spammerinfo['usergroupid'] == 5) || ($spammerinfo['usergroupid'] == 7))
        {
            
$error "Cannot decimate mods/admins!!!";
        }
        if (
$spammerinfo[posts]>50)
        {
            
$error "This user has too many posts. Are you sure he's a spammer?";
        } 


In decimate.php, correct?

W1zzard 05-03-2007 09:04 PM

yes sir

Smitty 05-03-2007 09:43 PM

Thanks! I'll try it. At least that should present a 'Caution'.

WarDoGG 06-05-2007 04:49 PM

Please help im getting this error !

Quote:

A conflict was detected in the bitfields. You cannot continue with the installation of this product until this has been fixed. The conflicts found were:

* Bitfield Collision: can_view_ratestats = can_see_whorated_others

RaidenDAWG2 07-19-2007 07:08 PM

Quote:

Originally Posted by WarDoGG (Post 1261876)
Please help im getting this error !

That looks like a problem between two different products, unfortunately, neither of which I'm familiar with.

What's your vB version, and what other products do you have installed?

trifive 08-11-2007 10:07 PM

It doesn't seem to work on the latest version of vb Version 3.6.8

Any help would be appreciated

otis

RaidenDAWG2 08-12-2007 08:13 PM

Quote:

Originally Posted by trifive (Post 1315488)
It doesn't seem to work on the latest version of vb Version 3.6.8

Any help would be appreciated

otis

Good to know...I'll more than likely do an update for 3.6.8 in the next month or so. I've got some downtime I'd like to utilize to do some programming, soooo...give me a few weeks...

Smitty 08-12-2007 08:35 PM

I haven't upgraded vB on my site yet, so I'll probably wait a bit to see if you update this. My moderators LOVE this hack, and so do I. I'd donate but I don't see a donate button.


All times are GMT. The time now is 05:01 AM.

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.01320 seconds
  • Memory Usage 1,761KB
  • 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
  • (5)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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