If I remember right S2MEMBER_CURRENT_USER_ACCESS_LABEL doesn’t output the level, but rather the label for that level, for example “Silver” for level 1, “Peasant” for level 0 etc. Of course configurable under Dashboard -› s2Member® -› General Options -› Membership Levels/Labels.
<?php if (S2MEMBER_CURRENT_USER_ACCESS_LEVEL === 4){ ?>
A Member has an Access Level of 4.
<?php } else if (S2MEMBER_CURRENT_USER_ACCESS_LEVEL === 3){ ?>
A Member has an Access Level of 3.
<?php } else if (S2MEMBER_CURRENT_USER_ACCESS_LEVEL === 2){ ?>
A Member has an Access Level of 2.
<?php } else if (S2MEMBER_CURRENT_USER_ACCESS_LEVEL === 1){ ?>
A Member has an Access Level of 1.
<?php } else if(S2MEMBER_CURRENT_USER_ACCESS_LEVEL === 0){ ?>
A User is logged in as a Free Subscriber.
<?php } else if(S2MEMBER_CURRENT_USER_ACCESS_LEVEL === -1){ ?>
A User is not logged in at all.
<?php } ?>
And again, if I remember right this outputs the current user’s level, so all you have to do is output S2MEMBER_CURRENT_USER_ACCESS_LEVEL and you don’t need to do all this PHP voodoo to output the current level. :)
If I change my status from example. Level 1 to Level 3 it will show that all members I’m looking at is Level 3
That is a genuine concern.
You will need to do some code that works while BuddyPress is getting its info so that you know what user the code should look for. Then you’ll just need to check the user’s role and output it or something similar.
I don’t have experience with this so I’m just giving out ideas. May not work exactly like I say. :)
– Eduan