Quote:
Originally posted by groovesalad
Logician - What if I wanted to make it 10 threads, instead of posts? Where would I go to edit that?
|
Unlike post number, user's thread number is not kept in a seperate variable, so to achieve your goal you first have to query db to learn this count (that means it will add 1 query to your page load)..
Replace:
PHP Code:
if ($bbuserinfo['posts']<X)
{show_nopermission(); exit;}
AS:
PHP Code:
$user_thread_count=$DB_site->query_first("SELECT count(*) as tc FROM thread WHERE postuserid=$bbuserinfo[userid]");
if ($user_thread_count['tc']<X)
{show_nopermission(); exit;}