Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

CB List total records do not match database total records

  • boyjahq
  • boyjahq
  • OFFLINE
  • Posts: 473
  • Thanks: 33
  • Karma: 3
9 years 2 weeks ago - 9 years 2 weeks ago #272055 by boyjahq
I have a list of users with the only filter as follows:
`cb_activemember`= 4

This gives a Total Records result as 4448

But when I do the following search of the comprofiler table in phpMyAdmin
SELECT * FROM `jos_comprofiler` WHERE `cb_activemember` = 4

This gives a records total of 4477

There is a difference of 29 records. Originally I had a single User Group chosen in "User Groups to Include in List" (the only group that should have this value in the field) to represent this total, but even if I choose ALL User Groups, this discrepancy does not change. How can I account for this difference?

Using most current version of CB for Joomla 2.5.28
Last edit: 9 years 2 weeks ago by boyjahq.

Please Log in or Create an account to join the conversation.

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
9 years 2 weeks ago #272062 by nant

boyjahq wrote: I have a list of users with the only filter as follows:
`cb_activemember`= 4

This gives a Total Records result as 4448

But when I do the following search of the comprofiler table in phpMyAdmin
SELECT * FROM `jos_comprofiler` WHERE `cb_activemember` = 4

This gives a records total of 4477

There is a difference of 29 records. Originally I had a single User Group chosen in "User Groups to Include in List" (the only group that should have this value in the field) to represent this total, but even if I choose ALL User Groups, this discrepancy does not change. How can I account for this difference?

Using most current version of CB for Joomla 2.5.28


Users displayed in CB User lists are only those that are enabled and approved/confirmed.

So I am guessing that the differences you are seeing are caused by this.

Please Log in or Create an account to join the conversation.

  • boyjahq
  • boyjahq
  • OFFLINE
  • Posts: 473
  • Thanks: 33
  • Karma: 3
9 years 1 week ago #272518 by boyjahq
Is there a way to search this in phpMyAdmin? Can I simultaneously search jos_comprofiler for those records where `cb_activemember`= 4 while also finding the corresponding users in whatever table shows whether they are not enabled and approved/confirmed?

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
9 years 1 week ago #272548 by krileon
You can allow your userlist to display unconfirmed, etc.. users by adjusting the parameters under Parameters > Display while editing your userlist. Querying the database directly is not going to be accurate unless you understand the relationship between _comprofiler and _users, their columns for filtering enabled users, and the joins. Best way to query phpmyadmin directly and get the same results as a userlist is to enable debug mode, navigate to your userlist on frontend, then grab its query from the query log.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum