API Suggestion/Help
-
The external API seems to have very few options (I only see the ability to get the plugin version?), so I used the
variables.php
file instead ofexternal.php
so that I could load monthly pageviews and visitors, however I had to add an extraelseif
to get pageviews. Is it possible to get this extraelseif
in by default? Or should I just change all my sites’variables.php
to add in the extra statement?Thanks
The extra
elseif
:elseif ($var=='monthtotalpageviews'){ $qry = $wpdb->get_results( "SELECT count(id) AS pageview FROM $table_name WHERE DATE >= DATE_FORMAT(CURDATE(), '%Y%m01') AND spider='' and feed=''; "); if ($qry != null) { echo $qry[0]->pageview; } }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘API Suggestion/Help’ is closed to new replies.