PDA

View Full Version : Anti-Spam Options - Minimum Post Count Required To Post Blog Entries


The Rocketeer
05-30-2012, 10:00 PM
This is a simple Plugin / Mod that was suggested to me by Kevin(kh99 (https://vborg.vbsupport.ru/member.php?u=346440)), Special thanks to him. And so I wanted to make it public so that others could use it as well. :)


What Does This Plugin Do?
What this Plugin does is, it stops newly registered users from Creating Blog Entries before they have a certain number of posts in the forum. Even though we used the vBulletin Q& A for Human Verification, On one of our forums we had a issue where a lot of new spammers (either bot or human) would register and would post spam blog entries, everyday. After adding this plugin that problem is gone. :up:


DEMO (http://tomorrowsgaming.com/blogs/)

To Install


Create a new plugin using hook blog_post_start
Use the Code below



NOTE: Remember to change the red colored "x" in the "$min_posts = x;" to a number of your liking, eg. 5 or 10. This will represent the number of posts that a user is required to have to be able to start their own blog entries.


$min_posts = x;

if ($vbulletin->userinfo['posts'] < $min_posts)
{
print_no_permission();
}


The mod / plugin is free and the code is reusable so feel free to improve on it. You dont require to put any link backs or copyright or anything to our forum, you are welcome to use it as you like. Please Remember to Tag it for later, or if you install it then please do Mark As Installed (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=283722&token=90aea079d434d6413f924edd6763a34b) :o


Mod Version and Updates
Version 1.01 May 31 2012 - First version, Tested on vBulletin 4.1.12 & 4.2 and Released

dacho
05-31-2012, 06:11 AM
Thanks mate
Simple and good!

zyiad
05-31-2012, 07:20 AM
Thanks

Bankfodder
06-01-2012, 05:24 PM
Looks great - but I'm afraid that I don't know what to put for Hook location and it won't allow me to save the plugin.
Can you help please

Nirjonadda
06-01-2012, 05:34 PM
Using Hook location "blog_post_start"

Bankfodder
06-01-2012, 05:53 PM
Thanks. I thought that was the title!!!!

lgnd
06-06-2012, 08:37 AM
Thanks! Installed on 4.2.0

Hostboard
06-06-2012, 10:32 AM
This is a huge help as we have the same problem. Would be nice if the error message actually gave the actual a physical reason why they are blocked.

Mukashi
06-11-2012, 04:50 AM
Exactly what I've been looking for. Far too many blog spammers lately.

Disco_Stu
06-12-2012, 04:48 PM
How will the visitors know how many posts they must have before they are allowed to blog?

If they just get the generic "no permission" message they will no doubt start sending emails or messages to the admins asking what is going on.

Can this be modified to inform them as to why they are being prevented from creating a blog to avoid all the questions?

Sai01
08-23-2012, 10:05 PM
Does it matter what Title or Execution Order I give it?

Also under product when adding this, do I select vBulletin or vBulletin Blog?

Recon0303
08-23-2012, 11:14 PM
Glad we have this because the spammers are getting on my nerves, they only attack my blog, since I have the questions , but they seem to still hit the blogs, so I plan to see if this takes care of it, which it should !

Thanks alot!

ForceHSS
08-23-2012, 11:27 PM
Why not make the plugin and upload it to the first post as a lot of members don't know how to make one

Sai01
08-24-2012, 12:16 AM
A plugin would be great. A more indepth installing description would be nice also. It's a little vague as it currently stands.

IndigoSociety
01-10-2013, 08:16 PM
How would you change the message to something more informative? How to output another type of text?

Morrus
01-11-2013, 02:46 PM
I don't think this is working. I'm still getting spammers posting blog entries despite having zero forum posts.

friendlymela
01-21-2014, 04:30 AM
how do i create the plugin. please anyone guide me briefly