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?
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 troubleshooting → 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?
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
Appreciate helps.
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.
It works perfectly man. Thanks again!
PunBB Forums → PunBB 1.2 troubleshooting → Minimum Number Of Post Required to create a new thread
Powered by PunBB, supported by Informer Technologies, Inc.