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)

andrefedalto 02-24-2006 11:55 AM

Quote:

Originally Posted by RaidenDAWG2
Makes two of us :(

If you could let me know what setting you're using (or even screenshot your settings page ;) sensitive info blanked out of course...) and what version of vB you're using, it would be greatly appreciated :)

BTW guys, I'm going to be working on getting this validated for 3.5.4 over the weekend especially. I don't believe there'll be any more features this time around, but if I get the time, there's one I'd like to implement, but only if I've got the time to finish it entirely...busy weekend with my own site as well (3.5.4 upgrades on live and test sites, as well as all associated template updates :()....

-RD

i really dont know what is causing that errors, i'll try to take a deeper look on the code, try to figure out. I'm using 3.5.2 what lots of hacks installed. The other hacks are working fine. When i installed them i found lots of conflits between them, but i fixed and all them works fine. I think the same is going on here. ;)


edit:
damn, this mod is so weird... sometimes it works, and then dont work...
i found the problem is with deleting thread and posts, so lets try to find out how to fix :)

edit2:
it seems that the function "Move Threads to Specified Forum?" is not working pretty fine. If i set it on and put a forumid, it works pretty well. But if i put it OFF and then decimate, i get the error. If i uncheck the box to delete thread, error dont show up.

edit3:
as my time is short and i'm really needing this, i will not work to fix the bug, i'm changing almost everything on the hack to fit to my needs.

What it gonna have:

- What will have in AdminCP
-- Configure what groups can decimate
-- Configure what groups can be decimated
-- Configure the forum to all posts be moved to

- What will be the functions
-- the system will create a thread in the specified forum (thread starter is the staff member who is decimating)
-- ALL posts of the spammer will be apended to this thread (including the first post of the threads he started)
-- ALL replies to threads started by the spammer will be deleted (i think you wont have good posts in a spamming thread :) )
-- Spammer will be moved to banned usergroup and set a custom title for him (previously set in admincp)
-- Post count of spammer will NOT be set to 0, it will remaing in anything it was before decimate.
-- i'll keep all the other functions, such like emailing admin and the poor spammer


So i'll start now, if anyone has any suggestion, please let me know.
I'm still thinking in doing this:
- One thread in specified forum with all the posts of the spammer
- Another thread in specified forum with the all the replies to the threads started by the spammer.

So, if you have a suggestion, please tell me.

I still dont have permission from Raiden to release it here. But if he give it to me, i'll release and give support of my modification to this modification :)

Thanks

andrefedalto 02-24-2006 11:40 PM

Here we go, my modification is done!

- The configurable features
-- Configure what groups can decimate
-- Configure what groups can be decimated
-- Configure the forum to all posts be moved to


- What the modification do
-- the system will create a thread in the specified forum (thread starter is the staff member who is decimating)
-- ALL posts of the spammer will be apended to this thread (including the first post of the threads he started)
-- ALL replies to threads started by the spammer will be deleted (i think you wont have good posts in a spamming thread )
-- Spammer will be moved to banned usergroup and set a custom title for him
-- Post count of spammer will NOT be set to 0, it will remaing in anything it was before decimate.
-- you can send an email (set in admincp) to webmaster and/or spammer
-- you can check other users using the same ip

That's it, i think it's what it does.

How to install:
Upload all files in "upload" directory to your forum root directory, import the xml and go to admincp > manage templates
edit template POSTBIT (or POSTBIT_LEGACY, depends on what do you use) and find:
Code:

                <div align="$stylevar[right]">
                        <!-- controls -->

after, add:
Code:

$decimate_button
Oh, by the way, you will have to upload the spam button found on original release or somewhere in this thread to /forum/images/misc

Be carefully, i cannot assure 100% of trust on all boards, because i coded it to my 3.5.2 and could not run lots of tests, but what i tested is running perfectly fine :)

Try it and tell me if you like or send me some errors you get.

Hope you all enjoy!

ATTENTION: in option "who can be decimated" you can enter the groups id which can be decimated (separated by commas)

Nick0r 02-25-2006 12:13 PM

Anyone tried it - does it work OK - is it safe? :)

andrefedalto 02-25-2006 03:42 PM

Quote:

Originally Posted by Nick0r
Anyone tried it - does it work OK - is it safe? :)

my mod? i tried and worked safely for me ;)

RCA 02-25-2006 04:13 PM

Tested and running under 3.5.4, it works great

RaidenDAWG2 02-25-2006 06:18 PM

Quote:

Originally Posted by andrefedalto
I still dont have permission from Raiden to release it here. But if he give it to me, i'll release and give support of my modification to this modification :)

Thanks

No, thank you for saving me some work ;)

If you want, I can add that zip file to the downloads section on this hack and add you as a co-author :)

-RD

andrefedalto 02-26-2006 12:50 AM

Quote:

Originally Posted by RaidenDAWG2
No, thank you for saving me some work ;)

If you want, I can add that zip file to the downloads section on this hack and add you as a co-author :)

-RD

ok, go on, please do it ;)

i figured out the error you are getting, i'm pretty sure it is when this function is called:
build_forum_counters

this is called on lines 22, 46, 106, 107 from /includes/functions_decimator.php
try to comment these lines and see if error persists, i think it wont ;)

RaidenDAWG2 03-06-2006 05:27 AM

Quote:

Originally Posted by andrefedalto
ok, go on, please do it ;)

i figured out the error you are getting, i'm pretty sure it is when this function is called:
build_forum_counters

this is called on lines 22, 46, 106, 107 from /includes/functions_decimator.php
try to comment these lines and see if error persists, i think it wont ;)

That function, shocker, rebuilds the forum counters. Any idea why that'd be acting up? It's a native vBulletin function...

BTW, I will be working on a version 2.0 with all of this stuff cleaned up and a few new features this week, basically a rewrite of the original code with a lot more options added as well as a couple of planned new features. The following NEW features are IN at the moment, and I am open to suggestions:

-Start new thread in forum X when Decimator is used
-Multiple usergroups per permissions level (i.e. more than one mod group can be used)
-Better email message to webmaster (currently only the user who used SD is in there)
-Option to not allow use on a user with more than X posts, or to protect certain usergroups from use within the script (previously only done within the template).

Again, open to more suggestions...

-RD

VBUsers 03-06-2006 05:35 AM

cant wait for the rewrite. great job guys!

Spinball 03-06-2006 08:00 AM

Hello,
one of the original options I suggested for the original incarnation of this hack would be to show some information about any users which share the IP address of the spammer. Specifically their user name, their user group, and if banned, their banned reason.
And if all the users sharing the ip address have been banned for spamming, have the option to ban the ip address.
So that if a spammer keeps re-registering and no genuine users are using the IP address, you can ban that IP to prevent them from reoffending.
Thanks

andrefedalto 03-06-2006 01:38 PM

Quote:

Originally Posted by RaidenDAWG2
That function, shocker, rebuilds the forum counters. Any idea why that'd be acting up? It's a native vBulletin function...

BTW, I will be working on a version 2.0 with all of this stuff cleaned up and a few new features this week, basically a rewrite of the original code with a lot more options added as well as a couple of planned new features. The following NEW features are IN at the moment, and I am open to suggestions:

-Start new thread in forum X when Decimator is used
-Multiple usergroups per permissions level (i.e. more than one mod group can be used)
-Better email message to webmaster (currently only the user who used SD is in there)
-Option to not allow use on a user with more than X posts, or to protect certain usergroups from use within the script (previously only done within the template).

Again, open to more suggestions...

-RD

of course the problem is not with the function :P but is how the function is used... i think when you set the option to move to a forum to NO, it uses the function with no content, like build_forum_counters() so it gives you an error...

or maybe when the user set the forum number to an unexistent forum, it crashes the function ;)

RaidenDAWG2 03-07-2006 10:33 PM

Quote:

Originally Posted by Spinball
Hello,
one of the original options I suggested for the original incarnation of this hack would be to show some information about any users which share the IP address of the spammer. Specifically their user name, their user group, and if banned, their banned reason.

The current version shows any IP matches that may occur, but it only shows their usernames. I can change that if you like, however, the banning of IP's would be a little tricky due to that way that variable is stored...

-RD

Spinball 03-07-2006 10:43 PM

Quote:

Originally Posted by RaidenDAWG2
The current version shows any IP matches that may occur, but it only shows their usernames. I can change that if you like, however, the banning of IP's would be a little tricky due to that way that variable is stored...

-RD

More information would be good. AT least then we can see at a glance if it's a re-offender and then go in and do the business on their IP.

RaidenDAWG2 03-07-2006 10:58 PM

Quote:

Originally Posted by Spinball
More information would be good. AT least then we can see at a glance if it's a re-offender and then go in and do the business on their IP.

Yep, thus why I'm including the option to post a new thread in a private forum with the info previously only displayed to the end user.

-RD

RCA 04-03-2006 11:46 AM

I use to get timeouts (under large forum) when apply decimator to some user with more than 10 or 20 messages. (Checks ON: ban user, delete threads, delete posts. OFF: ip check, email webmaster)

Tried to fix adding this to decimator.php, but isn't working:
@set_time_limit(0);

RaidenDAWG2 04-06-2006 03:12 AM

With a large forum, you're going to have that problem with just about any script that deletes a user's post though...

-RD

Nathan2006 04-06-2006 02:27 PM

Thank You RaidenDAWG2

This is nice :cool:

Install

RaidenDAWG2 04-15-2006 02:48 PM

A little bit of an update, I've hit the hell quarter in my computer science program, so release of 2.0 is tenatively slated for mid July '06, by which time I should have had enough time to fully test the new features.

BTW, this also means that I'll still be able to take feature requests until about mid June. For the current feature list for 2.0, scroll up a few posts to about 88 or so ;)

-RD

styleforum 06-06-2006 03:26 AM

I am getting the array error. Has anyone got this working? I am very tired of all the spam I'm getting lately.

RaidenDAWG2 06-12-2006 10:01 PM

Which array error? I might have a fix for it...

-RD

styleforum 06-12-2006 10:10 PM

Quote:

Originally Posted by RaidenDAWG2
Which array error? I might have a fix for it...

-RD

It looks like it was just on the first couple messages I tried. I am guessing it happened because the messages were already in the "move to" forum. Thanks though.

Is there any way to disable the "send email" options or other options from being checked? I don't want to mail my spammers and I don't really want to get mail when the thing has been used, and my mods sometimes forget to uncheck things.

Thanks. Great script BTW. We are loving the ease of destruction over here. :)

RaidenDAWG2 06-13-2006 02:00 AM

Quote:

Originally Posted by styleforum
It looks like it was just on the first couple messages I tried. I am guessing it happened because the messages were already in the "move to" forum. Thanks though.

Is there any way to disable the "send email" options or other options from being checked? I don't want to mail my spammers and I don't really want to get mail when the thing has been used, and my mods sometimes forget to uncheck things.

Thanks. Great script BTW. We are loving the ease of destruction over here. :)

You're quite welcome :)

Alright, for the serious stuff, lemme look at the template code here (been a while...)...

Alright, disable all emails, take these lines...

Code:

<input type="checkbox" value="1" name="DOESPAMMER" checked>Email Spammer<br>
<textarea cols="30" rows="8" name="emailtext">
$vboptions[settingdefaultemail]
</textarea><br>
<input type="checkbox" value="1" name="DOWEMAS" checked>Email Webmaster<br>

And change them to...

Code:

<input type="hidden" value="0" name="DOESPAMMER" checked>Email Spammer<br>
<input type="hidden" value="0" name="DOWEMAS" checked>Email Webmaster<br>

Should do the trick :)

I'll be sure to throw that in the update as an option (Version 2.0 coming...sometime in the next month, I promise, got a bunch of stuff I backburnered during school catching up with me first ;)).

-RD

Desihunk 06-13-2006 02:47 AM

Some of my members in the forum are posting like 20 posts in the same thread consecutively; sorry if I sound as if I am a n00b but THAT would be considered as Spam too correct?

RaidenDAWG2 06-13-2006 03:18 AM

Quote:

Originally Posted by Desihunk
Some of my members in the forum are posting like 20 posts in the same thread consecutively; sorry if I sound as if I am a n00b but THAT would be considered as Spam too correct?

Technically, I guess that'd be considered spam. Depending on how much time you have on your hands, might be easier just to merge their posts using vB's built in inline moderation system.

-RD

Desihunk 06-13-2006 03:24 AM

I had seen on a forum that too many posts made would be merged auto. is there anyway to do that? I checked my ACP's Posting Options but couldn't see anything like that...

If you know what to do to auto-merge them, please let me know :)

Thanks..

RaidenDAWG2 06-13-2006 03:38 AM

https://vborg.vbsupport.ru/showthrea...ht=merge+posts

"Use the Search Luke." ;)

-RD

Replicators 06-13-2006 08:07 PM

Another request is to be able to input more usergroup id's in the mod/super mod/and admin Group Id's cause i have 2 usergroups that are admins and i can only have one of them use this feature unfortunantly. Unless there is some sort of code you can give me?

RaidenDAWG2 06-13-2006 10:59 PM

I have code, buuuut it's not stable, and it's very much a work in progress.

That feature is in the base set of features for 2.0 (see post 88 for more confirmed stuff I've worked on ;)), and realistically, it could be hacked into the 1.0.x series, it's just a matter of me figuring out a way to effectively do it without screwing up everything else...

Give me a day or so, I may be able to give you something reasonably soon. I've got another huge project I'm working on right now (vB based, but for a commercial user, needs to be finished by July 21st if it's going to be used this year...it's a stretch, but doable...), so it may take me a couple days to get to it...

-RD

Freezerator 06-23-2006 09:26 AM

<a href="http://www.vbulletin.com/forum/showthread.php?t=189577" target="_blank">http://www.vbulletin.com/forum/showthread.php?t=189577</a>

Is there not a query to undone an action? The query where al posts are deleted, can it be like instead of delete, undelete?

RaidenDAWG2 06-24-2006 06:25 PM

Yeah, this is why I'm installing the posts limits on the next version...

At any rate, like Colin said in the thread you mentioned, that query should reverse the effects of anything. I could include a feature in the 2.x series to undo this particular hack's effects. It'll require a little more work than I have time for at the moment (like I said a couple posts ago, currently working on a major project at the moment that is taking up all my free time).

Freezerator 06-25-2006 08:20 PM

I understand, the solution Colin provided worked. Thanks for your reply and good luck with your project you are working on :)

styleforum 06-27-2006 07:49 PM

Would there be a way to make this only apply to users who signed up in the last x time, or who have less than x posts? Maybe inline code in the template change, so the button only shows up for some users? I can't tell if it's a bug or one of my mods getting drunk but a couple of regular users have been decimated lately and I don't want it happening again.

The decimator definitely works, though! :D

RaidenDAWG2 06-28-2006 01:18 AM

Quote:

Originally Posted by styleforum
Would there be a way to make this only apply to users who signed up in the last x time, or who have less than x posts? Maybe inline code in the template change, so the button only shows up for some users? I can't tell if it's a bug or one of my mods getting drunk but a couple of regular users have been decimated lately and I don't want it happening again.

The decimator definitely works, though! :D

Alright, shouldn't be too difficult of a template change here...let's see...

Add something to the effect of...

HTML Code:

<if condition="$post[posts]<=X">
<!-- decimator postbit code here -->
</if>

Where X is the number of posts you want to disallow decimating at and the comment is the general template edit for Decimator...

-RD

styleforum 06-28-2006 04:25 AM

Seems to work! This should prevent anyone but newbs and spammers from being accidentally decimated. I set it to 15 based on our average spammer's habits. Most of them never get near that far before we catch them.

Thanks!

OttawaGolf 07-14-2006 11:09 AM

Love this mod will it work in 3.6?

RaidenDAWG2 07-17-2006 05:07 PM

Quote:

Originally Posted by OttawaGolf
Love this mod will it work in 3.6?

Haven't tested it, but it should theoretically work with 3.6 assuming none of the functions it calls have changed...

I should know here within the next couple weeks for certain though. Still need to upgrade my development environment to 3.6.

-RD

Mouse_cats 07-18-2006 10:44 AM

thanks alot but does it work with vb 3.5.4 because i have tried some hacks for old versions and they work with vb3.5.4

RaidenDAWG2 07-18-2006 07:54 PM

Yep, I just never updated the vB version...should work flawlessly with 3.5.4 (at least it does on my install).

-RD

Yorixz 07-19-2006 09:58 AM

I've been using it with vB 3.5.x and 3.6 since the first releases (of both vB and SpamDecimator) and it works flawlessly, it actually seems to work better on 3.6 than on 3.5, but that might also just be the removal of quite some extensions I was using.

The main thing that is still missing is an undo feature, I'm still hoping that will be added anytime soon ;)

Mouse_cats 07-19-2006 10:08 AM

thanks alot i will try it in my vb


All times are GMT. The time now is 01:59 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.01444 seconds
  • Memory Usage 1,854KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_html_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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