latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

About: Phillip Bryan

Sorry, I've not written a description yet. I'll get to it soon!


Topics I'm Subscribed To

Viewing 3 topics - 1 through 3 (of 3 total)
Topic Count Last Reply
Hiding the "Display Name" field

By:  Phillip Bryan in: Community Forum

voices: 1
replies: 0

3 years, 3 months ago  Phillip Bryan

List of members on a page shown…

By:  Oliver Spörri in: Community Forum

voices: 2
replies: 4

4 years, 10 months ago  Oliver Spörri

Does S2Member offer any sort of daily reports

By:  Phillip Bryan in: Community Forum

voices: 2
replies: 3

4 years, 10 months ago  Raam Dev

Viewing 3 topics - 1 through 3 (of 3 total)

Topics I've Started

Viewing 2 topics - 1 through 2 (of 2 total)
Topic Count Last Reply
Hiding the "Display Name" field

By:  Phillip Bryan in: Community Forum

voices: 1
replies: 0

3 years, 3 months ago  Phillip Bryan

Does S2Member offer any sort of daily reports

By:  Phillip Bryan in: Community Forum

voices: 2
replies: 3

4 years, 10 months ago  Raam Dev

Viewing 2 topics - 1 through 2 (of 2 total)

My Latest Replies (From Various Topics)

Viewing 3 replies - 1 through 3 (of 3 total)
Author Replies
Author Replies
Posted: Monday Mar 12th, 2012 at 8:01 pm #7934
Phillip Bryan
Username: damron

This is a very simple example that generates a table of all paid members. It displays name, login, email, and the custom s2member field “address”.

<?php get_header() ?>
  <div id="container">    
    <div id="content">        
                
        <table width="900" border="0">
          <tr><th>Last Name</th><th>First Name</th><th>User Name</th><th>Email Address</th><th>Address</th></tr>
          
          <?php 
            $args = array ( 'fields' => 'all_with_meta' );
            $wp_user_search = new WP_User_Query( $args ) ;

            $users = $wp_user_search->get_results();
            foreach ($users as $user) {
              // Skip all level 0 entries -- paid members should be s2member_level1, s2member_level2, editor, etc.
              if ('subscriber' == get_user_field ( 's2member_access_role', $user->ID) ) continue;
								
              $fields = $user->get('wp_s2member_custom_fields');
              echo '<tr><td>' . $user->last_name . '</td><td>' . $user->first_name . '</td><td>' . $user->user_login  . '</td><td>' . $user->user_email  . '</td><td>' . $fields['address'] . '</td></tr>';
            }
          ?>		
        </table>
      </div>
    </div><!-- .post -->
  </div><!-- #content -->
</div><!-- #container -->

<?php get_sidebar() ?>
<?php get_footer() ?>
Posted: Thursday Mar 8th, 2012 at 3:11 pm #7643
Phillip Bryan
Username: damron

Thanks for the quick reply. I’ll look at creating a plugin as you’ve suggested.

Posted: Wednesday Mar 7th, 2012 at 3:28 pm #7577
Phillip Bryan
Username: damron

Hey there,

I’m just another s2member user, so may not know the best way to do this, but…

The “members update their own profile fields” functionality is provided by s2member in the form of a shortcode. The s2member tabs explain it pretty well – you create a page and add the shortcode, and then members can visit that page and edit their own data. It works great for us and is super easy to set up.

The member directory you describe can be handled in different ways –
— we created our own “archive” page to show a member directory, and displayed the members and custom fields exactly as we wanted.
— you could also use a plugin (for example, “members list”) that generates a directory of the members.

Regards,
Phillip

Viewing 3 replies - 1 through 3 (of 3 total)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.