Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Addons

Post Reply
 
Thread Tools
  #1  
Old 07-17-2005, 06:44 AM
fotogram's Avatar
fotogram Offline
pp veteran
 
Join Date: May 2005
Location: Walnut Creek, CA
Posts: 92
Extending "daily visits"

I extended pixelpunk's Daily Visits addon (http://www.pixelpost.org/v1/index.ph...amp;details=13) to report how many of the daily visitors are feeds and how many are not. I added the followin lines:

Code:
$count_non_feed = mysql_query("select count(*) as count from ".$pixelpost_db_prefix."visitors where datetime like '$datenow%' and ruri not like '%x=atom' and ruri not like '%x=rss'");
$count_non_feed = mysql_fetch_array($count_non_feed);
$today_non_feed_visits = $count_non_feed['count'];
$tpl = ereg_replace("<STATS_NON_FEED_VISITORS_TODAY>","$today_non_feed_visits",$tpl);

$count_feed = $today_visits - $today_non_feed_visits;
$tpl = ereg_replace("<STATS_FEED_VISITORS_TODAY>","$count_feed",$tpl);
__________________
Guilherme Pinto
http://www.fotogram.com
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 02:17 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs