Search Results for 'disable registration'
-
Search Results
-
Hello everyone,
I have a problem with the checkboxes profile fields.
I render this field mandatory but does not fix the data during user registration.
After registration, after I have made the field not mandatory, the user can possibly save without problems …. but I need it to be mandatory.
I tried to disable plugins, I tried different combibations … but nothing.
Before Buddypress version 3 I had no problem … now I have a problem.
Thanks and good jobTopic: registration
Hello, I am using theme my login plugin to restrict site for logged in users. And it has some other options which is very good. And I am using buddypress too. But when I click on registration it asks to login because I restrict the site to access for logged in users. But if I disable buddypress then registration page opens fine. Any suggestion to fix the issue?
Assigning Roles at registration disables the ability to “activate” users from the “pending” users dashboard
-Essentially because I am assigning new roles at signup, it seems users are no longer assigned to “pending Role” and are correctly being placed into the selected role from sign up page…
This is all good EXCEPT I lost the ability to resend Activation email as well as LOST ability to ACTIVATE manually from the dashboard.
if they have issues, I have no options to help, I can only delete the user and tell them to register again π
any and all help is greatly appreciated. thanks!!
Theme: I am using REHub for MultiVednor site.
Plugins: WooCommerce, WC vendors PRO, BPWC Vendors, BP4WCSpecific relevant plugins for this issue: BuddyPress, BuddyForms Pro, BuddyForms Members Pro, BuddyPress Member Types Pro
hello
my issue is : after registration , users can receive activation mail and then they click this link , new page opens , they go to the activation site , and system asks them activation key and their account can not be activated .
activation mail arrive to user : https://prnt.sc/jjy5jy
after click this link : http://prntscr.com/jjy6nb
wordpress version : Version 4.9.6
budy press version : Version 3.0.0
what I have done to solve it :
– disabled all plugins execpt buddypress : result is same
-disabled all plugins and theme ,execpt buddypress : result is same
– I noticed that there should ne ?key= on url , I have added it to url and tried it again , but situation is sameso what can I do more ?
thank you
Topic: Missing members
Hi there.
Wordpress: 4.95
BuddyPress: 2.94
All other plugins are up-to-date.Website: https://www.potatoesandrice.com
This is an intermittent issue, so maybe difficult to resolve. I’m hoping you may have some ideas or may have run across this before and therefore have some suggestions π
Buddypress came bundled in my WordPress theme (Sweetdate) by SeventhQueen.
I have a database of users – currently close to 900 members. When I have a new user register, I receive an email notifying me of their registration along with their username and email. I copy their username and go to the WordPress backend > Users and do a search for the username to edit their status. Now here’s the intermittent issue. I’d say 1 out of 10 (approx.) emails that I get, I am unable to find the user in the user area of the backend or in the front end as well. Interestingly enough, I have another plugin (Newsletter) that collects user info at signup and that plugin DOES have the missing user details.
I contacted SeventhQueen first and they gave the following response:
β Youβre having database continuity issues at the host level, either your database is failing intermittently or your host is restoring temporary backups of your database.
So, next I contacted my host (siteground) and they gave the following response:
I am unable to find anything in the apache error logs that can indicate an issue with the users.
Most likely the issue is coming from the plugin responsible for the user registrations.
I know normally we would disable other plugins to see if there is any kind of conflict, but since this issue is so intermittent, that would mean disabling my site fo a long time and not really knowing if it has been resolved.
Thanks in advance for any help π
Abe
I’m sure this has came up before, however I haven’t found a recent search result that works.
When BuddyPress is enabled it overrides the default WP registration page.
How can I prevent this from happening?
Hi,
I have a user that has registered and has a profile page on the frontend, but I can’t find him in the backend. We have a small intranet of about 35 people, so it would be hard to miss. There are no pending registrations, so it seems he has activated his account. I set up the site with account deletion of users disabled, so it’s not like I’m seeing a cached version of a deleted account.
Help …?
hello, guys. How to disable the registration function of buddypress? I just want the registration function of wordpress. thanks for your time!(^_^)β β»
I have an issue I need help solving.
New User BuddyPress activation emails (and resends) are being blocked by all Microsoft email services (Live, Hotmail, MSN, etc)
However, no other emails are being blocked, and activation emails and resends make it to other services like GMail.
Is anyone else seeing the same issue?
My system is using the latest version or WordPress 4.9.2 and BuddyPress 2.9.2
How I tested my WordPress site (not a multisite:)
1 – Disabled all plugins on my site.
2 – Registered for my site with standard WordPress interface using a Hotmail.com email account and received registration email from WordPress nearly instantly in my hotmail inbox.
3 – Activated Buddypress
4 – Registered with another Hotmail account and never (8 hours and counting) received activation email.
5 – Registered with Live, MSN, Outlook, Gmail, and other email accounts. Registration email makes it to ALL email services EXCEPT Microsoft.
6 – Wondering if it’s just BuddyPress registration emails, so I reset the password on existing accounts that use Live, MSN, and Hotmail wile BuddyPress is active. Password reset emails arrive no issue.
7 – Tried re-sending registration emails. They arrive at all email services except Microsoft.
8 – Disable Buddypress and try registering with Live.com email. Like step 2 I get email immediately.
9 – Enable Buddypress and try registering with another Live.com email. Registration email never arrives.
10 – Send email directly to Microsoft accounts using same email address that wordpress does, and they arrive no issue.
11 – Forward registration email from Gmail to Hotmail, and forward arrives without issue
12 – Create a new email address for my website to use to send email with, and go through above steps with same results.Does anyone have an idea why only BuddyPress Activation emails could/would be block by only Microsoft? ALL other site emails sent to the same Microsoft email addresses go through including:
– WordPress registration emails (when BP is disabled)
– Password Reset emails
– Emails sent directly using an email clientI have also tried an SMTP mail plug-in with the same results.
I have tried the Tools – BuddyPress – Reinstall emails with same results.Is anyone else seeing this issue?
Does anyone have any thoughts or suggestions?
Thanks in advance for any suggestions!
Shawn Tierney
Greetings!
I currently have WP 4.9.1 & Buddypress 2.9.2 installed. I have made a navigation menu, selected the buddy press options, which include log in, log out & Register. I have also made a bp-custom.php file with the following text in it in order to disable the BP registration and to use the default wp one.
<?php
// hacks and mods will go here/**
* Disables BuddyPress’ registration process and fallsback to WordPress’ one.
*/
function my_disable_bp_registration() {
remove_action( ‘bp_init’, ‘bp_core_wpsignup_redirect’ );
remove_action( ‘bp_screens’, ‘bp_core_screen_signup’ );
}
add_action( ‘bp_loaded’, ‘my_disable_bp_registration’ );
add_filter( ‘bp_get_signup_page’, “firmasite_redirect_bp_signup_page”);
function firmasite_redirect_bp_signup_page($page ){
return bp_get_root_domain() . ‘/wp-login.php?action=register’;
}?>
This works fine, in regards to when you are on the WP log in page, and choose register, it loads the correct registration page.
However, in regards to the BP Register on the navigation menu, this still re directs to the buddypress registration page. i would like it to direct to the WP one.
Can i ask please what else is needed in order for the Buddypress Register navigation menu to redirect to the WordPress Register Page.
Regards
Hi!
I am using WordPress 4.8.3, BuddyPress 2.9.2, and s2Member 170722
at http://gatetest2.aishasalem.comI am doing everything that I can to integrate BuddyPress and s2Memeber.
I am hoping to get a smooth registration process going. With a free membership and a paid membership, s2member_level1. It seems no matter what I do, the registration process is ugly, and they don’t really talk to each other.
Currenlty, I am trying the code out from this post https://codex.buddypress.org/developer/user-submitted-guides/useful_func_s2_bp/. It seems very promising. I have modified the code a little AND had to add some code to disable the buddypress automatic redirect from the default wordpress registration page.
Here is my code (slightly modified from the one in the post, as I want to add this for all members, not just level2).
// disable BuddyPress redirect from default reg page function my_disable_bp_registration() { remove_action( 'bp_init', 'bp_core_wpsignup_redirect' ); // remove_action( 'bp_screens', 'bp_core_screen_signup' ); } add_action( 'bp_loaded', 'my_disable_bp_registration' ); add_filter( 'bp_get_signup_page', "firmasite_redirect_bp_signup_page"); function firmasite_redirect_bp_signup_page($page ){ return bp_get_root_domain() . '/wp-signup.php'; } // Function to populate BP Profile Fields w/ S2member Fields. add_action('wp_login','s2_profile_field_update',10,2); function s2_profile_field_update() { global $current_user; //Array of xprofile field names $xprofile_fields = array('Last Name','Country','Introduce yourself to Aisha Salem'); //Array of s2member field slugs $s2member_fields = array('last_name','user_country','member_letter_aisha'); //Populates BP with S2 info get_currentuserinfo(); // if( current_user_is("s2member_level1") ) { for($i = 0; $i < sizeof($xprofile_fields); $i++) { if(xprofile_get_field_data($xprofile_fields[i], $current_user->id) == '' && get_user_field($s2member_fields[i]) != '' ) { xprofile_set_field_data($xprofile_fields[i], $current_user->id, get_user_field($s2member_fields[i]) ); } } // } }After this, nothing has really changed. I am not sure about the details.
Like:- Where exactly do I get the xprofile field names?
- Where exactly do I get the s2Member field slugs?
- Do I need to create these custom fileds with the same names in both BuddyPress and s2Members? (Which is what I have tried, so I am guessing no, or I am just doing it wrong…)
So, as I understand it, with this code. I use the s2Member registration process and the next time the user loggs in, it is updated to their BuddyPress profile.
Please let me know if I am not understanding this. AND PLEASE help me to understand how to do this correctly.
Thank you so much!
<?php get_header( ‘buddypress’ ); ?>
<!– MAIN SECTION
================================================ –>
<section>
<div id=”main”>
<div class=”row”>
<div class=”twelve columns”>
<?php do_action( ‘bp_before_register_page’ ); ?>
<div id=”register-page”>
<form action=”” name=”signup_form” id=”signup_form” class=”standard-form custom” method=”post” enctype=”multipart/form-data”>
<?php if ( ‘registration-disabled’ == bp_get_current_signup_step() ) : ?>
<?php do_action( ‘template_notices’ ); ?>
<?php do_action( ‘bp_before_registration_disabled’ ); ?>
<p><?php _e( ‘User registration is currently not allowed.’, ‘buddypress’ ); ?></p>
<?php do_action( ‘bp_after_registration_disabled’ ); ?>
<?php endif; // registration-disabled signup setp ?>
<?php if ( ‘request-details’ == bp_get_current_signup_step() ) : ?>
<div class=”row”>
<div class=”twelve columns”>
<h2 class=”article-title text-center”><?php _e( ‘Create an Account’, ‘buddypress’ ); ?></h2>
</div>
<!–end twelve–>
</div>
<?php do_action( ‘template_notices’ ); ?>
<p class=”lead”><?php _e( ‘Registering for this site is easy. Just fill in the fields below, and we\’ll get a new account set up for you in no time.’, ‘buddypress’ ); ?></p>
<br><br>
<?php do_action( ‘bp_before_account_details_fields’ ); ?>
<div class=”row”>
<div class=”register-section six columns” id=”basic-details-section”>
<?php /***** Basic Account Details ******/ ?>
<h4><i class=”icon icon-user”></i> <?php _e( ‘Account Details’, ‘buddypress’ ); ?></h4>
<br>
<label for=”signup_username”><?php _e( ‘Username’, ‘buddypress’ ); ?> <?php _e( ‘(required)’, ‘buddypress’ ); ?></label>
<?php do_action( ‘bp_signup_username_errors’ ); ?>
<input type=”text” name=”signup_username” id=”signup_username” value=”<?php bp_signup_username_value(); ?>” />
<label for=”signup_email”><?php _e( ‘Email Address’, ‘buddypress’ ); ?> <?php _e( ‘(required)’, ‘buddypress’ ); ?></label>
<?php do_action( ‘bp_signup_email_errors’ ); ?>
<input type=”text” name=”signup_email” id=”signup_email” value=”<?php bp_signup_email_value(); ?>” />
<label for=”signup_password”><?php _e( ‘Choose a Password’, ‘buddypress’ ); ?> <?php _e( ‘(required)’, ‘buddypress’ ); ?></label>
<?php do_action( ‘bp_signup_password_errors’ ); ?>
<input type=”password” name=”signup_password” id=”signup_password” value=”<?php bp_signup_password_value(); ?>” class=”password-entry” />
<div id=”pass-strength-result”></div>
<label for=”signup_password_confirm”><?php _e( ‘Confirm Password’, ‘buddypress’ ); ?> <?php _e( ‘(required)’, ‘buddypress’ ); ?></label>
<?php do_action( ‘bp_signup_password_confirm_errors’ ); ?>
<input type=”password” name=”signup_password_confirm” id=”signup_password_confirm” value=”<?php bp_signup_password_confirm_value(); ?>” class=”password-entry-confirm” />
<br><br>
</div>
<!– #basic-details-section –>
<?php do_action( ‘bp_after_account_details_fields’ ); ?>
<?php /***** Extra Profile Details ******/ ?>
<?php if ( bp_is_active( ‘xprofile’ ) ) : ?>
<?php do_action( ‘bp_before_signup_profile_fields’ ); ?>
<div class=”register-section six columns” id=”profile-details-section”>
<h4><i class=”icon icon-comments”></i> <?php _e( ‘Profile Details’, ‘buddypress’ ); ?></h4>
<div class=”check-group”>
<div class=”col-md-4 col-sm-4″>
<label for=”g1″ class=”g1″>
<input type=”radio” name=”colorRadio” value=”first-section” id=”g1″ checked=”checked”> Algemeen
</label>
</div>
<div class=”col-md-4 col-sm-4″>
<label for=”g2″ class=”g2″>
<input type=”radio” name=”colorRadio” value=”second-section” id=”g2″> Man
</label>
</div>
<div class=”col-md-4 col-sm-4″>
<label for=”g3″ class=”g3″>
<input type=”radio” name=”colorRadio” value=”third-section” id=”g3″> Vrouw
</label>
</div>
</div>
<br><section class=”first-section radio-section”>
<!– <h1>Algemeen</h1> –>
<?php /* Use the profile field loop to render input fields for the ‘base’ profile field group */ ?>
<?php if ( bp_is_active( ‘xprofile’ ) ) : if ( bp_has_profile( array( ‘profile_group_id’ => 1, ‘fetch_field_data’ => false ) ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
<?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
<div class=”<?php if(‘selectbox’ == bp_get_the_profile_field_type() || ‘multiselectbox’ == bp_get_the_profile_field_type() ) echo ‘six’; else echo ‘twelve’;?> columns”>
<div<?php bp_field_css_class( ‘editfield’ ); ?>>
<?php
$field_type = bp_xprofile_create_field_type( bp_get_the_profile_field_type() );
$field_type->edit_field_html();do_action( ‘bp_custom_profile_edit_fields_pre_visibility’ );
if ( bp_current_user_can( ‘bp_xprofile_change_field_visibility’ ) ) : ?>
<p class=”field-visibility-settings-notoggle” id=”field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>”>
<?php
printf(
__( ‘This field can be seen by: %s’, ‘buddypress’ ),
‘<span class=”current-visibility-level”>’ . bp_get_the_profile_field_visibility_level_label() . ‘</span>’
);
?>
</p>
<div class=”field-visibility-settings” id=”field-visibility-settings-<?php bp_the_profile_field_id() ?>”>
<fieldset>
<legend><?php _e( ‘Who can see this field?’, ‘buddypress’ ) ?></legend>
<?php bp_profile_visibility_radio_buttons() ?>
</fieldset>
<?php _e( ‘Close’, ‘buddypress’ ) ?>
</div>
<?php else : ?>
<p class=”field-visibility-settings-notoggle” id=”field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>”>
<?php
printf(
__( ‘This field can be seen by: %s’, ‘buddypress’ ),
‘<span class=”current-visibility-level”>’ . bp_get_the_profile_field_visibility_level_label() . ‘</span>’
);
?>
</p>
<?php endif ?>
<?php do_action( ‘bp_custom_profile_edit_fields’ ); ?>
<p class=”description”><?php bp_the_profile_field_description(); ?></p>
</div>
</div>
<?php endwhile; ?>
<?php $fields_ids[]= bp_get_the_profile_field_id();?>
<?php endwhile; endif; endif; ?>
</section><section class=”second-section radio-section”>
<!– <h1>Man</h1> –>
<?php if ( bp_is_active( ‘xprofile’ ) ) : if ( bp_has_profile( array( ‘profile_group_id’ => 2, ‘fetch_field_data’ => false ) ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
<?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
<div class=”<?php if(‘selectbox’ == bp_get_the_profile_field_type() || ‘multiselectbox’ == bp_get_the_profile_field_type() ) echo ‘six’; else echo ‘twelve’;?> columns”>
<div<?php bp_field_css_class( ‘editfield’ ); ?>>
<?php
$field_type = bp_xprofile_create_field_type( bp_get_the_profile_field_type() );
$field_type->edit_field_html();do_action( ‘bp_custom_profile_edit_fields_pre_visibility’ );
if ( bp_current_user_can( ‘bp_xprofile_change_field_visibility’ ) ) : ?>
<p class=”field-visibility-settings-notoggle” id=”field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>”>
<?php
printf(
__( ‘This field can be seen by: %s’, ‘buddypress’ ),
‘<span class=”current-visibility-level”>’ . bp_get_the_profile_field_visibility_level_label() . ‘</span>’
);
?>
</p>
<div class=”field-visibility-settings” id=”field-visibility-settings-<?php bp_the_profile_field_id() ?>”>
<fieldset>
<legend><?php _e( ‘Who can see this field?’, ‘buddypress’ ) ?></legend>
<?php bp_profile_visibility_radio_buttons() ?>
</fieldset>
<?php _e( ‘Close’, ‘buddypress’ ) ?>
</div>
<?php else : ?>
<p class=”field-visibility-settings-notoggle” id=”field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>”>
<?php
printf(
__( ‘This field can be seen by: %s’, ‘buddypress’ ),
‘<span class=”current-visibility-level”>’ . bp_get_the_profile_field_visibility_level_label() . ‘</span>’
);
?>
</p>
<?php endif ?>
<?php do_action( ‘bp_custom_profile_edit_fields’ ); ?>
<p class=”description”><?php bp_the_profile_field_description(); ?></p>
</div>
</div>
<?php endwhile; ?>
<?php $fields_ids[]= bp_get_the_profile_field_id();?>
<?php endwhile; endif; endif; ?>
</section><section class=”third-section radio-section”>
<!– <h1>Vrouw</h1> –>
<?php if ( bp_is_active( ‘xprofile’ ) ) : if ( bp_has_profile( array( ‘profile_group_id’ => 3, ‘fetch_field_data’ => false ) ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
<?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
<div class=”<?php if(‘selectbox’ == bp_get_the_profile_field_type() || ‘multiselectbox’ == bp_get_the_profile_field_type() ) echo ‘six’; else echo ‘twelve’;?> columns”>
<div<?php bp_field_css_class( ‘editfield’ ); ?>>
<?php
$field_type = bp_xprofile_create_field_type( bp_get_the_profile_field_type() );
$field_type->edit_field_html();do_action( ‘bp_custom_profile_edit_fields_pre_visibility’ );
if ( bp_current_user_can( ‘bp_xprofile_change_field_visibility’ ) ) : ?>
<p class=”field-visibility-settings-notoggle” id=”field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>”>
<?php
printf(
__( ‘This field can be seen by: %s’, ‘buddypress’ ),
‘<span class=”current-visibility-level”>’ . bp_get_the_profile_field_visibility_level_label() . ‘</span>’
);
?>
</p>
<div class=”field-visibility-settings” id=”field-visibility-settings-<?php bp_the_profile_field_id() ?>”>
<fieldset>
<legend><?php _e( ‘Who can see this field?’, ‘buddypress’ ) ?></legend>
<?php bp_profile_visibility_radio_buttons() ?>
</fieldset>
<?php _e( ‘Close’, ‘buddypress’ ) ?>
</div>
<?php else : ?>
<p class=”field-visibility-settings-notoggle” id=”field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>”>
<?php
printf(
__( ‘This field can be seen by: %s’, ‘buddypress’ ),
‘<span class=”current-visibility-level”>’ . bp_get_the_profile_field_visibility_level_label() . ‘</span>’
);
?>
</p>
<?php endif ?>
<?php do_action( ‘bp_custom_profile_edit_fields’ ); ?>
<p class=”description”><?php bp_the_profile_field_description(); ?></p>
</div>
</div>
<?php endwhile; ?>
<?php $fields_ids[]= bp_get_the_profile_field_id();?>
<?php endwhile; endif; endif; ?>
</section><input type=”hidden” name=”signup_profile_field_ids” id=”signup_profile_field_ids” value=”<?php echo implode(“,”,$fields_ids);?>” />
</div>
<!– #profile-details-section –>
</div>
<?php do_action( ‘bp_after_signup_profile_fields’ ); ?>
<?php endif; ?>
<?php if ( bp_get_blog_signup_allowed() ) : ?>
<?php do_action( ‘bp_before_blog_details_fields’ ); ?>
<?php /***** Blog Creation Details ******/ ?>
<div class=”register-section” id=”blog-details-section”>
<h4><?php _e( ‘Blog Details’, ‘buddypress’ ); ?></h4>
<p><label for=”signup_with_blog”><input type=”checkbox” name=”signup_with_blog” id=”signup_with_blog” value=”1″<?php if ( (int) bp_get_signup_with_blog_value() ) : ?> checked=”checked”<?php endif; ?> /> <?php _e( ‘Yes, I\’d like to create a new site’, ‘buddypress’ ); ?></label></p>
<div id=”blog-details”<?php if ( (int) bp_get_signup_with_blog_value() ) : ?>class=”show”<?php endif; ?>>
<label for=”signup_blog_url”><?php _e( ‘Blog URL’, ‘buddypress’ ); ?> <?php _e( ‘(required)’, ‘buddypress’ ); ?></label>
<?php do_action( ‘bp_signup_blog_url_errors’ ); ?>
<?php if ( is_subdomain_install() ) : ?>
http:// <input type=”text” name=”signup_blog_url” id=”signup_blog_url” value=”<?php bp_signup_blog_url_value(); ?>” /> .<?php bp_blogs_subdomain_base(); ?>
<?php else : ?>
<?php echo site_url(); ?>/ <input type=”text” name=”signup_blog_url” id=”signup_blog_url” value=”<?php bp_signup_blog_url_value(); ?>” />
<?php endif; ?>
<label for=”signup_blog_title”><?php _e( ‘Site Title’, ‘buddypress’ ); ?> <?php _e( ‘(required)’, ‘buddypress’ ); ?></label>
<?php do_action( ‘bp_signup_blog_title_errors’ ); ?>
<input type=”text” name=”signup_blog_title” id=”signup_blog_title” value=”<?php bp_signup_blog_title_value(); ?>” />
<label><?php _e( ‘I would like my site to appear in search engines, and in public listings around this network.’, ‘buddypress’ ); ?>:</label>
<?php do_action( ‘bp_signup_blog_privacy_errors’ ); ?>
<label><input type=”radio” name=”signup_blog_privacy” id=”signup_blog_privacy_public” value=”public”<?php if ( ‘public’ == bp_get_signup_blog_privacy_value() || !bp_get_signup_blog_privacy_value() ) : ?> checked=”checked”<?php endif; ?> /> <?php _e( ‘Yes’, ‘buddypress’ ); ?></label>
<label><input type=”radio” name=”signup_blog_privacy” id=”signup_blog_privacy_private” value=”private”<?php if ( ‘private’ == bp_get_signup_blog_privacy_value() ) : ?> checked=”checked”<?php endif; ?> /> <?php _e( ‘No’, ‘buddypress’ ); ?></label>
</div>
</div>
<!– #blog-details-section –>
<?php do_action( ‘bp_after_blog_details_fields’ ); ?>
<?php endif; ?>
<?php do_action( ‘bp_before_registration_submit_buttons’ ); ?>
<div class=”submit”>
<input type=”submit” class=”button radius pull-right” name=”signup_submit” id=”signup_submit” value=”<?php _e( ‘Complete Sign Up’, ‘buddypress’ ); ?>” />
</div>
<?php do_action( ‘bp_after_registration_submit_buttons’ ); ?>
<?php wp_nonce_field( ‘bp_new_signup’ ); ?>
<?php endif; // request-details signup step ?>
<?php if ( ‘completed-confirmation’ == bp_get_current_signup_step() ) : ?>
<h2 class=”article-title”><?php _e( ‘Sign Up Complete!’, ‘kleo_framework’ ); ?></h2>
<?php do_action( ‘template_notices’ ); ?>
<?php do_action( ‘bp_before_registration_confirmed’ ); ?>
<?php if ( bp_registration_needs_activation() ) : ?>
<p><?php _e( ‘You have successfully created your account! To begin using this site you will need to activate your account via the email we have just sent to your address.’, ‘buddypress’ ); ?></p>
<?php else : ?>
<p><?php _e( ‘You have successfully created your account! Please log in using the username and password you have just created.’, ‘buddypress’ ); ?></p>
<?php endif; ?>
<?php do_action( ‘bp_after_registration_confirmed’ ); ?>
<?php endif; // completed-confirmation signup step ?>
<?php do_action( ‘bp_custom_signup_steps’ ); ?>
</form>
</div>
<?php do_action( ‘bp_after_register_page’ ); ?>
<div class=”clearfix”></div>
<br><br>
</div>
<!–end twelve–>
</div>
<!–end row–>
</div>
<!–end main–>
</section>
<!–END MAIN SECTION–>
<style type=”text/css”>
.check-group{
width: 100%;
margin-bottom: 70px;
}
.check-group .col-md-4{
width: 20%;
float: left;
}
.check-group label{
background: none;
padding: 8px 12px;
border-radius: 5px;
width: 60%;
border:2px solid #d7b46a;
color: #fff;
}
</style>
<script type=”text/javascript”>
jQuery(document).ready( function() {
if ( jQuery(‘div#blog-details’).length && !jQuery(‘div#blog-details’).hasClass(‘show’) )
jQuery(‘div#blog-details’).toggle();jQuery( ‘input#signup_with_blog’ ).change( function() {
if(jQuery(this).is(‘:checked’)) {
jQuery(‘div#blog-details’).fadeIn();
}
else {
jQuery(‘div#blog-details’).fadeOut();
}
});
});
</script>
<script type=”text/javascript”>
// jQuery(document).ready(function(){
// jQuery(‘input[type=”radio”]’).click(function(){
// var inputValue = jQuery(this).attr(“value”);
// var targetBox = jQuery(“.” + inputValue);
// jQuery(“.radio-section”).not(targetBox).hide();
// jQuery(targetBox).show();
// });
// });
jQuery(document).ready(function(){
jQuery(‘.second-section’).hide(‘fast’);
jQuery(‘.third-section’).hide(‘fast’);
jQuery(‘.first-section’).show(‘fast’);
jQuery(‘.g1’).css({‘background’: ‘#d7b46a’, ‘color’: ‘#333’});jQuery(‘.g1’).click(function(){
jQuery(‘.second-section’).hide(‘fast’);
jQuery(‘.third-section’).hide(‘fast’);
jQuery(‘.first-section’).show(‘fast’);
jQuery(‘.g1’).css({‘background’: ‘#d7b46a’, ‘color’:’#333′});
jQuery(‘.g2’).css({‘background’: ‘none’, ‘color’:’#fff’});
jQuery(‘.g3’).css({‘background’: ‘none’, ‘color’:’#fff’});
})
jQuery(‘.g2’).click(function(){
jQuery(‘.first-section’).hide(‘fast’);
jQuery(‘.third-section’).hide(‘fast’);
jQuery(‘.second-section’).show(‘fast’);
jQuery(‘.g1’).css({‘background’: ‘none’, ‘color’:’#fff’});
jQuery(‘.g2’).css({‘background’: ‘#d7b46a’, ‘color’:’#333′});
jQuery(‘.g3’).css({‘background’: ‘none’, ‘color’:’#fff’});
})
jQuery(‘.g3’).click(function(){
jQuery(‘.first-section’).hide(‘fast’);
jQuery(‘.second-section’).hide(‘fast’);
jQuery(‘.third-section’).show(‘fast’);
jQuery(‘.g1’).css({‘background’: ‘none’, ‘color’:’#fff’});
jQuery(‘.g3’).css({‘background’: ‘#d7b46a’, ‘color’:’#333′});
jQuery(‘.g2’).css({‘background’: ‘none’, ‘color’:’#fff’});
})
})
</script>
<?php get_footer( ‘buddypress’ ); ?>Topic: User Roles on Activation
Hi there,
My site requires 2 user roles – ‘Female Subscriber’ and ‘Male Subscriber’. There are specific content restricted only to each role. On my BP registration, it allows them to choose gender as either Male or Female.
Is it possible for me to:
1. Modify the Activation Link to set the user as ‘Female Subscriber’ or ‘Male Subscriber’ based on their gender selection on the registration page?
2. If not, can I allow them to select the role (‘Female Subscriber’ or ‘Male Subscriber’) in the registration page and disable email activation altogether so that they are automatically logged on. Because the activation link in the email sets the role back to the WordPress default which is ‘Subscriber’
Thanks for your help!
WP Version 4.7.5. BuddyPress Version: Came with SocialChef Theme