<?php echo c_ws_plugin__s2member_user_access::user_access_role(new WP_User($user_id)); ?>
Statistics: Posted by Cristián Lávaque — June 27th, 2011, 12:11 pm
Statistics: Posted by y2gabs — June 27th, 2011, 10:15 am
<?php echo get_user_field('s2member_access_label', $user_id); ?>
Statistics: Posted by Cristián Lávaque — June 26th, 2011, 7:19 pm
<div class="item-meta">
<span class="activity">
<?php
$id = bp_member_user_id();
$user = new WP_User( $id );
if ( $user->has_cap( 's2member_level4') ) :
$membership = 'Adhérent VIP';
elseif ( $user->has_cap( 's2member_level3') ) :
$membership = 'Adhérent';
elseif ( $user->has_cap( 's2member_level0') ) :
$membership = 'Sympathisant';
endif
?>
Current membership level: <?php echo $membership ?>
</span>
</div>
Statistics: Posted by y2gabs — June 26th, 2011, 12:11 pm
<div class="item-meta">
<span class="activity">
<?php
$id = bp_member_user_id();
$user = new WP_User( $id );
if ( $user->has_cap( 's2member_level4') ) :
$membership = 'Adhérent VIP';
elseif ( $user->has_cap( 's2member_level3') ) :
$membership = 'Adhérent';
elseif ( $user->has_cap( 's2member_level0') ) :
$membership = 'Sympathisant';
endif
?>
Current membership level: <?php echo $membership ?>
</span>
</div>
Statistics: Posted by arwyl — November 7th, 2010, 5:18 pm
$query = "SELECT DISTINCT(meta_value) FROM wp_usermeta WHERE meta_key='wp_capabilities'";
$resultx = $wpdb->get_col($query);
Statistics: Posted by Guest — November 7th, 2010, 4:11 pm
<ul id="members-list" class="item-list">
<?php while ( bp_members() ) : bp_the_member(); ?>
<li>
<div class="item-avatar">
<a href="<?php bp_member_permalink() ?>"><?php bp_member_avatar() ?></a>
</div>
<div class="item">
<div class="item-title">
<a href="<?php bp_member_permalink() ?>"><?php bp_member_name() ?></a>
<?php if ( bp_get_member_latest_update() ) : ?>
<span class="update"> - <?php bp_member_latest_update( 'length=10' ) ?></span>
<?php endif; ?>
</div>
<div class="item-meta"><span class="activity"><?php bp_member_last_active() ?></span></div>
<div class="item-meta">
<span class="activity">
<?php
$id = bp_displayed_user_id();
$user = new WP_User( $id );
if ( $user->has_cap( 's2member_level4') ) :
$membership = 'Adhérent VIP';
elseif ( $user->has_cap( 's2member_level3') ) :
$membership = 'Adhérent';
elseif ( $user->has_cap( 's2member_level0') ) :
$membership = 'Sympathisant';
endif ?>
Current membership level: <?php echo $membership ?>
</span>
</div>
<?php do_action( 'bp_directory_members_item' ) ?>
<?php
/***
* If you want to show specific profile fields here you can,
* but it'll add an extra query for each member in the loop
* (only one regardless of the number of fields you show):
*
* bp_member_profile_data( 'field=the field name' );
*/
?>
</div>
<div class="action">
<?php do_action( 'bp_directory_members_actions' ); ?>
</div>
<div class="clear"></div>
</li>
<?php endwhile; ?>
</ul>
Statistics: Posted by pericard — November 7th, 2010, 3:52 am
<?php
$id = bp_displayed_user_id();
$user = new WP_User( $id );
if ( $user->has_cap( 's2member_level4') ) :
$membership = 'Platinum';
elseif ( $user->has_cap( 's2member_level3') ) :
$membership = 'Gold';
else :
$membership = 'Free Membership';
endif ?>
<div class="membership-info">
Current membership level: <?php echo $membership ?>
</div>
Statistics: Posted by arwyl — November 6th, 2010, 11:55 pm
<?php
$current_user = wp_get_current_user() ;
echo 'User level: ' . $current_user->user_level ;
?>
Statistics: Posted by KirkWard — November 5th, 2010, 10:16 pm
Statistics: Posted by pericard — November 4th, 2010, 12:53 pm
Statistics: Posted by pericard — November 4th, 2010, 11:29 am
Statistics: Posted by KirkWard — November 4th, 2010, 10:55 am
Statistics: Posted by pericard — November 4th, 2010, 10:24 am
Statistics: Posted by akingston — November 3rd, 2010, 7:54 am
<?php echo S2MEMBER_CURRENT_USER_ACCESS_LABEL; ?>
Statistics: Posted by pericard — November 2nd, 2010, 9:01 am