Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 2,576 through 2,600 (of 5,755 total)
  • Author
    Search Results
  • #171932
    serie3369
    Participant

    I would love to know this too. I cannot see my profile field label. Its white on white. How do I change the text color of that?

    #171921
    cwjordan
    Participant

    I am interested in being able to query when certain fields, but not others, in the extended profiles were updated. For example I would have an address field, and I’d be interested if that had been updated recently, but would not care about how recently other fields had been changed.

    I noticed that there is already a “last_updated” column in the wp_bp_xprofile_fields table, so I thought I would just need to query that. However when I test how that behaves by clicking on “edit my profile” it looks like if I change one field in the extended profile the “last_updated” field is updated on all the fields for that user, even the ones I did not change. Does anyone have any idea why that is, or thoughts on a better way to go about doing what I want to do?

    This is on buddypress 1.8.1 (installed from Commons in a Box 1.0.5.1).

    #171902
    applegateian
    Participant

    Thanks for the advice @danbp – I have given this a go but really can’t get the code correct.

    Sorry to ask again, but with my four check boxes being as follows, can you let me know what to put in that snipped of code for functions.php? These are the checkboxes I have with the title Budget:

    • £0-£100k
    • £100k-£500k
    • £500k-£2m
    • £2m+

    Thanks,

    Ian

    Alan Niemies
    Participant

    Hello guys.

    I’m today having another issue on one of my BuddyPress developments: I need to add links on my Field Descriptions at Profile Fields for them to open on a new tab. This is a way for people to read some information before keep going with the registration form.

    I can create the links, but unfortunately BuddyPress removes the target=”_blank” (as well as manipulates other HTML information) on the field after we save it.

    Do you guys know where BuddyPress handles this so I can change it or a way to achieve a target_blank on Field Description?

    Thanks a lot!

    #171890
    mariusanhalt
    Participant

    Hi

    As learned, I use

    bp_member_profile_data(‘field=Profession’)

    to add custom fields to the profile, and it works like a charm,
    but it works as a link to the profil, and that is unwanted because the profilename already does that, and I don’t need two (or more) links to the same profile in the same box.

    So how can I show the custom field information in the profile as plain text??

    Thanks
    Marius

    #171860
    Hugo Ashmore
    Participant

    @haykayltduk check through tickets if you haven’t as there was one a while back on issues with setting default select options or something to do with that aspect of profile fields.

    #171839
    martinbeaulne
    Participant

    Hi there.

    I am using a tabbed registration page to show a custom group of profile fields upon account creation. Everything works well: the tabbed browsing, the display of the fields, etc.

    The problem is, when I click submit, it only submits the second tab ( the last group of fields ).

    In other words. There are the basic infos about the account, at left, then, at right, the two tabs ( extended profile and custom group ). When I click submit, it only submits the basic account fields and the custom group field. Not the extended profile fields ( on the first tab ).

    I’m using the latest versions.

    Here is the exemple: http://martinbeaulne.com/kinocontact/register/

    Now, here is the code of register.php:

    
    
    <html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>Basic - Accessible Tabs Example</title>
        <meta name="author" content="Dirk Ginader">
        <script type="text/javascript">document.documentElement.className += " js";</script>
        <link rel="stylesheet" href="http://www.martinbeaulne.com/kinocontact/wp-content/themes/graphene/buddypress/members/slidingdoors/simple-sliding-doors.css" type="text/css" media="screen">
        <script src="http://www.martinbeaulne.com/kinocontact/wp-content/themes/graphene/buddypress/members/js/jquery-1.9.1.js" type="text/javascript" charset="utf-8"></script>
        <script src="http://www.martinbeaulne.com/kinocontact/wp-content/themes/graphene/buddypress/members/js/jquery.tabs.js" type="text/javascript" charset="utf-8"></script>
        <script type="text/javascript">
    
        $(document).ready(function(){
            $(".tabs").accessibleTabs({
                tabhead:'h2',
                fx:"fadeIn"
            });
        });
    
        </script>    
    </head>
    <body>
    <div id="buddypress">
    
    	<?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() ) : ?>
    
    			<?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="" />
    
    			</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">
    
    					
    				<div class="tabs"> <!-- Le div des tabs -->
    				<h2>Extended profile</h2>
    				<div class="tabbody"> <!-- Le div de la première 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( 'profile_group_id=1' ) ) : 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 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; ?>
    				</div> <!-- Le div de la première section -->
    				<h2>Custom group</h2>
    				<div class="tabbody"> <!-- Le div de la deuxième 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( 'profile_group_id=4' ) ) : 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 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; ?>
    			</div> <!-- Le div de la deuxième section -->
    			</div> <!-- le div des tabs -->
    
    			</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>
    
    					</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 _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() ) : ?>
    
    			<?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><!-- #buddypress -->
    
        <script type="text/javascript">
        var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
        document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
        </script>
        <script type="text/javascript">
        var pageTracker = _gat._getTracker("UA-299719-2");
        pageTracker._initData();
        pageTracker._trackPageview();
        </script>
    </body>
    </html>
    

    Thanks for your help…

    #171782
    Henry
    Member

    found it bp_get_profile_field_data

    #171779
    Henry
    Member

    Anyone know how to disallow HTML tags in profile fields?

    Take blog comments – I can disable HTML tags like this: add_filter('comment_text', 'wp_filter_nohtml_kses');

    I just need to know how to disable HTML tags for BP profile fields.

    #171762
    ranebo
    Participant

    No link to the site since the functionality is not publicly accessible.

    I have BP 1.8.1 and WP 3.6.1 installed and am using User Access Manager (v 1.2.4.3, Alexander Schneider) to create groups of users who have permission to view the main content of my website, the pages of which are hidden from menu view on my main page via use of Exclude or include Pages, Tags, Posts & Categories (v 1.0.7, mayerz).

    I have created my users’ accounts manually and want to continue with this — I do not want to provide a registration functionality.

    I gather that the Extended Profiles component allows for new users to enter custom profile info as they are registering. Since my users won’t be registering themselves, will these custom fields be present in the regular WP user profiles for them to update? And will I need to do anything to turn off the registration functionality?

    Thanks for any thoughts and guidance.

    #171755
    Remco Beugels
    Participant

    Thanks guys. bp_xprofile_get_hidden_fields_for_user() was the thing that I needed! This is my code:

    <?php $hidden_fields = bp_xprofile_get_hidden_fields_for_user(); ?>
    <?php if(xprofile_get_field_data('field_name') && !in_array(xprofile_get_field_id_from_name('field_name'), $hidden_fields)) : ?>
    <p><?php echo xprofile_get_field_data ('field_name'); ?></p>
    <?php endif; ?>
    #171735
    shanebp
    Moderator

    @r-a-y
    Any reason not to use bp_xprofile_get_hidden_fields_for_user() ?

    #171667
    Eric J T
    Participant

    Hi, I had on install with the latest wp bp bb etc at hostgator but started getting fatal errors, including
    Fatal error: Call to a member function register() on a non-object in /home2/eric2188/public_html/globalpipesanddrums.com/wp-includes/widgets.php on line 431
    and
    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'bpge_js_localize' was given in /home2/eric2188/public_html/globalpipesanddrums.com/wp-includes/plugin.php on line 406
    then I got
    Fatal error: Call to undefined function add_action() in /home2/eric2188/public_html/globalpipesanddrums.com/wp-includes/functions.php on line 100
    Well, hostgator page loads were ten seconds or so, and I was considering moving to godaddy, so I set up an account there and installed the latest wp 3.6.1 and just bp and my theme, then started adding fields for member profiles. I updated the name on mine and got the same error
    Fatal error: Call to undefined function add_action() in /home2/eric2188/public_html/globalpipesanddrums.com/wp-includes/functions.php on line 100
    and now I can’t get into anything, front or back end. Just get that error.

    I’m going to have to reinstall completely to get this working. Please advise as to how to prevent this problem. Thanks.

    AmareshSingh
    Participant


    I want to change the Color of the Profile Fields displayed in the white color to a different black color as My Themes Color doesn’t makes it visible.

    #171628
    thisisbbc
    Participant

    Hi,

    WP v3.6.1
    BP v1.8.1
    Link : http://www.musicethic.com/members/BBC/profile/

    I activated the BuddyPress and WordPress profile syncing in BP settings but the WordPress fields are still not displayed. How can I add the WP hook to Buddypress profile page and edit profile page?

    Additional informations :

    8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones?

    All In One SEO Pack
    Version 2.0.3.1 | By Michael Torbert

    Antispam Bee
    Version 2.5.9 | By Sergej Müller

    AntiVirus
    Version 1.3.4 | By Sergej Müller

    bbPress
    Version 2.4 | By The bbPress Community

    Better WordPress Minify
    Version 1.2.2 | By Khang Minh

    Broken Link Checker
    Version 1.8.3 | By Janis Elsts

    BuddyPress
    Version 1.8.1 | By The BuddyPress Community

    Contact Form 7
    Version 3.5.2 | By Takayuki Miyoshi

    Duplicate Post
    Version 2.4.1 | By Enrico Battocchi

    Google Analyticator
    Version 6.4.5 | By Video User Manuals Pty Ltd

    NGFB Open Graph+ Pro
    Version 6.8 | By Jean-Sebastien Morisset

    Revolution Slider
    Version 3.0.7 | By ThemePunch

    Social Login for wordpress
    Version 4.8 | By LoginRadius Team

    TinyMCE Advanced
    Version 3.5.8 | By Andrew Ozz

    W3 Total Cache
    Version 0.9.3 | By Frederick Townes

    Widget Importer & Exporter
    Version 1.0 | By Steven Gliebe

    WordPress Social Share Buttons
    Version 1.1.3 | By Lee Chestnutt

    WP-Memory-Usage
    Version 1.2.1 | By Alex Rabe

    WP Sliding Login | Register Panel
    Version 2.3 | By Kyle Powning @ The Factory

    WP Smush.it
    Version 1.6.5.3 | By WPMU DEV

    9. Are you using the standard BuddyPress themes or customized themes?

    I’m using another theme callet BulletPress from HB-Themes

    10. Have you modified the core files in any way?

    I haven’t modified any BP related files, but I do use a child theme with a custom functions.php

    11. Do you have any custom functions in bp-custom.php?

    No

    12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in?

    Our theme came with bbPress, see above for version.

    14. Which company provides your hosting?

    PlanetHoster

    #171596
    danbp
    Participant

    Try first and ask after when you receive some help ! 🙄

    in the example, simply replace Amount by Budget and give it a try

    The function checks for “Budget” and the “foreach” looks for the checked box. So you will finally only see the checked box value. This data can be styled by using this:

    div.checkit span {your css stuff}

    #171591
    applegateian
    Participant

    Hi @chouf1

    Thanks for this, but I don’t really follow. The moneytizer example has really confused me, can you let me know how I could do this if the title of my field is Budget and the four checkboxes are

    • £0-£100k
    • £100k-£500k
    • £500k-£2m
    • £2m+

    thanks,

    Ian

    #171580
    rchiriac
    Participant

    I re-added this in the edit.php inside the while ( bp_profile_fields() )
    do_action( 'xprofile_updated_profile', bp_displayed_user_id(), bp_get_the_profile_field_id(), trim(strip_tags(bp_get_the_profile_field_value())) );

    Now… Do you know what is the hook do to upon user registration?

    ScottCodes
    Participant

    Are there any plugins that allow users to register in multiple steps where each is refreshed on the page such as through Ajax?

    For instance, the 1st step might ask only for an email, username and password, then when you click “Continue” the screen refreshes (maybe through Ajax) and you get step 2 that asks for custom profile fields like age, hometown, education.

    Ideally we’re trying to plant this on a homepage so that the user doesn’t leave that page until their 2 or 3 step registration is complete.

    #171505
    rchiriac
    Participant

    Hello,

    Is it possible to get the values of the input fields from the members’ profile Edit Page?

    I found the HTML under mythemename/members/single/profile/edit.php but whenever the user hits “Save changes” I would like to read all the POST values (First name, Last name, City, Newsletter etc) so I can send them to an external API I use.

    So where’s the function that UPDATEs these values to the database?
    Thanks.

    #171393
    danbp
    Participant

    @applegateian

    You create a new field on profile (ie. title=Amount)
    This field is a checkbox type field
    You have 4 items to check, so you need to create 4 checkboxes.

    The field name called by the function correspond to the title you give to your new field. So you actually have 1 field name and 4 checkbox values.

    The example above will output the checked value by the user on the member profile header (bp_before_member_header_meta)

    function my_moneytizer() {
    if ( $money = xprofile_get_field_data( 'Amount', bp_get_member_user_id() ) ) :
        foreach ( $money as $mon ) { 
    
    	echo '<br/><div class="checkit">';
                echo '<span>Earned today:&nbsp;</span>';
    		echo $data;
    	echo '</div>';
    	}
    endif;
    }
    add_filter ( 'bp_before_member_header_meta', 'my_moneytizer' );
    #171381
    applegateian
    Participant

    Thanks @danbp – I’m not entirely sure how to create that filter function, can you expand on that?

    The four unique names are:

    • £0-£100k
    • £100k-£500k
    • £500k-£2m
    • £2m+

    thanks,

    Ian

    #171277
    Squirrel
    Participant

    My portal theme only lets admin / editor users view all members profiles or other users view other profiles if they are friends. If you want more info on how I did this let me know.

    #171263

    In reply to: New profile fields!

    bp-help
    Participant

    @budskab
    The code I provided calls the current user dynamically if that is what you are wondering. Even thought it is one link it will take each user to their edit profile field group you created. Feel free to experiment around with it. Try these as well:

    
    <a href="<?php global $current_user; echo home_url() . '/' . $current_user->user_login . '/profile/edit/group/1/'; ?>">Edit My Profile</a></div>
    

    Or:

    
    if ( is_user_logged_in() ) {
    <a href="<?php echo bp_loggedin_user_domain(); ?>">Profile</a>//link to users profile
    <a href="<?php global $current_user; echo home_url() . '/members/' . $current_user->user_login . '/friends/'; ?>">Friends</a>//link to users friends 
    <a href="<?php global $current_user; echo home_url() . '/members/' . $current_user->user_login . '/messages/'; ?>">Messages</a>//link to users messages
    }
    

    As a final thought if you add those links I would wrap them in a conditional to check if the user is logged in like the links just above.

    #171253

    In reply to: New profile fields!

    budskab
    Participant

    Adding an image would be easy enough yes..

    Thanks for the line.. I’m still new to PHP, so this is the hardest part right now 🙂 But the line above seems logic… could i then just change the ‘profile/edit/group/2/’ part to other profile URLS? Sure would be cool. Our users are most likely not that techie and we desperately need to make it easy filling out their profiles 🙂

    Can I change the standard registration fields in any way?

Viewing 25 results - 2,576 through 2,600 (of 5,755 total)
Skip to toolbar