Search Results for 'profile fields'
-
Search Results
-
First off, I’m new to WordPress/BuddyPress and PHP. So I’ve been teaching myself as I go.
How do I get spaces to be added in between the text for the Extended User Profile fields that I’ve included on the Members Directory page?
I’ve modified the members-loop.php file to include the following line of code, but it results in the text for the Extended User Profile fields on the Members Directory page being displayed immediately next to each other (but without any spacing in between the text for those fields). What syntax do I need to use to get spaces in between the below-referenced fields Test A, Test B, Test C?
Currently, it’s displaying on the Members Directory page like this: TestATestBTestC
But I want it to display like this: TestA TestB TestC
Here’s my code:
echo bp_member_profile_data('field=TestA'); bp_member_profile_data('field=TestB'); bp_member_profile_data('field=TestC');Topic: Profile Fields adding html
I want to put a link on my registration page under Profile Fields like this
<!–
< a href=”http://www.websitehere.com” target=”_blank”>RulesI tested the html I know it works fine but when I click save and come back the html lookes like this
< a href=”http://www.websitehere.com”>Rules
What is causing this? I am using “Buddypress Xprofile Custom Fields” but it does it even if I don’t chose and Xprofile field type. Thanks for the help! I am new here!Howdy people.
I have created some custome profile fields but I have some problems.
How could I deny the same value in a custom fields for different users? Maybe with a error message for the user?
E.g. I want that in the custom field “Licence Plate” each plaate is different.Then I could reject in my custom profile fields special characters or space in that?
Regards
Topic: BuddyPress Logic
I thought I would post this question here with further content in order to give some effort of contribution. Everyone should be grateful to all those contributing develop & support to the BuddyPress project.
I love the BuddyPress project and continuously trying to learn how to best use it in the future especially just learning some php & barely html/css. But I really putting effort in learning the Logic of the components–I guess I someone of Analysis Paralyze.
I mention on the http://bpdevel.wordpress.com/2014/02/12/template-team-update-for-this-week/ at of curosity of the Logic of Members. I put much thought in this and found some great videos from WordCamp, MeetUps and/or others how to use /extend BuddyPress.
For me Members = People –> Person Profile
Single Member or Person = Relational Fields Grouped i.e people, places, things/interest
Groups (I believe should be first thought) in order to map profile fields = Collection of People(Members)Just thought I would ask…
I want to alter the way the items in a checkbox profile field are displayed.
Hypothetical profile field:
Favorite fruits:
[]Apples
[]Bananas
[]GrapesHow it is currently displayed:
Favorite fruits: Apples, Bananas, GrapesHow I would like it displayed:
Favorite fruits:- Apples
- Bananas
- Grapes
It would be great to have the field values returned as
<li></li>items if at all possible.Any help would be appreciated!
Sorry, I feel such a newb asking this, but it’s currently defeating me, so…
I have an “About you” profile field which has the format Multi-Line Text Area.
If the user writes a little about themselves and includes line-breaks, it looks as expected in the database table.
Any variation of BuddyPress functions I use to retrieve the field for display in a template (e.g.
$about = xprofile_get_field_data( 14, $user_id );) gives the same result when echoed.The raw source HTML has the linebreaks, but the whitespace including linebreaks is of course ignored when rendered on-screen.
I know there are all kinds of text escaping functions and presumably I should be using one of them, but I don’t know where to start if anyone has any tips (or links to good reference material or tutorials).
Thanks
Hello guys,
So, my users need to fill in their extended profiles for “type of study” and the “group” their in. (these are drop down menu’s) I want the awnsers they’ll give, to be automatically filled in at the categories panel when they make a new post.
By doing this, i prevent them from choosing the wrong categorie for their posts. I want it to go automatically so i can remove the panel for choosing the categorie when they’re making a new post.
As a result, when students search on a specific “study” or “group”, the right post will be shown.
I hope you guys, have a solution for this.
Thank you.
Remy
Wordpress version 3.8.1
Buddypress version 1.9.2
http://www.wdka-online.nlTopic: Buddy Press Multi Network
Hello all,
I am trying to set up a WordPress & Buddypress Network;
http://www.mysite1.com
http://www.mysite2.com
http://www.mysite3.com
etc.where mysite1.com will represent the main network and selectively display content from the various other sites – the main idea is that the multi network will share its user base (only have to sign up at 1 of the sites) while they will have a unique social network and a unique user profile with a unique set of profile fields at each of the sites.
* I have set up WordPress Multisite and all is well
* I have set up WP Multi Network and all is well
* I have set up BuddyPress and all is well
* I have set up BP Multi Network – and I really don’t know…
Plugin is installed in /wp-content/mu-plugins/ as the instructions
say. I have enabled it (and BP itself) on the main network BEFORE creating any other network. All seems to be fine. I’ve tried both
network and per site enabling of BP and BP Multi Network on new networks.If I enable only BP on the secondary network – it will copy all
of the profile fields and field groups from the main network..If I enable both BP and BP Multi Network on the secondary network I seem to be allowed to create new / unique profile fields and groups but it won’t allow me to save citing “error saving the …”.
So – did I misunderstand the idea of WP + BP Multi Network and are
users required to have the same profile on every network (which
is not what I want) or did I do something wrong, or is there
something wrong with the plugins…?I swear this was working until very recently and I just noticed it no longer is and can’t work out why…
I use a customised registration form.
In my functions.php I have
add_filter( 'bp_core_signup_send_activation_key', '__return_false' );and
add_action( 'bp_core_signup_user', 'my_user_signup', 5, 3 ); function my_user_signup( $user_id, $user_login, $user_password ) { global $wpdb; // WE SKIP BP ACTIVATION EMAIL, SO LET'S INCLUDE STEPS FROM bp_core_activate_signup HERE // Tell admin we have a new user wp_new_user_notification( $user_id ); // Activate user $wpdb->query( $wpdb->prepare( "UPDATE {$wpdb->users} SET user_status = 0 WHERE ID = %d", $user_id ) ); // Remove the activation key meta delete_user_meta( $user_id, 'activation_key' ); // ...Bunch of other stuff to do with populating extra profile fields... // Now sign them on $signon = wp_signon( array('user_login' => $user_login, 'user_password' => $user_password, 'remember' => false) ); //Redirect if ( is_wp_error($signon) ) { error_log( "auto-login error for user " . $user_id . " : " . $signon->get_error_message() ); } else { wp_redirect( home_url('some-page') ); exit; }Now, in every case, it is logging the error “Your account has not been activated. Check your email for the activation link” and so failing to log them in and redirect.
Any ideas?
I see that when I go to edit my profile I have all the custom fields I added to the profile but the profile details view only has the standard wordpress/buddypress fields (first name, last name, email address, etc). How can I add the values to the page?
Topic: Activate WP Users in BP
Hi
I have a membership site that I’ve added BP to, none of the wp user profiles are showing up in BP. I’m also using the Buddypress Xprofile Custom Fields Type plugin with profile fields which are not being pulled in when I view the user profiles. I’ve also tried the BuddyPress Pending Activations plugin but none of the wp users are found. Can anyone advise?Topic: Registration info problem
Hello,
I am buddypress newcomer and I have a problem with setting my buddypress registration as I want it to look like.
1. I want to insert my welcome massage in my language an something different that is now – “Create an Account – 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.” How can I change that?
2. The Profile Details fields – I have like 15 of them can I break a page so it isnt so long? Like 2 or 3 pages?
3. I want to change field descriptions into my language. How?
4. I would like to have a member base of my members on my mail. I would like ALL REGISTRATION INFO IS SENT TO MY MAIL when someone registrate (public, the info that friends see, member see, even the “only me” fields). When someone register now i only get username an mail. Like a classic form thats sends all info that is inserted. I want some fields to be specificly private info – only me and the registrator.
CAN ANYONE HELP PLEASE?!!
Hi, I was adjusting the registration.php file. Just changing the text eg. “Account Details/Profile Details” to “Create an Account/Create a Profile”
When I uploaded the page back, the layout is completely messed up.
http://unicefchallenge.com/register/
I’M GOING CRAZY, ANY ADVISE ASAP?Thank
`<?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( ‘Please create the username and login information you would like to use on the Challenge site.’, ‘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( ‘Create an Account’, ‘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( ‘Create a Profile’, ‘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() ) : ?>
‘ );”><?php _e( ‘Clear’, ‘buddypress’ ); ?>
<?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() ) ?> <?php _ex( ‘Change’, ‘Change profile field visibility level’, ‘buddypress’ ); ?>
</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: <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 _e( ‘Submit’, ‘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’ ); ?>’
Hi,
I would like to move both email address fields from Create a Profile to Create an Account.
http://www.unicefchallenge.com/register/How can I change this?
I’m new to BuddyPress and wanted to know if there is a way to add conditional fields. For example, I’ve created a new Profile field called Country, based on the Country selected, I wanted the next field to display all the Cities for that Country. I’m using the latest version of BP which is Version 4.1.2.8.
Is there an easy way to do this?
Thanks