Closed (won't fix)
Project:
SimpleAds
Version:
7.x-1.8
Component:
Code
Priority:
Major
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
21 Dec 2012 at 14:29 UTC
Updated:
9 Jun 2023 at 17:06 UTC
Jump to comment: Most recent
Comments
Comment #1
pierrecw commentedI found a solution (may be not the best)
In campaigns.helper.inc I delete the group by "sc.ip_address" condition.
And that's work !
function _simpleads_campaigns_count_ad_impressions($timestamp, $nid) {
$count = db_select('simpleads_impressions', 'sc')
->condition("sc.nid", $nid)->condition('sc.timestamp', $timestamp, '>=')
->countQuery()->execute()->fetchField();
return $count;
}
If anyone have a better solution !
Comment #2
Anonymous (not verified) commentedI do not know if this is even the correct way of doing this, but I thank you!!
Comment #3
minnur commented