'Yes, I'd like to create a new blog/site' to appear only for specific user type

hello, i’m using a multisite install, with buddypress, marketpress and Buddypress user account type pro. the idea is to make it an Etsy like virtual mall. on my registration page, i have a drop down that lets you select user type A or B and questions appear (depending on user) properly.
but before you even select the drop down, i have an option to create a new site by checking off ‘Yes, I’d like to create a new blog/site’. now i don’t want this option for user type A, just for user type B. any way to hide this option until the user selects type B?

  • Vaughan


    thanks for posting.

    you would probably need to edit buddypress register.php template in


    you'll see the blog create code there.

    <?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><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' ); ?></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(); ?>" />
    							<span class="label"><?php _e( 'I would like my site to appear in search engines, and in public listings around this network.', 'buddypress' ); ?>:</span>
    							<?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><!-- #blog-details-section -->
    					<?php do_action( 'bp_after_blog_details_fields' ); ?>
    				<?php endif; ?>

    just move it around to a different step or something.

    hope this helps.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.