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


All times are GMT. The time now is 04:57 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.01108 seconds
  • Memory Usage 1,757KB
  • 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
  • (2)bbcode_code_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