Unregistered Users is always zero!
dragon2000 - March 1, 2009 - 11:41
| Project: | Counter |
| Version: | 6.x-1.6 |
| Component: | User interface |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Hi
Did you notice that "Unregistered Users" parameter of the counter module is always zero!
does the term "Unregistered Users" means "quests"? or it's sth else?
and why it's always zero?

#1
Yeah it doesn't work for me either mate. :(
#2
OK I see what's going on
if ($counter_unregistered_user) {$sql = " SELECT count(*) as total FROM {users} WHERE status=0 and uid<>0";
$results = db_query($sql);
$data = db_fetch_object($results);
$total = $data->total;
$output .= '<li>'.t('Unregistered Users: '). number_format($total).'</li>';
}
"unregistered users" should actually be called "inactive users"
and "registered users" should be called "active users"
This is not displaying hits made these users, it is just displaying stats on how many of these types of users there are.
In the database there is only ever 1 unregistered user - so there is no point in displaying a stat on this.
#3
To avoid any duplicate pots then please read this post http://drupal.org/node/357207