This question has been answered by BobRay. See the first response.
@SELECT `username`,`id` FROM `modx_users` WHERE `active` = 1
[[!Profile? &user=`[[*UserTV]]`]] <p>Username: [[+username]]</p> <p>FullName: [[+fullname]]</p> <p>Email: [[+email]]</p> <p>State: [[+state]]</p>
[[!Profile? &user=`[[*UserTV]]` &useExtended=`1`]]
@SELECT modx_users.username, modx_users.id FROM modx_users LEFT JOIN modx_member_groups ON modx_users.id = modx_member_groups.member where modx_users.active = 1 AND modx_member_groups.user_group = 4
Thanks.
I think it's possible, but it's not easy.
I think this is it (where the number at the very end is the ID of the user group):
@SELECT modx_users.username, modx_users.id FROM modx_users LEFT JOIN modx_member_groups ON modx_users.id = modx_member_groups.member where modx_users.active = 1 AND modx_member_groups.user_group = 4
I don't have a good way to test it. Let me know if it works.
Don't thank me until it works.
*donation sent.
Thank you, Bob!!