vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Required X Posts to Make New Thread in Y Forums (https://vborg.vbsupport.ru/showthread.php?t=100874)

tnguy3n 11-14-2005 10:00 PM

Required X Posts to Make New Thread in Y Forums
 
Required X Posts to Make New Thread in Y Forum(s)
Author: tnguy3n

This is port of my little hack I wrote for vB 3.0.x. you can view original hack here.

What this mod do is to disallows user with XX amount of posts to create New Thread in certain forums that you assigned. Of course, users can still view thread, reply to threads as normal, but not to make new thread until they meet the minimum number of required posts.

Open the plugin and adjust the value of $minpost, $specialgroups, and $forumid_req_minpost to fit your site settings.

// min post required to create thread
$minpost = 5;

// special groups which isn't restricted by this hack
$specialgroups = array(5,6,7);

// forums where this rule effects, use commas to seperate multiple forums
$forumid_req_minpost = array(2);

dieselpowered 11-15-2005 05:41 PM

Looks good...I will see about using this :)

djr 11-15-2005 05:58 PM

Thanks! EXACTLY what I needed!

/me hits install!

Yorixz 11-15-2005 07:24 PM

Too bad I didn't know this was going to be upgraded; already fixed this with usergroups + promotions now ;)

Omranic 11-16-2005 06:19 AM

Perfect solution for me :)
installed

tnguy3n 11-16-2005 08:15 AM

Quote:

Originally Posted by Yorixz
Too bad I didn't know this was going to be upgraded; already fixed this with usergroups + promotions now ;)

promotion is the good way too, but it gives you extra usergroup to manage.

Snake 11-16-2005 12:52 PM

This is great!

dactyl 12-20-2005 07:48 PM

Thanks for updating this mod to 3.5.x

Could you post the sql query we have to run for the inexperienced SQL users :)

Thanks

dactyl 01-07-2006 08:45 AM

I've imported the plugin, but I dont see Error Messages in the phrase type...

dead7 01-19-2006 06:09 PM

You're creating the phrase, not finding an existing.


All times are GMT. The time now is 10:06 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.00985 seconds
  • Memory Usage 1,726KB
  • 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_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
  • (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