Quote:
Originally Posted by Trigunflame
Currently your plugin code doesnt check the $useridpost nor use the right logic operator resulting in not letting anyone post if their Global post count is below the option; regardless if they have posted in the specified thread or not.
Here, replace your plugin code in the XML file with this.
PHP Code:
//Developer
//edited by trigunflame
$useridpost = $db->query_first("SELECT userid from " . TABLE_PREFIX . "post where threadid = '" . $threadinfo['threadid'] . "' AND userid=" . $vbulletin->userinfo['userid'] . "");
if($vbulletin->userinfo['posts'] < $vbulletin->options['oldpt_po'] && $vbulletin->userinfo['userid'] == $useridpost['userid'] && can_moderate($forumid, 'canremoveposts') == false)
{
standard_error(fetch_error('oldpt_error', $vbulletin->options['oldpt_po']));
}
//Developer
|
ooops this is the testing XML
anyway fixed and thnx 4u