hello,
i used:
PHP Code:
$db->query("ALTER TABLE " . TABLE_PREFIX . "user ADD maxthread INT( 10 ) DEFAULT '0' NOT NULL");
$db->query("ALTER TABLE " . TABLE_PREFIX . "user ADD maxpost INT( 10 ) DEFAULT '0' NOT NULL");
and
PHP Code:
<plugin active="1">
<title>Maximum New Threads/Replies</title>
<hookname>useradmin_edit_start</hookname>
<phpcode>
<![CDATA[
$this->validfields['maxthread'] = array(TYPE_STR, REQ_NO);
$this->validfields['maxtpost'] = array(TYPE_STR, REQ_NO);
]]>
</phpcode>
</plugin>
PHP Code:
<plugin active="1">
<title>Max New Threads/Replies</title>
<hookname>useradmin_edit_column1</hookname>
<phpcode><![CDATA[global $getperms, $user, $vbulletin, $forum;
print_table_header($vbphrase['max_user_threads_desc']);
print_input_row($vbphrase['max_thread'], 'forum[maxthread]', $forum['maxthread']);
print_input_row($vbphrase['max_post'], 'forum[maxtpost]', $forum[maxpost]);]]>
</phpcode>
</plugin>
PHP Code:
<phrasetype name="Control Panel User Management" fieldname="cpuser">
<phrase name="max_user_threads_desc"><![CDATA[Threads/Posts Limists]]></phrase>
<phrase name="max_thread"><![CDATA[Maximum Threads]]></phrase>
<phrase name="max_post"><![CDATA[Maximum Posts]]></phrase>
</phrasetype>
but i've got these errors:
PHP Code:
Warning: Problem with method call - please report this bug in \acp\user.php on line 554
Warning: Problem with method call - please report this bug in \includes\class_hook.php on line 92
Warning: Problem with method call - please report this bug in \acp\user.php on line 649
Warning: Problem with method call - please report this bug in \includes\class_hook.php on line 92
any hints?
thanks,
Ross