Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 976 through 1,000 (of 5,755 total)
  • Author
    Search Results
  • #264218
    Venutius
    Moderator

    Do you mean you have created additional profile fields? If so BP Profile Search plugin would allow you to do that.

    #264195
    cbloom1919
    Participant

    Thank you for the response. I am trying to piece this together and am wondering- on the page that you linked me to, do I use the “Usage” code, paste it in my theme’s function.php file and use it each time I define a profile field that I need to call? If I use user_id = -1, will it just return data for the currently logged in user? Also, once the query returns the profile fields, how do I get it attached to my post? Where do I give it a parameter name?

    (I’m new to php, so apologies if my questions are unclear/not using the correct terminology).

    Thanks again.

    #264183
    troy34
    Participant

    Thanks for your response. How do I get the users to select if they’re doctors or just normal member during registration so that they won’t have access to the extra profile fields meant for the doctors when they log in?
    Thanks

    #264179
    psnation
    Participant

    I would suggest https://wordpress.org/plugins/buddypress-xprofile-custom-fields-type/ to create your profile fields. There also conditional field plugins that would allow you to set up different fields to members and doctors.

    Strothi
    Participant

    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! 🙂

    #264155
    troy34
    Participant

    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.

    #264133
    r-a-y
    Keymaster

    First, you need to figure out how to fetch the Active Directory data for a user and how to display it. This isn’t dependent on BuddyPress.

    Once, you’ve figured that out, you’ll need to hook into the BuddyPress profile template to add those fields.

    If you are a WordPress developer, there are various hooks you could use. View the profile template:
    https://buddypress.trac.wordpress.org/browser/tags/2.8.1/src/bp-templates/bp-legacy/buddypress/members/single/profile/profile-loop.php

    And hook into any of the do_action() hooks to display your AD data. To get the current user’s ID on a profile page, use bp_displayed_user_id().

    #264130
    luuigi
    Participant

    Hi everybody!
    How can i show Active Directory Fields that i extract using “Active directory integration plugin” in profile page?

    Can anybody helpme?
    Regards! =)

    #264118
    djsteveb
    Participant

    @johanna75 – We do need some kind of universal “display public ok” field perhaps?

    Some people have fields set to ‘friends only’ – so things in search should only display to them.

    Bp has a thing in it when a user is marked as spam, then they are only visible to admins – so I think this kind of functioning is half in there already.

    Would be nice for the buddyblock and rtmedia plugins to also consider this visibility thing, and for buddyblock to be able to conditionally affect that as well.

    I could see the need for someone to hide certain things from the public and from specific people – what a nightmare it is when things that were assumed secret pop up in search results.. I had this happen with a wp install – pages published but password protected – well either the theme, or the post teaser plugin pulled data from those non public pages and put them smack in the public search results.

    Luckily the bp profile search pluing (that I also use – it’s great!) – is under active development – (I see the author has responded to the support forum on wp repo saying it is an issue that is under consideration, but bp does the same thing – so it’s no different in the privacy regard) wonder if we could ping the other bp peeps and rtmedia and buddyblock peeps tp put some heads together on this..

    I have a similar problem right now with rtmedia not meshing with buddyblock. When a user blocks and enemy on my site – that enemy can not message them or comment on their activity – but they can harass the sh*t out of them via comments on their media.

    #264107
    ajsonnick1
    Participant

    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.

    #264103
    imauser2
    Participant

    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

    #264049
    johanna75
    Participant

    I use the BP PROFILE SEARCH plugin (mandatory for members search form i think… because if Deactivate it search form deseapered)
    and SuitePlugins – Advanced XProfile Fields for BuddyPress

    #264003
    sandorastarita
    Participant

    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.

    #263973
    john.horning
    Participant

    We discussed it here: https://buddypress.org/support/topic/dont-hide-fields-when-user-views-his-own-profile/, but I got stuck. Maybe I’ll revisit.

    #263971
    john.horning
    Participant

    Yes I have data. I’ve tried switching themes and disabling all other plugins.
    A bit frustrating. I have a lot of fields. That couldn’t be an issue could it?

    This was supposed to be an alternative to the user profile page. I’m merely trying to get all fields to show, regardless of whether there’s data or not. I tried in vain to modify the profile page.

    Any more suggestions?

    #263923
    leewells
    Participant

    Thanks Shane! I’ll give this a shot when I get back to home this evening and let you guys know how it works out. I’m afraid the little profile I made doesn’t do any sorts of compares, it just lets me know if it is loaded before or after certain other hooks like init, the_content and such.. I’ll have to reopen that and add bp_load and get a better idea of where it loads to buddypress though.

    My I make a request, though, developer to developer 😛 This seems to have broken a lot of plugins and I like to say I follow the methods of WordPress to the letter without getting hacky :P. If changes like this are made, can we still preserve a method of backward compatibility? The profile info, for instance shouldn’t matter much when it loads, so long as the BP class is loaded, which means, I guess what I’m saying is I’m drawing a blank to what it would be that would require the xprofile fields to be dropped to such a low load order that it doesn’t initialize with the plugin class init.

    #263892
    shanebp
    Moderator

    You need to pass additional fields – and in the correct order.
    http://hookr.io/functions/xprofile_get_field_data/

    #263883
    john.horning
    Participant

    Actually – looks like the problem might be with bp_the_profile_field_value(). I’m able to display all the fields with labels, but no values.

    #263881
    john.horning
    Participant

    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

    whimsymoon
    Participant

    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!

    😉

    Estevão Costa
    Participant

    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.

    #263798
    BTW
    Participant

    WordPress Version: 4.7.2
    BuddyPress 2.7.4

    I’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

    #263760
    bheyne
    Participant

    I’m slowly approaching the solution. If i deactivate the plugin “BuddyPress Xprofile Custom Fields Type”. The Pictures are back. They overwrite the URL i think.

    #263755
    matomatik
    Participant

    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

Viewing 25 results - 976 through 1,000 (of 5,755 total)
Skip to toolbar