svnyster wrote:
The problem I'm running into is that the moderators of the gaming server have to promote/demote the users manually, and I don't want every moderator to have admin access to WP just to see user ranks.
....
The page would be hidden to everyone except moderators, and the moderators will use it to see who has made a donation.
This page could most likely be taken out from the menu bar of your theme ( http://codex.wordpress.org/Template_Tag ... _from_List ) and instead be listed on your Moderator's Login Welcome Page.
Then, as an extra precaution, you could set conditionals to only display the list to Moderators (I'll assume you gave them s2member level 4.)
- Code:
[s2If current_user_can('access_s2member_level4')]
//put the list here
[/s2If]
[s2If !current_user_can('access_s2member_level4')]
You do not have permission to access this page
[/s2If]
That being said, what I'm looking to do is have a WP page that will display a list of paid members on a certain level.
For a page with only level 1 users, you could use something like this:
- Code:
$level1users = get_users('role=s2member_level1');
foreach ($level1users as $user) {
echo '<li>' . $user->display_name . '</li>';
}
Then, just change the variable, and role= to level 2, etc. on the other pages.
For the demotion/promotion of users, this post may be of help viewtopic.php?f=4&t=14397
Another display that I would like to show (if possible) is a list of members whose paid subscription has recently expired.
This post may be helpful viewtopic.php?f=4&t=10385
If you have any questions, please reply back and I'll help if I can.Statistics: Posted by Bruce C — August 11th, 2011, 8:18 pm
]]>