PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

MultiSite/S2m

s2Member Plugin. A Membership plugin for WordPress®.

MultiSite/S2m

Postby drbyte » November 22nd, 2011, 10:41 pm

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
User avatar
drbyte
Experienced User
Experienced User
 
Posts: 269
Joined: May 6, 2010

Re: MultiSite/S2m

Postby drbyte » November 23rd, 2011, 12:01 am

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")){ ?>
User avatar
drbyte
Experienced User
Experienced User
 
Posts: 269
Joined: May 6, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: No registered users and 1 guest

cron