Topic: Minimum Number Of Post Required to create a new thread

Hello all,

I have few forums in my forum, which require user at least 10-20 posts before they can create a new thread.

How can I implement this?

2 (edited by stevielove 2006-03-19 03:06)

Re: Minimum Number Of Post Required to create a new thread

No luck?

I have tried searching around and found this: http://punbb.org/forums/viewtopic.php?id=9359 , which is setting minimum number of post before viewing the forum.

I tried to use to code there to implement under post.php :

$fora_id = array(1, 2, 3);
if (in_array(intval($_GET['id']), $fora_id) && $pun_user['num_posts'] < 10 && $pun_user['g_id'] > PUN_MOD)
        message($lang_common['No view']);

Somehow, doesn't work  smile

Appreciate helps.

Re: Minimum Number Of Post Required to create a new thread

Try changing $_GET['id'] to $_GET['fid'].

Also add:

&& isset($_GET['fid'])

Or something similar to the if statement so they can still reply to posts.

I hope that works. smile

Looking for a certain modification for your forum? Please take a look here before posting.

Re: Minimum Number Of Post Required to create a new thread

It works perfectly man. Thanks again!