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™
Mikey3D wrote:I have try settings:
1) S2Member > General Options > URL Restrictions > /groups/create/
2) S2Member > General Options > Membership Option Page > Demo
3) S2Member > General Options > Open Registration > Yes
Above setting, it doesn’t works as I expected when the user (Contributor) clicked the /groups/create/ link.
Membership Levels provide incremental access:
* A Member with Level 4 access, will also be able to access Levels 0, 1, 2 & 3.
* A Member with Level 3 access, will also be able to access Levels 0, 1 & 2.
* A Member with Level 2 access, will also be able to access Levels 0 & 1.
* A Member with Level 1 access, will also be able to access Level 0.
* A Subscriber with Level 0 access, will ONLY be able to access Level 0.
* WordPress® Subscribers are at Membership Level 0. If you're allowing Open Registration, Subscribers will be at Level 0 ( a Free Subscriber ). WordPress® Administrators, Editors, Authors, and Contributors have Level 4 access, with respect to s2Member. All of their other Roles/Capabilities are left untouched.
<?php if ( is_user_logged_in() && (current_user_can('administrator') || current_user_can('editor'))) : ?> <a class="button" href="<?php echo bp_get_root_domain() . '/' . BP_GROUPS_SLUG . '/create/' ?>"><?php _e( 'Create a Group', 'buddypress' ) ?></a>
<?php else: ?>
<?php if ( is_user_logged_in() && (current_user_can('subscriber') || current_user_can('contributor') || current_user_can('author'))) : ?> <a class="button" href="<?php echo bp_get_root_domain() . '/payment-page' ?>"><?php _e( 'Create a Group', 'buddypress' ) ?></a><?php endif; ?>
<?php endif; ?></h3>
If the person who wants a customization can't figure it out himself, and what we suggest is not enough
<?php if ( is_user_logged_in() && (current_user_can('administrator') || current_user_can('editor'))) : ?> <a class="button" href="<?php echo bp_get_root_domain() . '/' . BP_GROUPS_SLUG . '/create/' ?>"><?php _e( 'Create a Group', 'buddypress' ) ?></a>
<?php else: ?>
<?php if ( is_user_logged_in() && (current_user_can('subscriber') || current_user_can('contributor') || current_user_can('author'))) : ?> <a class="button" href="<?php echo bp_get_root_domain() . '/payment-page' ?>"><?php _e( 'Create a Group', 'buddypress' ) ?></a><?php endif; ?>
<?php endif; ?></h3>
! | If you need assistance integrating custom code and/or working with Conditionals in PHP, you will need to seek assistance from a developer. Please see: http://jobs.wordpress.net |
Users browsing this forum: Google [Bot] and 0 guests