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 - Minimum Post Count Required To Post Blog Entries (https://vborg.vbsupport.ru/showthread.php?t=283722)

The Rocketeer 05-30-2012 10:00 PM

Minimum Post Count Required To Post Blog Entries
 
1 Attachment(s)
This is a simple Plugin / Mod that was suggested to me by Kevin(kh99), 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

To Install
  1. Create a new plugin using hook blog_post_start
  2. 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.


Code:

$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 :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


All times are GMT. The time now is 06:09 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.01136 seconds
  • Memory Usage 1,740KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (17)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete