Note that there are some explanatory texts on larger screens.

plurals
  1. POLedAds advertising script: stats not updating properly, all stuck at 1 impression
    primarykey
    data
    text
    <p>I installed the old LedAds php scripts (<a href="http://www.ledscripts.com/" rel="nofollow">http://www.ledscripts.com/</a>) to run a simple ad rotator on my sites and they work really nicely. I sorted out a code issue which stopped me being able to log in to them, thanks to a Google search... but this one I can't find.</p> <p>The ads show. The clicks work. The rotator does its random thing. Everything works great.</p> <p>But behind the scenes, the stats show 1 impression or click for each ad, no more. If there's a click, there's no impression. If there's an impression, there's no click.</p> <p>Database contains pla_ads (aid, type, did, active, datetime), pla_images (with image URLs, link URLs, alt text, sizes), pla_richtext (for ad html that doesn't fit the nice, simple image+URL format) and pla_impressions (aid, impdate, displays, clicks). The last is obviously the one that should be growing.</p> <p>The table is built when the script installs:</p> <p>CREATE TABLE {prefix}_impressions ( aid int(10) unsigned NOT NULL default '0', impdate date NOT NULL default '0000-00-00', displays bigint(20) unsigned NOT NULL default '0', clicks int(11) NOT NULL default '0', PRIMARY KEY (aid,impdate) ) TYPE=MyISAM;</p> <p>The php that does the business is here (saved as text for simplicity): <a href="http://www.oddjotter.com/ad_class.txt" rel="nofollow">http://www.oddjotter.com/ad_class.txt</a></p> <p>I manually edited a value in the impressions table to make one ad's impression old (previous day). After a few site visits, I hit that ad - and it now says 2 impressions in the stats but won't count any further impressions for today.</p> <p>If someone can see why the code's only recording one hit (or click) a day, I'd be most grateful!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload