Quote:
Originally Posted by rmxs
Here its the product For 3.6.x!
Info about HOW TO exclude usergroups from Double Posting!
Vb Settings - Doublepost Preventing - Additional Condition (experts only)
And Add
Code:
!in_array($vbulletin->userinfo['usergroupid'], array(5,6,7))
Change 5,6,7 with user group id that you wont to exclude!
|
????????????????????????????????????????????
what is this?
this is bad coding
to get it work fine with 3.6.x
find
PHP Code:
// we are here, so we may have a doublepost -> do more exact checkings
$doublepost = $vbulletin->db->query_first("
SELECT post.*
FROM " . TABLE_PREFIX . "post AS post
LEFT JOIN " . TABLE_PREFIX . "deletionlog AS deletionlog ON(deletionlog.primaryid = post.postid AND type = 'post')
WHERE threadid = $threadinfo[threadid]
AND dateline > " . (TIMENOW - $vbulletin->options['xen_dp_timespan'] * 60) . "
AND visible = 1 AND deletionlog.primaryid IS NULL
AND postid <> $post[postid]
ORDER BY dateline DESC
LIMIT 1
");
replace it with
PHP Code:
// we are here, so we may have a doublepost -> do more exact checkings
$doublepost = $vbulletin->db->query_first("
SELECT post.*
FROM " . TABLE_PREFIX . "post AS post
LEFT JOIN " . TABLE_PREFIX . "deletionlog AS deletionlog ON(deletionlog.primaryid = post.postid AND type = 'post')
WHERE threadid = $threadinfo[threadid]
AND post.dateline > " . (TIMENOW - $vbulletin->options['dp_timespan'] * 60) . "
AND post.visible = 1 AND deletionlog.primaryid IS NULL
AND post.postid <> $post[postid]
ORDER BY post.dateline DESC
");