Search Results for 'profile fields'
-
Search Results
-
Hey guys,
first of all, awesome forum! I’ve already solved so many of my issues simply by reading the many helpful answers – hence never had the need to post anything myself, but now I’m a bit stuck.
Here’s what I wanted to do: Put a new profile group in a separate bp profile menu tab and make it visible to both, logged in as well as logged out users. Now, it works perfectly fine, except for the fact that logged out users for some reason get to see my personal profile group under my custom tab instead of the new profile group – which is displayed correctly for me as well as other logged in users.
Here’s my code:
/** BP Profile Tab Visibility */ function bpfr_hide_top_nav() { if( !is_user_logged_in() ) { // bp topnav items to hide bp_core_remove_nav_item( 'activity' ); bp_core_remove_nav_item( 'friends' ); bp_core_remove_nav_item( 'groups' ); bp_core_remove_nav_item( 'forums' ); bp_core_remove_nav_item( 'media' ); bp_core_remove_nav_item( 'docs' ); bp_core_remove_nav_item( 'location' ); //bp subnav (my activities, my groups, etc) bp_core_remove_subnav_item( 'activity', 'activity' ); bp_core_remove_subnav_item( 'activity', 'friends' ); bp_core_remove_subnav_item( 'activity', 'favorites' ); bp_core_remove_subnav_item( 'activity', 'groups' ); bp_core_remove_subnav_item( 'activity', 'mentions' ); bp_core_remove_subnav_item( 'activity', 'media' ); bp_core_remove_subnav_item( 'activity', 'docs' ); bp_core_remove_subnav_item( 'activity', 'comments' ); } } add_action( 'bp_ready', 'bpfr_hide_top_nav', 10 ); /** BP Tab Order Profile and Tab Rename */ function bpex_primary_nav_tabs_position() { buddypress()->members->nav->edit_nav( array( 'position' => 2, ), 'activity' ); buddypress()->members->nav->edit_nav( array( 'position' => 1, ), 'profile' ); buddypress()->members->nav->edit_nav( array( 'position' => 3, ), 'messages' ); buddypress()->members->nav->edit_nav( array( 'position' => 4, ), 'notifications' ); buddypress()->members->nav->edit_nav( array( 'position' => 5, ), 'friends' ); buddypress()->members->nav->edit_nav( array( 'position' => 6, ), 'groups' ); buddypress()->members->nav->edit_nav( array( 'position' => 7, ), 'forums' ); buddypress()->members->nav->edit_nav( array( 'position' => 8, ), 'criticalreview' ); buddypress()->members->nav->edit_nav( array( 'position' => 9, ), 'docs' ); buddypress()->members->nav->edit_nav( array( 'position' => 10, ), 'media' ); buddypress()->members->nav->edit_nav( array( 'position' => 11, ), 'location' ); buddypress()->members->nav->edit_nav( array( 'position' => 12, ), 'orders' ); buddypress()->members->nav->edit_nav( array( 'position' => 13, ), 'settings' ); } add_action( 'bp_setup_nav', 'bpex_primary_nav_tabs_position', 999 ); /** Put Critical Review Profile Group in BP Tab */ function buddydev_modifyy_user_profile_tab() { bp_core_new_nav_item( array( 'name' => 'Critical Review', 'slug' => 'criticalreview', 'screen_function' => 'buddydev_screen_profile_data', 'default_subnav_slug' => 'criticalreview-sub', 'show_for_displayed_user' => true, )); } add_action( 'bp_setup_nav', 'buddydev_modifyy_user_profile_tab', 8 ); function buddydev_screen_profile_data() { //filter loop add_filter( 'bp_after_has_profile_parse_args', 'buddydev_filter_args_for_profile_group' ); //load loop add_action( 'bp_template_content', 'buddydev_show_profile_group_data'); bp_core_load_template( 'members/single/plugins'); } function buddydev_filter_args_for_profile_group( $args ) { ///CHANGE IT $args['profile_group_id'] = '6'; //Your Profile Group ID Here return $args; } //Load the loop function buddydev_show_profile_group_data() { $profileslug = bp_get_profile_slug(); // if ( bp_is_my_profile() ) : // echo "Edit under Profile"; // endif; bp_get_template_part( 'members/single/profile/profile-loop' ); } function hide_profile_group( $grpid ) { if ( is_user_logged_in() && !bp_is_profile_edit() ) { $myfield = xprofile_get_field_data( 'Critical Review' ); $grpid['exclude_groups'] = '6'; } return $grpid; } add_filter( 'bp_after_has_profile_parse_args', 'hide_profile_group' );A few comments:
Most of the essential code is based on this threat. I am not really a coder myself, but usually I understand what the functions are doing.
For now I commented `// if ( bp_is_my_profile() ) :
// echo “Edit under Profile”;
// endif;` out, because if I leave it in, for some reason then also logged-in users only see the personal profile group instead of the Critical Review one?!Also, I’m not entirely sure about the use of the last function and its use / relevance, because it doesn’t seem to affect anything. This might however have to do with the fact that in order to avoid duplication of the Critical Review profile group under the actual profile tab, I’ve hidden the profile group via CSS.
Finally, I’m running the latest WP and BP installs and you can have a look at the described behavior here. Interestingly, as you can see in this instance, the profile fields are actually adjusted to my CSS for the Critical Review profiles group – but the actual content doesn’t show correctly.
Now, if any of you could help me out, I would highly appreciate it!
Thank you so much in advance! 🙂
Hello,
This is my first time using BuddyPress and I want to create a website using WordPress where users can connect with doctors.
During registration, a user can register as a Doctor or Member. Doctors will have extra profile fields which are to be filled in their profile area when they are logged in. I have already created two Member Types (Doctor & Member), I have also created two user roles (Doctor & Member) but I don’t know how to kick it off from there. I would like information on the plugins that will help me achieve this and probably how to go about it.
Thanks.Hi everybody!
How can i show Active Directory Fields that i extract using “Active directory integration plugin” in profile page?Can anybody helpme?
Regards! =)Topic: Can’t edit
Hey There!
Just installed BuddyPress on a brand new multisite install.When we go to edit a user profile field under Users –> Profile Fields, we receive this error “Sorry, you are not allowed to access this page.”
I am a super user and created everything.
Please advise.
I’m trying to build a WP with some public content and other content only available for registered users and being able to control their profile and movements (an email automatic sent when a user changes something). I’ve built some webs on WordPress but I am still learning.
Basically, I’m asking if with BuddyPress will be possible:
- – New users with need for administrator approval
- – Some private content only avaliable for certain users
- – Personalized fields in user profile
- – Automatic sending of emails when a user changes a profile field
Thank you in advance
Hello, I’m trying to create xprofile fields from my plugin code, and not from admin interface. Is this possible? Can somebody help me?
working with WP 4.7.2 and buddypress 2.8, with Onesocial Marketplace theme.
Thanks in advance.
I’m trying to display user profile fields on a page. I created a custom page template and pasted the code found here: https://codex.buddypress.org/developer/loops-reference/the-profile-fields-loop-bp_has_profile/
It was working and then stopped – can’t figure out what happened.
The problem seems to be with this function: bp_profile_group_has_fields()
Any ideas?
John
Hi Folks!
I think I understand that the New User Registration email is done by WP and not BP.
Is there anyway I can get the BP extended profiles to show on the New User Registration Admin email or not?
Or am I looking at a whole new plugin to to the job 🙁 If yes, got any suggestions?!
Love you lot!
😉
Hi, after update BuddyPress to 2.8.0, I can’t access the Profile Fields admin screen (User -> Profile Fields) to manage the custom fields, like delete and edit (mode edit_field and delete_field). When I try to access this screens, I see the message “Access Denied”.
Before update, this was working. I downgraded the version and it’s working again. I think that is a bug of 2.8.0 version.
The BuddyPress is installed at a network installation of wordpress.
WordPress Version: 4.7.2
BuddyPress 2.7.4I’m currently working on this website on my localhost, so there is no link for me to share. However, I’m hoping I can explain the issue well enough that you can still help.
Overall, BuddyPress is mobile responsive. There is, however, one area that is not mobile responsive and that’s the Profile field. Profile -> View. I have the following Profile Field Groups: Base (Primary) and Administration. Although Administration, is mobile responsive, Base (Primary) is not. These two have the following table class: profile-fields. So, it appears that all the settings are the same and/or correct, but for some reason it’s not taking effect on Base (Primary). These additional fields were added with XProfile.
Please let me know if this is an issue you are familiar with and how I can fix this.
Thank you.
-Juanita
Topic: CSS Code for form label
Hi all,
I am using tromax theme and under my BP profiles the label for the fields is not displaying unless highlighted. Is there any CSS code i could place in my child stylesheet to help it display clearly.
Preferably bold and black.
Thanks