Statistics Module

Statistics Module Change

I noticed that items from my activity stream were popping up in the last viewed (and potentially most popular content).  As I'd rather not show these items I've changed statistics_title_list in drupal's statistics.module as follows:

function statistics_title_list($dbfield, $dbrows) {
return db_query_range(db_rewrite_sql("SELECT n.nid, n.title, u.uid, u.name FROM {node} n INNER JOIN {node_counter} s ON n.nid = s.nid INNER JOIN {users} u ON n.uid = u.uid WHERE %s <> '0' AND n.status = 1 and (n.type = 'story' OR n.type = 'page') ORDER BY %s DESC"), 's.'. $dbfield, 's.'. $dbfield, 0, $dbrows);
}

Syndicate content

About Sean

Sean Reiser's AvatarSean Reiser, 39, is a technologist, amateur photographer and social media enthusiast. Sean has spent the past 20 years as a programmer, system architect and development manager. He is a life long New York resident

Sean currently serves as the President and Chief Geek Officer of Repair Sense, Inc. Please go to that site with any professional inquiries.

Sean on the Web

seanreiser.com - Sean's Personal Site with articles on Technology, Social Media as well as samples of his photography.

earlyreiser.net - an attempt at a daily column with articles on Sean's view of the world.

repairsense.com - Sean's Professional Site.


Social Media Icon Soup

RSS Feed RSS Feed Twitter Friend Feed flickr toluu Stack Overflow Disqus Facebook Linked In Live Journal Pownce Plurk del.icio.us Google Reader Tumblr brightkite last.fm Shelfari chi.mp

Friendfeed Lifestream