Search Results for 'profile fields'
-
AuthorSearch Results
-
April 13, 2019 at 8:56 pm #304774
In reply to: Profile fields not visible to everyone/other members
cj74
ParticipantThanks 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.
April 13, 2019 at 6:37 pm #304768In reply to: Profile fields not visible to everyone/other members
Venutius
ModeratorAh 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.
April 13, 2019 at 2:24 pm #304743In reply to: Profile fields not visible to everyone/other members
Venutius
ModeratorOne 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?
April 11, 2019 at 8:24 am #304647Topic: How to sort members list by xprofile value?
in forum How-to & Troubleshootingcorporateslave
Participantif ( 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.
April 11, 2019 at 2:08 am #304638Topic: How to get the default settings to work
in forum How-to & TroubleshootingChristineZ
ParticipantHelloooo 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.0I 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 🙂April 8, 2019 at 1:05 pm #304513In reply to: Author box as widget in side bar
wasanajones
Participantthanks @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.
April 6, 2019 at 7:35 am #304449Topic: User Front End Profile Edit
in forum How-to & Troubleshootingprasadd1989
ParticipantHello,
I am working on one of my project with buddypress, but when user goes to thier profile it will show his extended profile fields data but when user clink on edit tab from front end it will not show any option to edit the profile from front end.
How can I give access to user to edit their profiles from front end instead of going to backend.
Please help me for this, I am looking for the solution but didin’t find anything for thisThanks in advance
April 6, 2019 at 6:25 am #304444In reply to: field excerpt to show in members page
Venutius
ModeratorIf 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?
April 6, 2019 at 6:04 am #304443In reply to: field excerpt to show in members page
joshreid
ParticipantOh 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.
April 3, 2019 at 3:19 am #304273Topic: Youtube/Vimeo Embeds Profile Field
in group forum Installing BuddyPressneilgee
ParticipantHi,
Anyone have any solutions to add video embeds to the profile fields in particular from YouTube and Vimeo?
Thanks
April 2, 2019 at 4:46 pm #304244In reply to: Edit css /colors in BP Profile
Venutius
ModeratorBy 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; }March 26, 2019 at 5:01 pm #304016In reply to: user profile fields
Venutius
ModeratorIf 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.
March 25, 2019 at 3:05 pm #303976In reply to: user profile fields
Venutius
ModeratorIt’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?
March 25, 2019 at 12:48 pm #303973Topic: user profile fields
in group forum Installing BuddyPressamir313
Participanthello 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
March 20, 2019 at 4:26 am #303735Topic: BP Profile Search issues
in forum How-to & Troubleshootingmspiggie
ParticipantHow 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
March 19, 2019 at 12:01 am #303685In reply to: How to REMOVE “This field can be seen by:”
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 overrideFor 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 …March 18, 2019 at 4:14 pm #303675In reply to: How to REMOVE “This field can be seen by:”
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; ?>`
March 18, 2019 at 4:10 pm #303674In reply to: How to REMOVE “This field can be seen by:”
chris19731973
ParticipantNow, 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 189I 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 : /**March 18, 2019 at 3:40 pm #303673zoleest
ParticipantStill 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.
March 18, 2019 at 1:04 pm #303669In reply to: How to REMOVE “This field can be seen by:”
Venutius
ModeratorThen you can overload the
edit.phpand ‘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.phpin 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’March 14, 2019 at 3:29 pm #303549In reply to: Register page keep refreshing
airsid
ParticipantHello,
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' ); ?>March 12, 2019 at 3:22 pm #303494In reply to: Transfering a BuddyPress site to a Multi-site
pandraka
ParticipantGood Morning,
Thank you for your reply, but hiring someone else isn’t a possibility. I’ve been digging in the BuddyPress codex and around the internet. There was a suggestion to turn off the fancy permalinks and using the plain links before exporting the databases when using BuddyPress. That worked for the most part. I think I’m 93% of the way to a solution. The only thing that didn’t work was the user’s profiles. All the users are present and displayed, but the user’s @user_nicename, title, and image are incorrect, the rest of the profile and user’s fields are correct. I also noticed instead of 30 users I now have 31. It looks like the super admin user’s information wasn’t incorporated into the new profile, but a second profile was established. I also imported the data into the topmost site instead of a subdirectory. I’m currently working to address these issues any insight would be appreciated.
Sincerely
Patricia
March 9, 2019 at 7:30 pm #303428In reply to: Members Loop with ACF Parameter
zaino
ParticipantI have tried this from the codex and it works great for xprofile fields, however I do not know how to modify it for ACF fields. There is a whole block of code in there specific to xprofile fields and I have tried various modifications, none working. Would love to get some concrete guidance. Thanks.
function my_custom_ids( $field_name, $field_value = '' ) { if ( empty( $field_name ) ) return ''; global $wpdb; $field_id = xprofile_get_field_id_from_name( $field_name ); if ( !empty( $field_id ) ) $query = "SELECT user_id FROM " . $wpdb->prefix . "bp_xprofile_data WHERE field_id = " . $field_id; else return ''; if ( $field_value != '' ) $query .= " AND value LIKE '%" . $field_value . "%'"; /* LIKE is slow. If you're sure the value has not been serialized, you can do this: $query .= " AND value = '" . $field_value . "'"; */ $custom_ids = $wpdb->get_col( $query ); if ( !empty( $custom_ids ) ) { // convert the array to a csv string $custom_ids_str = 'include=' . implode(",", $custom_ids); return $custom_ids_str; } else return ''; }March 7, 2019 at 12:55 pm #303360In reply to: On profile Update get posted fields
shanebp
ModeratorPlease use the
codebutton when posting code.…it’s not printing anything
That hook is found in a function that has a redirect after the hook, so you cannot dump to the screen.
Trying writing to a debug log or actually changing something with your function.But more importantly – the settings code is not the same as the profile fields code.
I apologize for not noticing that you said general settings and not profile fields in your OP.Try using this hook for Settings > General:
bp_core_general_settings_after_save
Found inbp-settings/actions/general.php
Note that it does not pass any data – so you’ll need to get the data from$_POST.
And the hook is followed by a redirect, so you cannot print to screen.March 6, 2019 at 1:14 pm #303329Topic: On profile Update get posted fields
in forum How-to & Troubleshootingrakhisystematix
ParticipantHello Team,
I need help with profile update code. When the user is updating general settings (password) before submitting to the database I want all posted fields and password as plain text with the username so that I can hit third-party API and send username and password as a parameter.
-
AuthorSearch Results