woutm
Forum Replies Created
-
I think you can simply change the IF condition.
You should look up the level id`s of the membership levels you want to set to ‘Contributor’ and add them in the IF statement.
e.g. for level id 2 and 3:
if($level_id == 2 || $level_id == 3 )
I installed the Crony Cronjob Manager plugin to see when crons.php is being run. Somehow it’s working now, and expired memberships are canceled. So it is solved, although I don’t know what could have caused the problem.
I’m not sure if this is what you mean:
If you want you assign a certain user role (e.g. contributor, editor or subsciber), to users of a particular level, than you can add something like this to your funtion.php file:
<?php /* This code will make members signing up for membership level #2 premium:memeber and make them normal bbp_participant when they cancel. */ function my_pmpro_after_change_membership_level($level_id, $user_id) { if($level_id == 2) { //New member of level #2. $wp_user_object = new WP_User($user_id); $wp_user_object->set_role('contributor'); } else { //Not a member of level #2 $wp_user_object = new WP_User($user_id); $wp_user_object->set_role('subscriber'); } } add_action("pmpro_after_change_membership_level", "my_pmpro_after_change_membership_level", 10, 2); ?>
It will assign contributor role to members of level 2, and subscriber role to member of other levels.
I use this code to assign a certain role to members of level 2 and and a different role to the other level.
Hope this is what you’re looking for…Forum: Plugins
In reply to: bbPress 2.0.2 "New Posts" pluginI have been looking for this, but I it seems that it doesn’t exist.
Forum: Plugins
In reply to: [bbPress] from bbpress 1.0 to bbpress 2.0I have been trying to import from BBpress 1.02, but the importer stops after a few minutes, without error messages. Only the 4.000 of the more than 60.000 posts are imported.Any idea how to fix this?I used the RC5