Generalstats reflects Sabre’s functionality
-
hi didier,
i’m not only a satisfied user of your plugin, but also the author of generalstats. my plugin basically counts cornerstones of wordpress instances like posts, pages, tags, … and also user counts.
the latter are (at least) temporary wrong if for example users need to confirm their account with sabre. in other words, these users should not be counted until their confirmation.
here come my questions:
- is it possible to insert a simple check if sabre is installed and activated?
- for which types of wp-users do you store datasets in sabre_table? (something like no users above level 8?)
- is there a global function which returns the name of your table, or even better returns the number of confirmed users?
- do you also update the user_status field in wp_users?
in the following i prepared a bit of code which either i could use or you could integrate in future versions…
$q = "SELECT count(u.ID) FROM $wpdb->users as u, wp_sabre_table s WHERE u.ID=s.user_id AND s.status like '%ok%' UNION SELECT count(u.ID) FROM $wpdb->users as u, $wpdb->usermeta as m WHERE u.ID=m.user_id AND m.meta_key='wp_user_level' AND m.meta_value>8";
what do you think?
greetz,
berny
- The topic ‘Generalstats reflects Sabre’s functionality’ is closed to new replies.