PDA

View Full Version : Required X Posts to Make New Thread in Y Forums


tnguy3n
11-14-2005, 10:00 PM
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 (https://vborg.vbsupport.ru/showthread.php?s=&threadid=73529).

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
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.

dactyl
01-19-2006, 07:24 PM
I am aware of that dead7, when creating the phrase you need to choose the Phrase Type: Error Messages, and I cant find error meessages in the drop down menu of the phrase type.

topsoftware
01-19-2006, 08:18 PM
wat is Create a new phrase and why must make

Valter
01-20-2006, 08:26 AM
<a href="https://vborg.vbsupport.ru/showthread.php?t=96523" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=96523</a>

speedracer68
04-08-2006, 03:13 PM
Works great in 3.5.4 too!