Hello, we have just recently bought the subuser plugin. We have difficulties with the followings: 1. clicking on the subuser TAB it loads a different style sheet not our custom css from the THEME folder. Clicking on the other tabs the member page looks again as we designed it. 2. when adding a subuser we need to run a custom.php and sending it the user _id. The site.php doesn't run it somehow. Could you give us directions where to start?
Hello, Is there a way to get the list of the subusers of a specific user? something like this: $resellerUserId = 'anyone'; for(i=1; i<=$subusersNumber; i++){ echo $subUserEmail.$i; } Cheers
Hello, 1. Please contact us in helpdesk (https://www.amember.com/support) we will troubleshoot it. 2. I need more details. How do you call custom.php? What is code you have in it? 3. Code: foreach(Am_Di::getInstance()->userTable->findBySubusersParentId('parent user id') as $user) { echo $user->email; }
Hello, That's perfect, thanks! I copy the script here, others also may find it useful. <?php require_once '/home/yourname/public_html/amember/bootstrap.php'; $adminUser = 299;//example $subUserCount = 0; foreach(Am_Di::getInstance()->userTable->findBySubusersParentId($adminUser) as $user) { $subUserCount++; echo ' user:'.$user->email; } echo ' subUserCount: '.$subUserCount; ?>