Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Minimum Post Count Required To Post Blog Entries Details »»
Minimum Post Count Required To Post Blog Entries
Version: 1.00, by The Rocketeer The Rocketeer is offline
Developer Last Online: Sep 2013 Show Printable Version Email this Page

Category: Anti-Spam Options - Version: 4.2.0 Rating:
Released: 05-30-2012 Last Update: Never Installs: 33
Uses Plugins
Re-useable Code Translations  
No support by the author.

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


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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
Hostboard, zgg123

Comments
  #2  
Old 05-31-2012, 06:11 AM
dacho's Avatar
dacho dacho is offline
 
Join Date: Dec 2004
Location: Tell-Aviv
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks mate
Simple and good!
Reply With Quote
  #3  
Old 05-31-2012, 07:20 AM
zyiad zyiad is offline
 
Join Date: Nov 2011
Location: Egypt
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks
Reply With Quote
  #4  
Old 06-01-2012, 05:24 PM
Bankfodder Bankfodder is offline
 
Join Date: Apr 2006
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 06-01-2012, 05:34 PM
Nirjonadda Nirjonadda is offline
 
Join Date: Dec 2011
Location: Italy
Posts: 739
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Using Hook location "blog_post_start"
Reply With Quote
  #6  
Old 06-01-2012, 05:53 PM
Bankfodder Bankfodder is offline
 
Join Date: Apr 2006
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks. I thought that was the title!!!!
Reply With Quote
  #7  
Old 06-06-2012, 08:37 AM
lgnd's Avatar
lgnd lgnd is offline
 
Join Date: Jun 2007
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks! Installed on 4.2.0
Reply With Quote
  #8  
Old 06-06-2012, 10:32 AM
Hostboard's Avatar
Hostboard Hostboard is offline
 
Join Date: May 2002
Location: CT
Posts: 843
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 06-11-2012, 04:50 AM
Mukashi's Avatar
Mukashi Mukashi is offline
 
Join Date: Jan 2004
Location: Brisbane, Australia
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Exactly what I've been looking for. Far too many blog spammers lately.
Reply With Quote
  #10  
Old 06-12-2012, 04:48 PM
Disco_Stu Disco_Stu is offline
 
Join Date: Apr 2012
Posts: 305
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:02 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05955 seconds
  • Memory Usage 2,314KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (2)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete