Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 476 through 500 (of 4,122 total)
  • Author
    Search Results
  • #304937

    In reply to: Age instead Birthday

    Venutius
    Moderator

    I think you’d have to write a custom profile field which retained the date of birth on edit, but displayed the age when viewed. As a first option I’d ask the developers of the few xprofile custom fields plugins if they’d consider adding it as an option.

    tokyo0chiba
    Participant

    I added a Number type field and a Phone Number type field on profile fields.
    The number type fields are not displayed on a profile edit page, but I can input values on admin pages and see it on a profile view page.
    How do i fix this problem? Thank You.

    admin page
    profile edit page

    I tried 2 environments.

    1. localhost
    nginx
    PHP 7.2.9
    WordPress version 5.0.4
    buddy press Version 4.2.0
    plugins Classic Editor & BuddyPress only
    theme bp-default

    2. AWS (Amazon Linux)
    Bitnami WordPress 4.9.10 (multi sites)
    buddy press Version 4.2.0
    PHP 7.0.31
    theme bp-default

    #304774
    cj74
    Participant

    Thanks a lot for that Venutius, i did what you asked and tried clicking in various places of the member’s page but i am not seeing any table which has a class or says ‘profile fields’. If i am not mistaken the fields should be listed right underneath the member’s name and i tried there as well as other parts of the page but didn’t see it.

    So obviously they are not being printed.

    #304768
    Venutius
    Moderator

    Ah sorry, well listen carefully becuase I’m going to tell you about a very important diagnostic tool for your site. Take time to get to know it as it’s incredibly useful.

    Right click on the page where you expect the profile fields to be displayed and you will see a bunch of options, one of them will be ‘Inspect’ or ‘inspect Element’ click on this.

    This takes you to your browsers diagnostics, opened in the inspect html section. on the left of this content you will see the html structure of the page to are viewing, at the position of the element you wanted to inspect.

    Take time to scroll around this area and you will see the various content areas for your page. Notice the elements are typically collapsed, there’s a triangle pointing right to show the element is collapsed, click on this and the element opens up and the triangle points down.

    You should be able to fins a <table> on the page with a class of ‘profile-fields’, this is the table that holds your profile field data, inspect this and see if the profile fields you created are there.

    Notice when you click on an element the browser diagnostics will show you the CSS that’s being applied to the elements and what files have set it. Take some time to get used to this incredibly powerful tool. A key feature is that with it you can set new CSS for screen elements on the fly, it won’t be saved and is a great way of seeing the impact of css changes you are looking to make without pushing it out site wide.

    #304743
    Venutius
    Moderator

    One issue I came across recently was the theme was hiding the user profile fields by printing them with the colour white with a white background. So my first suggestion would be to switch themes to a default theme such as 2017.

    Have you done any customisations that could affect this?

    cj74
    Participant

    WP version- 5.1.1, BP version 1.9.5

    Hello,
    I created 3 more profile fields for registration which were added to the “base/primary”, which are all selected as “required”, and visibility selected as “everyone”, yet none of the profile fields are visible at the front end to other members as well as to me, and i am the admin. In other words when i go the members page and click on any member profile/account, none of those fields are visible. I would like to ensure that all members see each other’s answers to the profile fields. How do i fix this problem? Thank You.

    corporateslave
    Participant
    if ( bp_has_members( bp_ajax_querystring( 'members' ) ) ) :
    	do_action( 'bp_before_directory_members_list' );
    		while ( bp_members() ) : bp_the_member();
    			// the loop content goes here
    		endwhile;
    	do_action( 'bp_after_directory_members_list' );
    	bp_member_hidden_fields();
    else:
    	// and then the were none
    endif;

    Let’s say we have a simple members loop code just like the one above. And let’s say that all of our members have this xprofile field named “Lucky Number” filled accordingly.

    Can we sort out the loop output so it displays members with highest “Lucky Number” first?

    Thank you.

    ChristineZ
    Participant

    Helloooo there BuddyPress! 🙂 🙂

    I am new to BuddyPress and I am so excited to learn and use it.

    Website: http://ceefworld.org/ – In development, it is not live yet.
    Theme: Charity Is Hope: (https://themeforest.net/item/hope-nonprofit-charity-donations/18634753?s_rank=3)
    WordPress version: 5.1.1
    BuddyPress version: 4.2.0

    I have installed BuddyPress and I cannot see any of the default fields on the Registration page or when a person is logged in I don’t see the defaults fields there either, where the can edit their profile or anything.

    So, I guess what am I doing wrong? I set-up all settings I wanted but still don’t see them on the front end. What do I need to do?

    Thank you for your support. I truly appreciate it,
    Christine 🙂

    #304513
    wasanajones
    Participant

    thanks @venutius, just so folks are clear (it took me awhile to unravel how it works) the blog-author-profile-for-buddypress plugin creates a Widget you can place in a widget area – my theme has an ‘after post widget’ area

    author widget pulls extended profile data fields. nice.

    #304449
    #304444
    Venutius
    Moderator

    If you go to Users>>Profile Fields and hover your mouse above the edit button for the field you cna see the field id in the url. it sounds like the id is 2 but could you confirm?

    #304443
    joshreid
    Participant

    Oh sorry I thought I added the backticks.
    Yes sorry for the changes Im just trying to work out the problem.
    I will explain better what I am trying to do.
    On my website when a member fills out there profile or edits it one of the fields is a description field.

    Then when someone goes to the members page, the members profiles show up with the profile pic (and you can scroll down the page getting a quick look at the profiles) but there is no except about the profile. I want that description field to show up individually for each members description.

    No I can’t confirm the field id, I tried looking for it but can’t find it. If I do a page inspect I can see field_2 but alot of other text after it. But I am not sure I am right about that, I was just going of the field name.

    #304273
    neilgee
    Participant

    Hi,

    Anyone have any solutions to add video embeds to the profile fields in particular from YouTube and Vimeo?

    Thanks

    #304244
    Venutius
    Moderator

    By the looks of things you are trying to change the colours of the profile fields, so something like:

    .profile-fields {
        color: blue;
    }

    Should work

    However something more specific is sometimes required, such as:

    #buddypress table.profile-fields {
        color: blue;
    }
    #304016

    In reply to: user profile fields

    Venutius
    Moderator

    If you’ve removed them from the profile group then I’d check to see they have been removed from the database it’s the bp_xprolfile_fields db you are looking for.

    #303976

    In reply to: user profile fields

    Venutius
    Moderator

    It’s not clear what you are asking here, rooms? Are you talking about profile fields? did you remove some from the Users>>Profile Fields page for the Base field group but they still show up in registration, or something else?

    #303973
    amir313
    Participant

    hello I’m on the latest version of wordpress and on the site when I delete the user’s rooms it still remains on the registration pages

    #303735
    mspiggie
    Participant

    How to create professional looking profile search forms to search members directory. At the moment I use BP Profile search but it looks really horrible with the fields going everywhere and it doesn’t even return the correct search eg I ticked search females but it returns both males and females

    #303685
    chris19731973
    Participant

    {RESOLVED} : How to REMOVE “This field can be seen by:” ?

    In the folder of the Theme, add the code below at the end of the file called style.css :
    For me in Localhost : C:\xampp\htdocs\buddypressdivi2\wp-content\themes\Divi\Style.css

    .field-visibility-settings-toggle{display:none!important;}

    In Users/Profile Fields of WP-Admin, set the fields like below :
    Visibility = Everyone
    and Allow members to override

    For information, the visibility of “This field can be seen by: All Members/Everyone/…” will be removed in both the Registration page & Edit Profile page … except for the fields (Required) Name …

    It’s my first time on this BP Forum, please how to add “RESOLVED” ?
    Thank you …

    #303675
    chris19731973
    Participant

    ` <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>

    <div<?php bp_field_css_class( ‘editfield’ ); ?>>
    <fieldset>

    <?php
    $field_type = bp_xprofile_create_field_type( bp_get_the_profile_field_type() );
    $field_type->edit_field_html();

    /**
    * Fires before the display of the visibility options for xprofile fields.
    *
    * @since 1.7.0
    */
    do_action( ‘bp_custom_profile_edit_fields_pre_visibility’ );

    <?php

    /**
    * Fires after the display of the visibility options for xprofile fields.
    *
    * @since 1.1.0
    */
    do_action( ‘bp_custom_profile_edit_fields’ ); ?>

    </fieldset>
    </div>

    <?php endwhile; ?>`

    #303674
    chris19731973
    Participant

    Now, I can read the message below when visitors choose “Register” :

    Create an Account
    Parse error: syntax error, unexpected ‘<‘ in C:\xampp\htdocs\buddypressdivi2\wp-content\themes\Divi\buddypress\members\register.php on line 189

    I removed the “Visibility” codes and the new code of the register.php file is :

    Line 183 : */
    Line 184 : do_action( ‘bp_custom_profile_edit_fields_pre_visibility’ );
    Line 185 :
    Line 186 :
    Line 187 :
    Line 188 : <?php
    Line 189 :
    Line 190 :
    Line 191 : /**

    #303673
    zoleest
    Participant

    Still not worked, but I found out a not too elegant solution. As far as I understand there is an order how the hooks run. There is a hook in class-buddypress.php add_action( 'bp_core_signup_user', array( $this, 'subscribe_from_form' ), 10, 4 ); so I added to my hooks 11, 4 so this is my code now:

    function xprofile_sync_wp_profile2( $user_id = 0 ) {	
    	
    	
    	
    	// Bail if profile syncing is disabled
    	if ( bp_disable_profile_sync() ) {
    		return true;
    	}
    
    	if ( empty( $user_id ) ) {
    		$user_id = bp_loggedin_user_id();
    	}
    
    	if ( empty( $user_id ) ) {
    		return false;
    	}
        
        global $wpdb;
    	
        // Get name from x-fields
        $display_name = xprofile_get_field_data('Név',$user_id );
        
    
        $wpdb->query( $wpdb->prepare( "UPDATE wphu_users SET display_name = '%s' WHERE ID = %d", $display_name,  $user_id ) );
    	
    	
    }
    add_action( 'xprofile_updated_profile', 'xprofile_sync_wp_profile2', 11, 4);
    add_action( 'bp_core_signup_user',      'xprofile_sync_wp_profile2', 11, 4);
    add_action( 'bp_core_activated_user',   'xprofile_sync_wp_profile2', 11, 4);

    And fortunately it works now 🙂 I don’t know if this is a correct way, but work, so I’m okay with it.

    #303669
    Venutius
    Moderator

    Then you can overload the edit.php and ‘register.php` files and remove that attribute.

    get ftp access to your site and location wp-content/plugins/buddypress/bp-templates/bp-legacy/members/register.php
    wp-content/plugins/buddypress/bp-templates/bp-legacy/members/single/profile/edit.php

    in these files locate and remove:

    				<?php if ( bp_current_user_can( 'bp_xprofile_change_field_visibility' ) ) : ?>
    					<p class="field-visibility-settings-toggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>"><span id="<?php bp_the_profile_field_input_name(); ?>-2">
    						<?php
    						printf(
    							__( 'This field can be seen by: %s', 'buddypress' ),
    							'<span class="current-visibility-level">' . bp_get_the_profile_field_visibility_level_label() . '</span>'
    						);
    						?>
    						</span>
    						<button type="button" class="visibility-toggle-link" aria-describedby="<?php bp_the_profile_field_input_name(); ?>-2" aria-expanded="false"><?php _ex( 'Change', 'Change profile field visibility level', 'buddypress' ); ?></button>
    					</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>
    						<button type="button" class="field-visibility-settings-close"><?php _e( 'Close', 'buddypress' ) ?></button>
    					</div>
    				<?php else : ?>
    					<div 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>'
    						);
    						?>
    					</div>
    				<?php endif ?>

    Then place these modified files in `wp-content/themes/your-child-theme/buddypress/members/register.php’ and
    `wp-content/themes/your-child-theme/buddypress/members/single/profile/edit.php’

    zoleest
    Participant

    Hey,

    I had a problem with a code which I customized from a forum topic, but absolutely have no idea why it doesn’t work.
    I have a query in the code to upgrade the display name for the user on registration, activation, and x-profile edit. Unfortunately it only works on profile editing. The strange thing is that I put another query (a simple INSERT INTO query, which insert the user ID and the new display name into a test table) to test if my code run, and that query runs both registration and activation too. I work with 5.1.1 WordPress version and BuddyPress version 4.2.0. Profile sync is also enabled.

    Here is my code:

    function xprofile_sync_wp_profile2( $user_id = 0 ) {
    	
    
    // Bail if profile syncing is disabled
    	if ( bp_disable_profile_sync() ) {
    		return true;
    	}
    
    	if ( empty( $user_id ) ) {
    		$user_id = bp_loggedin_user_id();
    	}
    
    	if ( empty( $user_id ) ) {
    		return false;
    	}
    
    	global $wpdb;
      
        
        // Get name from x-fields
        $display_name = xprofile_get_field_data('Név',$user_id );
        
    	//Test query to detect if the function run, works every time
    	$wpdb->query("INSERT INTO test (id, name) VALUES ('".$user_id."', '".$display_name."');");
    
            //Query to update display_name, works only on x-profile edit
    	$wpdb->query( $wpdb->prepare( "UPDATE wphu_users SET display_name = '%s' WHERE ID = %d", $display_name,  $user_id ) );
    	
    }
    add_action( 'xprofile_updated_profile', 'xprofile_sync_wp_profile2' );
    add_action( 'bp_core_signup_user',      'xprofile_sync_wp_profile2' );
    add_action( 'bp_core_activated_user',   'xprofile_sync_wp_profile2' );

    Thanks for your help & replies,
    David

    #303549
    airsid
    Participant

    Hello,
    Please find attached my plugins/buddypress/bp-themes/bp-default/registration/register.php content

    <?php get_header( 'buddypress' ); ?>
    
    	<div id="content">
    		<div class="padder">
    
    		<?php do_action( 'bp_before_register_page' ); ?>
    
    		<div class="page" id="register-page">
    
    			<form action="" name="signup_form" id="signup_form" class="standard-form" 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() ) : ?>
    
    				<h2><?php _e( 'Create an Account', 'buddypress' ); ?></h2>
    
    				<?php do_action( 'template_notices' ); ?>
    
    				<p><?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>
    
    				<?php do_action( 'bp_before_account_details_fields' ); ?>
    
    				<div class="register-section" id="basic-details-section">
    
    					<?php /***** Basic Account Details ******/ ?>
    
    					<h4><?php _e( 'Account Details', 'buddypress' ); ?></h4>
    
    					<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="" />
    
    					<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 do_action( 'bp_account_details_fields' ); ?>
    
    				</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" id="profile-details-section">
    
    						<h4><?php _e( 'Profile Details', 'buddypress' ); ?></h4>
    
    						<?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="editfield">
    
    								<?php if ( 'textbox' == bp_get_the_profile_field_type() ) : ?>
    
    									<label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label>
    									<?php do_action( bp_get_the_profile_field_errors_action() ); ?>
    									<input type="text" name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>" value="<?php bp_the_profile_field_edit_value(); ?>" />
    
    								<?php endif; ?>
    
    								<?php if ( 'textarea' == bp_get_the_profile_field_type() ) : ?>
    
    									<label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label>
    									<?php do_action( bp_get_the_profile_field_errors_action() ); ?>
    									<textarea rows="5" cols="40" name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_edit_value(); ?></textarea>
    
    								<?php endif; ?>
    
    								<?php if ( 'selectbox' == bp_get_the_profile_field_type() ) : ?>
    
    									<label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label>
    									<?php do_action( bp_get_the_profile_field_errors_action() ); ?>
    									<select name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>">
    										<?php bp_the_profile_field_options(); ?>
    									</select>
    
    								<?php endif; ?>
    
    								<?php if ( 'multiselectbox' == bp_get_the_profile_field_type() ) : ?>
    
    									<label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label>
    									<?php do_action( bp_get_the_profile_field_errors_action() ); ?>
    									<select name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>" multiple="multiple">
    										<?php bp_the_profile_field_options(); ?>
    									</select>
    
    								<?php endif; ?>
    
    								<?php if ( 'radio' == bp_get_the_profile_field_type() ) : ?>
    
    									<div class="radio">
    										<span class="label"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></span>
    
    										<?php do_action( bp_get_the_profile_field_errors_action() ); ?>
    										<?php bp_the_profile_field_options(); ?>
    
    										<?php if ( !bp_get_the_profile_field_is_required() ) : ?>
    											<a class="clear-value" href="javascript:clear( '<?php bp_the_profile_field_input_name(); ?>' );"><?php _e( 'Clear', 'buddypress' ); ?></a>
    										<?php endif; ?>
    									</div>
    
    								<?php endif; ?>
    
    								<?php if ( 'checkbox' == bp_get_the_profile_field_type() ) : ?>
    
    									<div class="checkbox">
    										<span class="label"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></span>
    
    										<?php do_action( bp_get_the_profile_field_errors_action() ); ?>
    										<?php bp_the_profile_field_options(); ?>
    									</div>
    
    								<?php endif; ?>
    
    								<?php if ( 'datebox' == bp_get_the_profile_field_type() ) : ?>
    
    									<div class="datebox">
    										<label for="<?php bp_the_profile_field_input_name(); ?>_day"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label>
    										<?php do_action( bp_get_the_profile_field_errors_action() ); ?>
    
    										<select name="<?php bp_the_profile_field_input_name(); ?>_day" id="<?php bp_the_profile_field_input_name(); ?>_day">
    											<?php bp_the_profile_field_options( 'type=day' ); ?>
    										</select>
    
    										<select name="<?php bp_the_profile_field_input_name(); ?>_month" id="<?php bp_the_profile_field_input_name(); ?>_month">
    											<?php bp_the_profile_field_options( 'type=month' ); ?>
    										</select>
    
    										<select name="<?php bp_the_profile_field_input_name(); ?>_year" id="<?php bp_the_profile_field_input_name(); ?>_year">
    											<?php bp_the_profile_field_options( 'type=year' ); ?>
    										</select>
    									</div>
    
    								<?php endif; ?>
    
    								<?php if ( 'url' == bp_get_the_profile_field_type() ) : ?>
    
    									<label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label>
    									<input type="text" name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>" value="<?php bp_the_profile_field_edit_value(); ?>" <?php if ( bp_get_the_profile_field_is_required() ) : ?>aria-required="true"<?php endif; ?>/>
    
    								<?php endif; ?>
    
    								<?php do_action( 'bp_custom_profile_edit_fields_pre_visibility' ); ?>
    
    								<?php if ( bp_current_user_can( 'bp_xprofile_change_field_visibility' ) ) : ?>
    									<p class="field-visibility-settings-toggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>">
    										<?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?> <a href="#" class="visibility-toggle-link"><?php _ex( 'Change', 'Change profile field visibility level', 'buddypress' ); ?></a>
    									</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>
    										<a class="field-visibility-settings-close" href="#"><?php _e( 'Close', 'buddypress' ) ?></a>
    
    									</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: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?>
    									</p>
    								<?php endif ?>
    
    								<?php do_action( 'bp_custom_profile_edit_fields' ); ?>
    
    								<p class="description"><?php bp_the_profile_field_description(); ?></p>
    
    							</div>
    
    						<?php endwhile; ?>
    
    						<input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="<?php bp_the_profile_group_field_ids(); ?>" />
    
    						<?php endwhile; endif; endif; ?>
    
    						<?php do_action( 'bp_signup_profile_fields' ); ?>
    
    					</div><!-- #profile-details-section -->
    
    					<?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><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 home_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>
    
    							<?php do_action( 'bp_blog_details_fields' ); ?>
    
    						</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" name="signup_submit" id="signup_submit" value="<?php esc_attr_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><?php _e( 'Check Your Email To Activate Your Account!', 'buddypress' ); ?></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><!-- .padder -->
    	</div><!-- #content -->
    
    	<?php get_sidebar( 'buddypress' ); ?>
    
    	<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' ).click( function() {
    				jQuery('div#blog-details').fadeOut().toggle();
    			});
    		});
    	</script>
    
    <?php get_footer( 'buddypress' ); ?>
Viewing 25 results - 476 through 500 (of 4,122 total)
Skip to toolbar