Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 1,251 through 1,275 (of 5,755 total)
  • Author
    Search Results
  • #254548
    Masoud
    Participant

    i’ve managed to create a extra field by ID, and this is the function to save it.
    it’s name is “person_relation”.

    add_action( 'personal_options_update', 'my_save_extra_profile_fields' );
    add_action( 'edit_user_profile_update', 'my_save_extra_profile_fields' );
    function my_save_extra_profile_fields( $user_id ) {
    	if ( !current_user_can( 'edit_user', $user_id ) )
    		return false;
    	/* Copy and paste this line for additional fields. Make sure to change name '' to the field ID. */
    	update_usermeta( $user_id, 'person_relation', $_POST['person_relation'] );
    }

    now
    1) any suggestion on how should i make this box appear on group 1 ?
    * or in the setting page?
    and
    2) how should i get the value of it? (it’s a text input)? i heard that i have to use “POST[]” method? is it the right way? and how?

    danbp
    Participant

    In one of the comments, it’s yet explained. (july 9th 2015)

    Read throught, built the ID list of the concerned users and add it to activity loop filter options

    Another approach is to use the buit-in fonctionnality of profile fields. The value is linked to any member ho filled the same value.

    This means that if you click New York on a profile, you get a list of all user who entered New York and by extension, you have access to all new-yorker activities.

    But if you want to sort the site activity of NY users only, you need to use the first solution and to code a bit more to add also a SWA filter for any existing state…

    Masoud
    Participant

    hi.
    i am using latest version of wordpress and buddypress.
    ——
    i want to create a new field by code, in group1 (which will be appeared on signup page) so when user is signing up,
    see that box and fill it, and cannot edit it after the account creation (for example just like USERNAME!)
    (you set it once, and it cannot be edited after…)

    and then so i want to call that field later, and assing data to it like:

    xprofile_set_field_data ('First Name', $user_data->ID, $identity->name->givenName);
     xprofile_set_field_data ('Last Name', $user_data->ID, $identity->name->familyName);
     xprofile_set_field_data ('WHO INFORMED YOU', $user_data->ID, $identity->personname);

    someone suggested me this code to put it in bp-custom (but it’s not working) :

    function bp_add_custom_buddy_friend() {
    	if ( !xprofile_get_field_id_from_name('personname') && 'bp-profile-setup' == $_GET['page'] ) {		$country_list_args = array(
    		       'field_group_id'  => 1,
    		       'name'            => 'whoinformedyou',
    		       'description'	 => 'write your friend's name who informed you about us
    if no one told you about us, then write NoBody.',
    		       'can_delete'      => true,
    		       'field_order' 	 => 2,
    		       'is_required'     => true,
    		       'type'            => 'textbox',
    		       'order_by'	 => 'custom'
    		);
    	}
    }
    add_action('bp_init', 'bp_add_custom_buddy_friend');

    ——–

    Extra information:
    i am using OneAll Social Login Plugin, to put social login buttons in my login form.
    in the usual signup form, i put an extra textbox (which user must fill it), in order for me to know, how this user is informed abt my website,
    the question is this:
    who informed you about this website? (if a friend, then write his/her name, if no one, simply write NoBody)

    so if a friend suggested, the user simply write down a name(just a text, not linked to anybody’s profile)
    and if not (he/she will write NoBody)
    BUT
    when you login from social-login, this will not be enabled!
    so i want to create a new field, and call it from social-login.
    so if a user is signed in from social login,
    a pop up appears and force the user to enter that field.
    ——-
    how can i create this ?
    tnxxxx a lot for any help.

    truelux
    Participant

    I have a Nationwide BuddyPress website, so the activity stream can become confusing since people from all over are posting updates/content. I’d like to give members the ability to sort the activity based on their chosen location in their profile (drop down).

    If a person wants to view a BuddyPress stream from members in New York, then they should be able to… Not based on GeoLocation but on the state selected in their profile.

    How can I filter activity based on the users location, which is chosen via drop down menu in Users > Profile Fields > State ?

    Someone had mentioned – “Another approach is filtering on sql query which may be a little bit more efficient.” but I’m not sure where to start with that one 🙁

    #254323
    danbp
    Participant

    @maganiza,

    how and when do you generate the field value, if the user can’t edit it ?
    The only place a user can acces a field is on his profile.

    On signup page, only fields who are part of the “Base” field group are shown.
    You can create another field group who will contain the field you want after signup. Then, to enter something to it, the user must go on his profile. But if you disallow edition for that field, it’s quite impossible.

    Before signing in, a user doesn’t exist. He can only fill some registration fields before asking to be a member. Once he is approved, he can access to his profile and fill additionnal fields.

    Aside, is the field value the same for all user ? Perhaps you could add this information differently to profile. Give details please.

    alibong0
    Participant

    ok so im on the newest wordpress and buddypress.
    ive had a look through the following posts and pages:

    https://buddypress.org/support/topic/adding-new-order-by-on-members-loop/

    https://buddypress.org/support/topic/creating-a-new-order-by-filter-in-groups-loop-with-custom-sql/

    Add custom filters to loops and enjoy them within your plugin

    Im trying to make ‘Order By’ sections that find users who have ticked a specific profile field in their profile. The first thing im confused about is am i editing the..
    /bp-templates/bp-legacy/buddypress/members/index.php OR
    /bp-templates/bp-legacy/buddypress/members-loop.php ?
    i thought it was member-loop but that last help page suggests index?

    Im just not succeeding lol, could you help me please?

    Strothi
    Participant

    Dear all,

    first of all, this forum is absolutely amazing and has helped me enormously so far! Unfortunately, I’m more of the “I read the code and somewhat understand it” and less so much the “I can code it myself” type… 😉 So I’m currently trying to distinguish private and public member fields. I’ve found lots of great solutions, but now I need your help:

    What I would like to achieve is that for example here: https://fslci.org/members/philip-strothmann/ the two entries which appear under the profile pic if you click on the plus:

    1) Membership type (in this case “NGO Employee”)
    2) Public Status

    are only seen by my members, not by the public. I guess it can be achieved with

    if( !is_user_logged_in() ) {

    But I’m not sure how to get the call to the two elements right. I guess this isn’t too complicated, but I’ve searched a bit and haven’t come up with a good solution, so any help would be highly appreciated!

    Thank you very much in advance 🙂

    BTW: Using latest WP, BP and KLEO as the theme.

    Paul Wong-Gibbs
    Keymaster

    BuddyPress doesn’t support conditional profile fields (yet?). This is asked frequently but I can’t remember if anyone’s built a plugin that handles this. You might have to hack something together bespoke for your theme.

    Regarding the second point, I’d recommend creating a custom field type, if you know PHP. It’s not too hard to do — I worked on this code a year or two ago, and it’s pretty easy to do now. You could look at https://en-gb.wordpress.org/plugins/buddypress-xprofile-custom-fields-type/ for examples of how to add and register custom field types — specifically https://plugins.svn.wordpress.org/buddypress-xprofile-custom-fields-type/trunk/classes/Bxcft_Field_Type_SelectCustomPostType.php I think is a good example to work from as it displays custom post types in a list (you’d just query your custom table and pull in the values, wrap it in some caching, etc).

    #254131

    In reply to: private buddy press

    shanebp
    Moderator

    WP users are BP users, except for the profile fields you add in wp-admin > Users > Profile Fields

    For granular control of both WP and BP content re logged-in vs. not-logged-in, have you tried BP Simple Private ?

    You can get it here: WP Repo – BP Simple Private

    Or here: PhiloPress – BP Simple Private

    #254124
    welsh10
    Participant

    Hi,

    I am not using buddy press registration pages.

    So a lot of my field data is not showing on user profile.

    I would like to transfer the cimy extra user fields over to buddy press but do not know where to begin.

    If possible I want to display these fields on the user profiles in the table.

    I have added the following code to boss-child/buddypress/members/single/member-header.php

    $user = wp_get_current_user();
    
    // is there someone logged?
    if ($user->ID) {
    $value = cimy_uef_sanitize_content(get_cimyFieldValue($user->ID, 'ROLE'));
    echo 'description_here';
    }		 
    		 
    		 do_action( 'bp_profile_header_meta' );

    It did not work. If anyone could help out, it would be appreciated.

    Thanks

    Ron Ashman
    Participant

    WP 4.5.2
    BP 2.5.3
    Conditional Profile Fields for BuddyPress 1.1.9
    Flatsome theme by UX 2.9.2
    currently working offline, testing my site, hence no link

    Hi!

    I got 2 separate questions about using BP. I’ll be as brief as possible.

    1) Is there any way to fix required logic for conditional fields in the registration form? I have the following fields in my form, all of them drop down menues to choose one option:
    – State > NY / CA / FL / etc.
    – City in NY (show only if State = NY) > Albany / Buffalo / NY / etc.
    – City in CA (show only if State = CA) > LA / San Diego / Fresno / etc.
    and so on…

    The “State” field is required. The “City in…” field is required as well. Of course, only one “City in…” shows after choosing the state. The problem is that ALL of the “City in…” fields are marked as required, and BP expects the user to fill in all of them, even if they’re not showing due to conditional logic.

    Is there any way to fix it besides disabling the required status? Basically, people choose their location or something else. Maybe a product thing (PC / TV > laptop – desktop / lcd – led).

    2) I have in my sql database tables to organize a lot of products, separated into categories and cross-related. Very neat. Is there a way to easily put that into the registration form with conditional logic? Like the state>county>city thing. Drop down menues that import options from the tables.

    Thanks a lot in advance.

    cesasol
    Participant

    Hi, I’m working on a project where I have to populate the contents of a page using custom post types and taxonomies with members of buddypress.
    Members fill out a field check boxes that match the terms of taxonomy to be used, then I have to fill posts with members that meet at least one match box checked with taxonomy term and then add the user to post.

    Navigation would be:
    User enters the “services” in the menu.
    Then see a list of services in card format
    Clicking has to display the “post” service with a short description and down members offering such services with a link to their profiles buddypress.

    Members will have the following experience:
    After registering as a special type of user they are activated the profile field “Professionals”, which, along with other fields will be the field of “treatments” that will check boxes. As save their changes, for example, they marked the “facial radiofrequency” box, your profile will appear in the services that have the taxonomy term “facial radiofrequency”

    It can be done in each post or maybe making a specific template with one using variables, and enter the custom loop within the loop the post after <php the_content (); ?> And before endwhile.

    The problem is that the loop is not done, and after searching I found I was developing #5839 but I could find no documentation.

    Thanks in advance.
    Cesasol

    #254095
    sharmavishal
    Participant

    So you got only 1 db right? When not using bp users go into wp_users with bp installed they still go there…only 4 extra xprofile fields rows are created..which store the xprofile data

    Does that solve your issue?

    alibong0
    Participant

    Hi im having a problem with half the profile fields clashing with my background so you cant see them properly, as shown in my link. how do i change the colour? please use context, if you start casually linking script without saying where exactly it goes ill be stuck.

    click here for example.

    thank you for your time

    #254078
    r-a-y
    Keymaster

    Hmm… I forgot that those “Name” fields were not deletable from the admin dashboard.

    I would recommend the following:

    1. Disable the Extended Profiles component
    2. Tell your developer to go into your database and drop the following DB tables:
    – wp_bp_xprofile_data
    – wp_bp_xprofile_fields
    – wp_bp_xprofile_groups
    – wp_bp_xprofile_meta
    3. Next, go back to “Settings > BuddyPress > Components” and re-enable the Extended Profiles component

    This should recreate the Extended Profiles database tables from scratch and hopefully things should be okay afterwards.

    #254074
    r-a-y
    Keymaster

    that worked!!

    Glad to hear you’re up and running!

    But should I now see 5 tabs of Field Groups that all say “Base (Primary)” when I go to Profile Fields under Users?

    No, you shouldn’t.

    You should leave the first “Base (Primary)” tab alone, but do delete the rest of them.

    Do the same for the “Name (Primary)” field in the “Base” group. Keep the first one, but delete the rest.

    Note that this is a new install. I’ve never used BuddyPress before

    This does sound like a bug. It would be great to retrace your steps so we can duplicate this problem. Did you activate / deactivate / activate the plugin multiple times?

    Same goes for the components list under “Settings > BuddyPress > Components” in the WP admin dashboard. Did you uncheck / check / submit certain components multiple times?

    #254073
    AngelaQ
    Participant

    that worked!! But should I now see 5 tabs of Field Groups that all say “Base (Primary)” when I go to Profile Fields under Users? Each of these have 5 fields called “Name (Primary) (Required)”.

    Note that this is a new install. I’ve never used BuddyPress before and tried using xTended Profiles and gave up…

    #254057
    shanebp
    Moderator

    This premium plugin – BuddyProfileData – will add profile data to the members loop.
    It will add fields in a vertical stack.
    If you are comfortable with css and maybe a little php, you can change it to horizontal.

    Or you can write your own solution using this hook:
    do_action( 'bp_directory_members_item' );
    in this file:
    buddypress\bp-templates\bp-legacy\buddypress\members\members-loop.php

    Or you can create a template overload of that file and hardcode your solution directly in the template wherever and however you want it.

    Re the ‘>’ – the best solution is to find out where it is being added by your theme css and change it.

    #254055
    iommidesigns
    Participant

    I am using buddypress Version 2.5.3. We would like to have our member directory page show up almost like an excel spreadsheat. With the user profile fields visible in a horizontal line.

    here is the link. It is just showing avatar and Name. We would like to add other custom profile fields to this page. Is there a premium plugin for this? Or any other ideas?

    http://kesslerneighborsunited.org/members/

    Also if you look there are UL tags displaying “>”on most of the buttons threw out the buddypress section. Is there a way to disable theme styling and use default buddypress styling within the buddypress settings?

    Here is the link to a profile displaying the UL tags

    http://kesslerneighborsunited.org/members/admin/

    Help!!!

    Thank you.

    #254017
    emeraldcity
    Participant

    Hi Everyone,

    I’m very new to the BP world and am excited to be using this amazing tool to build a new community online.

    GROUPS:
    I want to use groups as a notification center, allowing members to comment/interact with the notifications. So what I need is for only group admins/moderators to be able to post to the group activity stream. Other group members can only comment and favorite these posts, but cannot make a new post to the activity stream. Is this possible?

    MEMBERS
    Is there a way to show a google map with pins representing the city/state/country fields that users fill in their profile? Would further like these pins to be clickable, displaying certain fields from a user’s public profile.

    Any help with plugins and coding for the above would be very much appreciated. Thanks!

    #254003
    Earl_D
    Participant

    I ran a test this morning with BP as the only plugin activated using tiny framework theme. Ran the same again two minutes ago with twenty twelve as theme. I do NOT use any special registration template only what comes with BP out of the box. This is the third time I have done that to prove convincingly that it isn’t simply plugins. Each time the result is the same. Whenever extended profile fields turned on registration does not go through.

    I have removed all the extended profile fields except the one on the Base which cannot be removed. That is display name. That is the only thing other than account name, email and password fields that shows up on the registration form.

    I am not the only one experiencing this issue I linked to support topic here on this board where someone else having the same problem.

    This is literally ruining the launch of my site all my marketing has been wasted since no one can register. If his is not a problem that can be fixed can someone PLEASE tel me how to downgrade. So all my money and effort don’t get blown away.

    #253998
    r-a-y
    Keymaster

    I also tested BP 2.5.3 on WP 4.5.2 on a fresh install and cannot duplicate your problem, Earl_D.

    I tested with the Extended Profiles component enabled.

    Are you using any caching plugins? If so, try to disable it or whitelist the register and activate pages from caching.

    Do you have any special extended profile registration fields? If so, can you list what they are and how they are configured?

    #253992

    In reply to: Membership Codes

    danbp
    Participant

    @maganiza,

    it’s possible. I suppose you need a unique code for some later user specific actions. But that code exist nowhere when a user register. What can we do ?

    1) generate a 6 digit code and show it on the register page
    2) asign that code to the user
    3) show the code on his profile

    1 – we use php mt_rand to generate the code and one of the available action hook on the register page for his output. Add this snippet to bp-custom.php

    function bpfr_digit_generator() {
    $num = mt_rand ( 0, 0xffffff ); 
    $output = sprintf ( "%06x" , $num );
     
    	echo '<strong>Your personnal code: '. $output .'</strong>';
    
    }
    add_action( 'bp_after_account_details_fields', 'bpfr_digit_generator' );

    2) create a new xprofile field, call it Personnal Code or whatever. Make it mandatory and asign it the visibility level you want. In field description, ask the user to copy/paste in the code.

    3) as the user entered the code in a xprofile field, you get automagically this field on his profile.

    I’m a bit unsure how to insert this field value in the activation email, or if it’s even possible. Perhaps somebody else can help you. See email on codex.

    A bit raw, but at least you have a start point how to do that.

    Here also another method, you may use if you don’t want the user to copy/paste the code.

    #253983
    danbp
    Participant

    @radair2002,

    nothing out of the box on hand, but what if you make any of the fields with “only me” visibility level as default , for everybody ? If site admin approve the content, he can change the level to something more public.

    For email notification, a solution is given in this topic.

    Perhaps you can also use this plugin, with some custom restriction/adaptation.

    #253944
    ma3ry
    Participant

    I’m using BuddyPress Extended Profiles. For all fields I have the option of Visibility except First Name. It is very important to many of my members to not have others see their first name.

    How do I add Visibility option of “Only Me” for First Name please.

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