Was this ever tested? If so, where would that edit be made? The code below doesn't seem to be in the add-on. Is it one of the core vB files?
Quote:
Originally Posted by Antivirus
This is very nice Paul, thanks! It's untested, but regarding counting posts in forums where a member has doesn't have permission to "Can View Other's Threads"...
i think all that needs to be done is adding a conditional to the query which checks $xfperms & $vbulletin->bf_ugp_forumpermissions['canviewothers']
Like following:
PHP Code:
if (!($xfperms & $vbulletin->bf_ugp_forumpermissions['canviewothers']))
{
$xpostuserid_list = "AND thread.postuserid = " . $vbulletin->userinfo['userid'] . " AND " . $vbulletin->userinfo['userid'] . " <> 0";
}
else
{
$xpostuserid_list = '';
}
and adding $xpostuserid_list as a variable conditional for within the WHERE clause of the query
|