Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
First, Middle, and Last do not exist in Joomla. You need to make sure you use the "c" alias instead of "u" alias (e.g. c.`firstname`).This works, but the only thing is that it sorts by first name (because I have to use the "name" field to order by) instead of last name then first name. I tried to correct the ORDER BY by using ORDER BY u.`lastname` but I got a error message.
The query is designed to only show users that are approved, confirmed, and not disabled.I have 2 more related questions, does the part: WHERE c.`confirmed` = 1, does it (the 1) mean it does or does not show confirmed users or approved users or blocked users?
Yes, you'd need to use CB Query Field and its Query fieldtype. You'd then need to do a count query for every user that has that field set to the users ID. Example as follows.Also, is there something, possibly another query or CustomHTML field I can create that will show on the user/members tab a running count of how many members they themselves have recruited/sponsored, based on the above formula? I guess it would read how many times their "name" field was used?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Correct.So I am assuming that "c" = CB fields and "u" = Joomla fields and "1" means yeas and "0" means no
Glad I could be of help.Thanks for your professional insight and help. I am not that good at coding and trying to learn. This is valuable information and I appreciate it. Thanks for your patience in helping me get it working correctly
Please Log in or Create an account to join the conversation.