vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Anti-Spam Options - Spam Decimator (https://vborg.vbsupport.ru/showthread.php?t=271057)

Fraxter 09-27-2011 10:00 PM

Spam Decimator
 
1 Attachment(s)
Description
Handle spam with two fast clicks.

Features
- Ban user
- Delete all forum threads by user (soft or permanent)
- Delete all forum posts by user (soft or permanent)
- Delete all blog comments by user (soft or permanent)
- Delete all blogs by user (soft or permanent)
- Delete all cms comments by user (soft or permanent)
- Move soft deleted threads to specific forum (option)
- Send auto mail to spammer
- Send auto mail to webmaster
- Set maximum posts for display spam button

Install
1.) Upload all files from the "upload" folder to your forum root
2.) Import the product
3.) Done :)

Update
1.) Upload all files from the "upload" folder to your forum root (override existing files)
2.) Import the product (override the existing)
3.) Done :)

Changelog


2.0.1
[BUGFIX] - Blog entries deletion

2.0 Beta 2
[UPDATE] - Improved Decimator view (See: Attachment #3)
[FEATURE] - Added checkbox for blog entry deletion
[BUGFIX] - Textarea (send mail to spammer) only visible if setting is on now

2.0 Beta
[UPDATE] - Updated to vBulletin 4.1.5
[UPDATE] - Made full XHTML valid
[UPDATE] - Updated delete_blog_entries() function (for soft and permanent delete)
[UPDATE] - Replaced all hardcoded text with phrases
[UPDATE] - Various changes
[FEATURE] - ON/OFF Setting for send mail to spammer
[BUGFIX] - Fixed wrong forum/thread rebuilding (reported here: #125)

Note
This is only a beta. Update will follow. Please report bugs and issues in this thread.

Credits
Special thanks to RaidenDAWG2, who's written the original addon. He gave me the permission to update & release it here.

whitedd 09-29-2011 12:37 AM

Spam Decimator Version 2.0
$error

Fraxter 09-29-2011 12:59 AM

More information would be useful.

Hornstar 09-29-2011 03:02 AM

What about it deleting visitor messages and social group messages as well?

Fraxter 09-29-2011 09:14 AM

If i released the final 2.0, we can talk about new features. :)

Sforums 09-29-2011 11:21 AM

vb 4.1.6. error:

Not Found
The requested URL /decimator.php?userid=303&threadid=5556&postid=4374 9 was not found on this server.

Fraxter 09-29-2011 01:39 PM

Looks like you haven't uploaded the files from the "upload" folder into your forum root.

Sforums 09-29-2011 04:23 PM

Reinstalled and works fine. Thanks.

prandah 09-29-2011 05:54 PM

how if i have different skins ?
because it's work on defaul vb style for me ?

Fraxter 09-29-2011 06:25 PM

Quote:

Originally Posted by prandah (Post 2251345)
how if i have different skins ?
because it's work on defaul vb style for me ?

Sorry, i don't understand what you mean. :confused:

prandah 09-29-2011 06:26 PM

solved :)
mark installed

synseal 09-29-2011 08:46 PM

1 Attachment(s)
Is it possible to move the spam button from the left of the postbit to right of other buttons?.

Thanks, installed and rated :up:.

RaidenDAWG2 09-29-2011 09:52 PM

Well done. Let me know if there's anything I can do to help :)

Fraxter 09-30-2011 01:26 PM

Quote:

Originally Posted by synseal (Post 2251403)
Is it possible to move the spam button from the left of the postbit to right of other buttons?.

Only with a manuel template edit, cause there is no template hook. Let me know if you need help for that.

cric2k 09-30-2011 04:19 PM

Ability to add IP address to banned list would be great.

Hostboard 10-01-2011 02:10 AM

Can you add a button in the Blog section as well? Maybe in the section when you click on the user ID? This might also be an option instead of a button on the forums as well as I think the hook for it is global?

Also I do not see a check box for Blogs (when enabled) when you click on the current SPAM icon.

Fraxter 10-01-2011 12:06 PM

Is on my current do do list. :)

Hostboard 10-01-2011 01:43 PM

This is much more advanced then the "One Touch" If there is anything I can do to help please don't hesitate to ask.

Fraxter 10-01-2011 08:23 PM

Thanks. :)

Quote:

Maybe in the section when you click on the user ID?
You're talking about the user profile?

Quote:

This might also be an option instead of a button on the forums as well as I think the hook for it is global?
You mean the forumdisplay?

Hostboard 10-01-2011 11:58 PM

1 Attachment(s)
Scren capture... I think this is universal regardless of where you are in VB (Blogs, CMS, Forums)

Fraxter 10-02-2011 10:15 AM

Quote:

Originally Posted by Hostboard (Post 2252164)
Scren capture... I think this is universal regardless of where you are in VB (Blogs, CMS, Forums)

Ah ok. That's a good idea. :)

Fraxter 10-02-2011 05:29 PM

Small weekend update:

Quote:

2.0 Beta 2
[UPDATE] - Improved Decimator view (See: Attachment #3)
[FEATURE] - Added checkbox for blog entry deletion
[BUGFIX] - Textarea (send mail to spammer) only visible if setting is on now
More later. :)

Hostboard 10-03-2011 06:44 PM

Thank you for the update :)

nipponmexico 10-04-2011 07:40 AM

Quote:

Originally Posted by cric2k (Post 2251669)
Ability to add IP address to banned list would be great.

maybe you can test this
add this to .htaccess

order allow,deny
deny from 192.168.1.20
allow from all


You can ban any ip , segment, or full class.

Cya

Fraxter 10-04-2011 10:15 AM

He's talking about the vbulletin option to ban ip addresses.

synseal 10-05-2011 09:47 AM

Quote:

Originally Posted by Pander23 (Post 2251627)
Only with a manuel template edit, cause there is no template hook. Let me know if you need help for that.

I have looked at the template but cant find what needs changing to move it right, thanks. :up:

Fraxter 10-05-2011 03:12 PM

Edit postbit_legacy template.

Find:
HTML Code:

<vb:if condition="$post['editlink']">

Add above:

HTML Code:

<a href="#" class="spam" onclick="window.open('decimator.php?userid={vb:raw post.userid}&amp;threadid={vb:raw post.threadid}&amp;postid={vb:raw post.postid}','spam_decimator','statusbar=yes,menubar=yes,toolbar=yes,scrollbars=yes,resizable=yes,width=850,height=600'); return false;">Spam</a>
<span class="seperator">&nbsp;</span>

That's all.

TheHack3r 10-05-2011 03:17 PM

It's great mod, thanks, work perfectly on my board (vBulletin version 4.1.3)

But there is a bug:

On thread the SPAM button for staf (moderator or super moderator) is not appear, but on PM is appear... Can you give solution about this situation...

Thanks before :)

Fraxter 10-05-2011 03:40 PM

Quote:

Originally Posted by TheHack3r (Post 2253617)
But there is a bug:

On thread the SPAM button for staf (moderator or super moderator) is not appear, but on PM is appear... Can you give solution about this situation...

Normally the spam button should appear in forum posts, if you have correctly set your spam decimator settings (correct usergroup ids). Please check your settings first.

About the PM button in pms. Didn't notice that the template hook uses the same controls there. It's fixed in the next beta build.

jitsuboy 10-05-2011 09:57 PM

Hi. I've uploaded to my root and upload the .xml. When I log onto my site I can see the new "spam" button under the posts, however when I click on it I get this error: Not Found

The requested URL /decimator.php was not found on this server.

Apache/2.2.3 (CentOS) Server at www.mysite.com Port 80

I've uploaded many other add-ons before so I am familiar how to do it. Any thoughts?

Fraxter 10-06-2011 12:59 AM

Do you have your forum stuff in a seperate subfolder?

jitsuboy 10-06-2011 01:32 AM

Not sure what you mean.

With Filezilla I upload everything to /public_html and everything usually works.

What do you think the problem is?

Hostboard 10-06-2011 02:51 AM

The files to upload need to go where your forum software is located. For example if your forums are in /public_html/forums (http://www.YourSite/Forums) then you need to upload to that location.

The not found error you are getting just means the file is not being found where it thinks it should be.

Fraxter 10-06-2011 12:16 PM

Or: Be sure that you have uploaded the "decimator.php" into the same folder where the "forum.php" is.

hanhdn 10-20-2011 08:45 AM

nice mod thanks
sr my Noble question: how long spamer will be ban or forever???

hanhdn 10-21-2011 05:18 AM

Quote:

Originally Posted by Hostboard (Post 2252164)
Scren capture... I think this is universal regardless of where you are in VB (Blogs, CMS, Forums)

You find {vb:raw template_hook.memberaction_dropdown_items} in memberaction_dropdown template, then add above it:
Quote:

<vb:if condition="$bbuserinfo[usergroupid] == 6||$bbuserinfo[usergroupid] == 7||$bbuserinfo[usergroupid] == 5||$bbuserinfo[usergroupid] == 10">
<li class="left">
<img src="{vb:stylevar imgdir_siteicons}/moderation.png" alt="" />
<a href="#" class="spam" onclick="window.open('decimator.php?userid={vb:raw post.userid}&amp;threadid={vb:raw post.threadid}&amp;postid={vb:raw post.postid}','spam_decimator','statusbar=yes,menu bar=yes,toolbar=yes,scrollbars=yes,resizable=yes,w idth=850,height=600'); return false;"><font color="red">Spam</font></a>
<span class="seperator">&nbsp;</span>
</li>
</vb:if>
You can change the groupid number depend on your forum;)

Demo:

http://img856.imageshack.us/img856/7547/unledufz.png

Jackie1 10-21-2011 08:05 AM

Pls help don't check IP Spammer.

Fraxter 10-21-2011 09:40 AM

Quote:

Originally Posted by Jackie1 (Post 2259680)
Pls help don't check IP Spammer.

More details?
IP checker only works, if some user have exactly the same ip.

Kzyl-orda 10-24-2011 09:09 PM

I guess "2.0 Beta 2" is a more updated version of the mod rather then "2.0 Beta", however I find it a bit ambiguos.
Also I can't find the option menu, so I can't choose to wich forum move the deleted posts and neither to hard delete them.
Also I think that the "check IP adress" should only tell moderator if anybody used the same IP adress and then give him the possibility to choose accordingly, giving them some kind of link and not brutally deleting. This may lead to errors. Painful errors.
Also I should be able to disable to the moderators the ability to ban// check the same ip adress.
I can't allow moderators to use this mod untill you give us the possibility to limit the "check same IP adress", in some enviroments is a too risky option, you know how are customers...

Keep the good work!

Kzyl-orda 10-24-2011 09:33 PM

To give you some examples:
-People in China who live in a big many-family-one-house
-Students at university
-People at work
-Internet cafés
-Hostels, dormitories.
As you see it's not so hard to find you people that match the same IP while registering and in that precise moment, and maybe just one of them is a spammer, not everybody is so luck to have a private internet connection at home.


All times are GMT. The time now is 06:27 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.01438 seconds
  • Memory Usage 1,819KB
  • 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_html_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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