<?php echo(get_user_field ("s2member_access_label", $comment->user_id));?>
Statistics: Posted by carblanco — June 14th, 2011, 5:02 pm
[s2Get constant="S2MEMBER_CURRENT_USER_ACCESS_LABEL" /]
[s2Get constant="S2MEMBER_CURRENT_USER_ACCESS_LEVEL" /]
<?php
$user_id = 123;
$user = new WP_User($user_id);
echo c_ws_plugin__s2member_user_access::user_access_level($user);
?>
Statistics: Posted by Jason Caldwell — June 14th, 2011, 12:25 am
<?php } else if ( $user_meta->wp_capabilities == 'a:1:\{s:15:\"s2member_level2\";s:1:\"1\";\}' ){ ?>
Statistics: Posted by carblanco — June 8th, 2011, 3:25 am
Statistics: Posted by carblanco — June 7th, 2011, 3:29 pm
Statistics: Posted by Cristián Lávaque — June 6th, 2011, 4:05 pm
<?php $user_meta = get_userdata( $comment->user_id ); ?>
<?php if ( $user_meta->wp_user_level == 10 ){ ?>
Level4
<?php } else if ( $user_meta->wp_user_level == 9 ){ ?>
Level3
<?php } else if ( $user_meta->wp_user_level == 8 ){ ?>
Level2
<?php } else if ( $user_meta->wp_user_level == 7 ){ ?>
Level1
<?php } else if ( $user_meta->wp_user_level == 0 ){ ?>
Level0
<?php } ?>
Statistics: Posted by carblanco — June 6th, 2011, 5:26 am
Statistics: Posted by Cristián Lávaque — June 6th, 2011, 4:55 am
<?php echo S2MEMBER_CURRENT_USER_ACCESS_LABEL; ?>
Statistics: Posted by carblanco — June 6th, 2011, 4:00 am
Statistics: Posted by Cristián Lávaque — June 4th, 2011, 9:51 am
Statistics: Posted by carblanco — June 4th, 2011, 3:42 am