Community Support Forums — WordPress® ( Users Helping Users ) — 2011-08-28T02:37:24-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=14728 2011-08-28T02:37:24-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14728&p=33180#p33180 <![CDATA[Re: How to display the membership level for other users?]]> Statistics: Posted by Cristián Lávaque — August 28th, 2011, 2:37 am


]]>
2011-08-27T23:22:43-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14728&p=33159#p33159 <![CDATA[Re: How to display the membership level for other users?]]> , but I do not have the user ID :-(
Should be all of them other than the loged in user ...

Guess I should replace that 123 with some sort of string, but which !?? :cry:

Thanks!

Statistics: Posted by candy — August 27th, 2011, 11:22 pm


]]>
2011-08-27T23:12:47-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14728&p=33156#p33156 <![CDATA[Re: How to display the membership level for other users?]]>
Code:
<?php
$user_id 
123;
$user = new WP_User($user_id);
echo 
c_ws_plugin__s2member_user_access::user_access_label($user);
?>


viewtopic.php?f=40&t=12916&src_doc_v=110815#src_doc_user_access_label%28%29

I hope that helps. :)

Statistics: Posted by Cristián Lávaque — August 27th, 2011, 11:12 pm


]]>
2011-08-27T15:57:35-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14728&p=33103#p33103 <![CDATA[Re: How to display the membership level for other users?]]> Statistics: Posted by candy — August 27th, 2011, 3:57 pm


]]>
2011-08-27T09:29:55-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14728&p=33069#p33069 <![CDATA[How to display the membership level for other users?]]>
I couldn't find this anywhere, how can I display the Membership name of an user?

All I found is this
<?php echo S2MEMBER_CURRENT_USER_ACCESS_LABEL; ?>

but I am not interested to show the user what membership level he has, just want to display what membership level the OTHER users have. So if the user X looks into the profile of user Y, I want userX to see which membership level user Y has.

I tried <?php echo S2MEMBER_USER_ACCESS_LABEL; ?> but it does not work, which is the right code please?

Thanks!

Statistics: Posted by candy — August 27th, 2011, 9:29 am


]]>