Quote:
Originally Posted by MentaL
can you disable stats with this?
|
you may change the code accordingly, changing from:
PHP Code:
// Increment impression counts
if(count($qids))
{
$SQL = "UPDATE " . TABLE_PREFIX . "rbs_banners
SET impressions=impressions+1
WHERE id IN(" . implode(',', $qids) . ")";
$vbulletin->db->query_write($SQL);
}
to:
PHP Code:
// Increment impression counts
if(0 && count($qids))
{
$SQL = "UPDATE " . TABLE_PREFIX . "rbs_banners
SET impressions=impressions+1
WHERE id IN(" . implode(',', $qids) . ")";
$vbulletin->db->query_write($SQL);
}
Remember you have to repeat this after every upgrade ... unless I'll add it to the options, which is actually a good tip