Page 1 of 1

MultiSite/S2m

PostPosted: November 22nd, 2011, 10:41 pm
by drbyte
Hi Guys,

I found this but not sure if it is compatible with S2m

Multisite User Management
http://wordpress.org/extend/plugins/mul ... tallation/

I installed it and it seems to work fine but the only drawback is that you can only assign one role.

Sam

Re: MultiSite/S2m

PostPosted: November 23rd, 2011, 12:01 am
by drbyte
some things wont work unless I am doing something wrong

current_user_can which I assumes that the user does not exist in the current installation of that particular site.

I tried this but it seems to work current_user_is_for_blog($blog_id,"access_s2member_level1") replacing id with the blog id found when you hoover over the site name when you at the super admin mode.

But You'd have to reverse the call..not sure why

Code: Select all
<?php if (current_user_is_not_for_blog($blog_4,"access_s2member_level1")){ ?>


PUBLIC STUFF

<?php } else { ?>

PRIVATE STUFF

<?php } ?>


Interesting that current_user_can works fine at the footer but not in the header

Sam

updates: :shock:

Was using the wrong role when I was viewing admin Vs user

here's the correct role:

<?php if (current_user_can_for_blog($blog_4,"access_s2member_level1")){ ?>