What code would I use to pull the members name, email address from the users table and the user group associated with the member name from the user_groups table?
I believe it involves a JOIN which is where I get lost.
With a little modification to the file /members.php you get what you are asking for:
Code
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2011 Nick Jones
| http://www.php-fu...
+--------------------------------------------------------+
| Filename: members.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licen... Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
require_once "maincore.php";
require_once THEMES."templates/header.php";
include LOCALE.LOCALESET."members.php";
Thanks again smokeman, saved me some time and taught me some more code.
Merged on Mar 22 2012 at 12:27:20:
How can I adapt the code noted above to list users by user group? Is it even possible as I have quite a few user groups and would benefit by being able to list the members associated with the different user groups.
Edited by afoster on 22-03-2012 20:27
Official Home of PHP-Fusion uses cookies. Some may already have been set. Read more about our Cookies here.
Please click the button I Consent Cookies to hide this bar and accept our cookies. If you continue to use the site with no action taken, we'll assume that you consent our cookies anyway.