Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 1 through 25 (of 4,867 total)
  • Author
    Search Results
  • #262992
    Profile photo of stunley
    stunley
    Participant

    Hi Shane. Like so? This still disables the site.

    function tiquality_add_custom_field() {
    
    	if ( bp_is_active( 'xprofile' ) ) :
    
    ?>
    	<div class="bp-widget <?php bp_the_profile_group_slug(); ?>">
    		<table class="profile-fields">
    			<tr class="my_mail">
    
    				<td class="label">Contact me</td>
    
    				<td class="data"><a href="mailto:<?php bp_displayed_user_email(); ?>"><?php bp_displayed_user_email(); ?></a></td>
    
    			</tr>
    		</table>
    	</div>
    <?php 
    
    	endif; 
     
    }
    add_action('bp_profile_field_buttons', 'tiquality_add_custom_field');
    #262968
    Profile photo of psmorrow
    psmorrow
    Participant

    I found this:

    post

    which adds xprofile fields to member directory, but I can’t seem to get this working for the group members directory.

    Profile photo of psmorrow
    psmorrow
    Participant

    Hi,

    I am interested in adding xprofile fields on the list of members of a group. Some examples include: gender, age, interests, etc.

    Any help is sincerely appreciated!

    Thanks in advance!

    #262853
    Profile photo of stunley
    stunley
    Participant

    I added the following code (from this post) to enable email addresses in user profiles – which works but only when a user is logged in.

    How can I change it to show the email address regardless of whether one is logged in or not?

    function tiquality_add_custom_field() {
    
    	if ( bp_is_active( 'xprofile' ) ) :
    
    		if ( is_user_logged_in() ) {
    ?>
    	<div class="bp-widget <?php bp_the_profile_group_slug(); ?>">
    		<table class="profile-fields">
    			<tr class="my_mail">
    
    				<td class="label">Contact me</td>
    
    				<td class="data"><a href="mailto:<?php bp_displayed_user_email(); ?>"><?php bp_displayed_user_email(); ?></a></td>
    
    			</tr>
    		</table>
    	</div>
    <?php 
    		}
    	endif; 
     
    }
    add_action('bp_profile_field_buttons', 'tiquality_add_custom_field');

    I tried deleting the line…

    if ( is_user_logged_in() ) {

    but it took down the whole site.

    WP v 4.7.1

    #262771
    Profile photo of rufrage
    rufrage
    Participant

    Hello,

    I am using BP 2.7.4 and the most recent WordPress version (4.7.1).
    The registered members all need to fill out the profile field “Tätigkeit”, which is basically “job” in english. I added the job information to each profile in the members-loop now.
    People are supposed to search for job-names and find every member, that has the keyword in any of their profile-fields (I did all that with BP Members Search already).
    Now for a better overview, I want all the people with the same job listed underneath each other, e.g. at first everybody with party-location-rentals as their job, then everybody with party-catering as their job, etc.
    This would be easy to archieve, if I was able to just sort the members by their job and in a alphabetical order. At the moment, the are ordered alphabetically, but by their name.

    How can I just switch the attribute they are sorted by from username to the field Tätigkeit? I have been digging through a bunch of php files lately, but couldn’t find the responsible one yet.

    I will appreciate every reply that gets me a little closer to solve my problem.
    Thanks in advance and have a good time!

    #262748
    Profile photo of fidelduque
    fidelduque
    Participant

    Hello everyone! I guess this is not a common issue, I haven’t found anything to solve this. I got 3 sites in a multisite wordpress system. some of the main site users will access the other ones. They need to have their profile in all of the sites. so far I managed to get the custom fields data but can’t get the avatar. Any hint?

    Thanks

    #262730
    Profile photo of bcanr2d2
    bcanr2d2
    Participant

    I have a BuddyPress profile form that currently has fields being shared between different member types, so they can be forced to be mandatory.

    I would like field A (highlighted) to be able to change the labels/legends highlighted with B, so that once a user selects a value I can show the relevant text (which needs to change for each drop down value)

    I already have PHP code to control these labels AFTER the user has selected a member type, I just need to know what to before hand, before they save these values.

    The first field is field_6.

    The second is field_19 The third is field_505 The fourth is field_56

    I believe a javascript piece of code would make this work appropriately, but is not my strong suit programming language wise.

    #262702
    Profile photo of danbp
    danbp
    Moderator

    Also by default, a field description can only be filled by a site admin, not by suscribers or visitors. But it is to you to know what is harmfull or not when you customize something in your site.

    If you are the only one allowed to create xprofile fields, i doubt that you will voluntary introduce malicious code into your field description… In this case it is certainly harmfull to allow yourself some html tags. 😉

    Profile photo of djsteveb
    djsteveb
    Participant

    I set up a secondary set of ‘hobbies/interests’ to select multiple via checkbox. When a user checks a dozen of them.. they get displayed on the profile page as a Comma Separated Paragraph.

    using 2104 theme..
    so i get:
    Base
    profile f 1 – name
    profile f 2 – state
    Interests/Hobbies
    blah blah,blah, blah blah,
    blah, blah blah, blah

    how do I tell the member profiles page to display these as a ul / li I guess?
    Interests/Hobbies
    blah blah
    blah
    blah blah
    blah

    Any info appreciated,

    Steve

    #262651
    Profile photo of freddykan
    freddykan
    Participant

    Wordpress 4.6
    Buddypress latest version
    http://www.ankspon.co.uk/register

    1. I would like to hide this text that appears on the profile details section of my registration page. “This field can be seen by: Everyone” – It makes the registration form messy. How do I hide it?

    2. Where can I edit the text that appears at the top of this page, supplied by the buddy press plugin? “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.” – I can’t see it in the plugin or page.

    Thanks
    Freddy

    #262570

    In reply to: phone number or email

    Profile photo of danbp
    danbp
    Moderator

    Hi @froshdimeji,

    the registration process is part of WordPress. Check on the codex or on the wp forum, but i doubt that a phone number can be used instead of an email. Perhaps it can be added to the mandatory username, password and email fields. But sorry, i have never heard about such.

    Note that BP allows you to add fields to the register page, but these fields will never be part of the registration itself. So even if you add an xprofile phone type field, it won’t be considered (as first) as mandatory for registration.

    #262526
    Profile photo of alghaith
    alghaith
    Participant

    Hello, im using woffice and i want the user to change his password and profile picture only from the front end .

    i dont want him to :

    – change his name

    – edit anything in (Editing ‘Base’ Profile Group)

    – change his email .

    – change anything in (Send an email notice when: )

    i have this link :
    https://buddypress.org/support/topic/dont-allow-users-to-change-some-fields-after-sign-up-hide-those-fields/
    but i don`t know if it will be like my customization
    thanks so much.

    —————————-

    1. Which version of WordPress are you running?
    WordPress 4.7 running Woffice Child theme.

    6. Which version of BP are you running?
    2.7.4

    10. Which theme do you use ?
    woffice

    11. Have you modified the core files in any way?
    yes

    12. Do you have any custom functions in bp-custom.php?
    i dont think so

    13. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in?
    bult in

    15. Which company provides your hosting?
    siteground

    #262506
    Profile photo of meatsro
    meatsro
    Participant

    I clicked on the Extended Profiles to Customize my community with fully editable profile fields that allow my users to describe themselves, but it is not working. The profile menu link does not work when you click on it. How can I fix this error.

    #262349
    Profile photo of johnnyfever72
    johnnyfever72
    Participant

    Hi all,
    I am just wondering how I can have different extended profiles for different member levels? I am using Paid Memberships Pro and have 2 different membership levels, a free “Clients” level and a paid “Artists” level. I need the clients to have different profile fields than the artists. The clients just need some basic information about them where the artists will have much more to fill in. Things like different types of art they do or what studio they currently work at etc. Obviously the free clients don’t need these types of fields in their profiles.

    Hope this makes sense.

    Thanks,
    Johnny

    Profile photo of bcanr2d2
    bcanr2d2
    Participant

    I am trying to get around different fields being required in different member types, by trying to change the label of the field for a specific member type

    When using the following code, it changes the name of the field, and not just the label!
    Any Tips, please.
    I have it visible to all users, and will display in the backend as Cost Per Hour when it is edited (shows the other name when not edited).

    function filter_bp_get_the_profile_field_name( $field_name ) { 
        // make filter magic happen here... 
    
    	$user_id = bp_loggedin_user_id();
    	$bp_user_member_type = bp_get_member_type($user_id);
    
    	// field name (case sensitive)
    //	if ($bp_user_member_type == 'parent'  ) {
    	if( $field_name == 'Cost Per Hour') {
    $field_name = 'Maximum Amount To Pay For Sitting';
    //var_dump($field_name );
    //die("filter_bp_get_the_profile_field_name");
    
    	}
    //	}
        return $field_name; 
    }; 
             
    // add the filter 
    add_filter( 'bp_get_the_profile_field_name', 'filter_bp_get_the_profile_field_name', 10, 1 );
    #262226

    In reply to: Problem With Pages

    Profile photo of danbp
    danbp
    Moderator

    Hi,

    BP pages are not ordinary WP pages. BP use the page system to assign a permanent slug, while content stays dynamic. Usual WP pages are static.

    BP pages must be unique. This means also without assigned template, model and of course, should be a slug to a page, and not a sub-page. These page are not intended to be published and exist only for internal use. You don’t need to build a menu for register and activation. Normally, these items come up, depending the context (theme, plugins, widgets) and/or the user status.

    Related to “activation” and “register” and most of BP components, you need to declare a “page” for each, despite the fact that BP will only use them to insert a template. Registration will receive xprofile fields which are added to the existing WP registration form.
    And another template for the Activation stuff, depending the context: activation key, success message and so on.

    #262210
    Profile photo of danbp
    danbp
    Moderator

    If you create a field group called Business Details, you simply add as many fields you want!
    Let’s say, you want that users can fill about 5 companies or society. In this case, you need to create a field for each input, in other words 5 fields. And if you need more details for each, you add the fields you need, one by one:

    Business 1: [___]

    Address 1: [___]

    Office 1 hours: [___]

    Business 2: [___]

    Address 2: [___]

    Office 2 hours: [___]

    Or if you use a lot of details, you group each businness separately.

    For better clarity of the default profile details output, when you have a lot of information to display, is to use this very handy plugin: buddypress-profile-tabs

    #262165

    In reply to: Forms from Buddypress

    Profile photo of danbp
    danbp
    Moderator

    BuddyPress comes with his own form on xprofile component.

    In 99% of cases, you haven’t to use an external form plugin. For the remaining 1%, you need good php knowledge to accomplish some custom work.

    Everything you need to know about xprofile fields is explained here:

    User Extended Profiles

    #262157
    Profile photo of bcanr2d2
    bcanr2d2
    Participant

    I seem to have lost the template message that shows if the profile has been successfully saved.

    I have a custom function that runs on the following:

    add_action( ‘xprofile_updated_profile’, ‘syncbuddypresstoacf’ ); would this be making my saved and any custom errors not display when it is being saved?

    There is no priority on this action.
    I’m able to see the error messages relating to missing required fields, but that is all

    Profile photo of thattuneuk
    thattuneuk
    Participant

    Hi can anyone help I have a problem with the extended base group profile fields on 2 profiles the profile field boxes are fine and display full length but on the newest members profile fields seem to be displaying in a small box and aligned over to the right of the page not as wide as my admin profile fields or one of the other user profiles iv’e tried a search and found a code to over ride the CSS but it hasn’t worked i’m using the latest version of BuddyPress and my website is http://thattuneuk.com I hope someone knows how to fix this problem as iv’e been racking my brains for a couple of days trying to sort it out.

    Profile photo of bcanr2d2
    bcanr2d2
    Participant

    My Scenario:

    I only have one profile group, and two member types.

    Each of them has some shared required fields, which I have set as required, but I would like some additional fields to be made required for each member type.

    IE

    Shared Member Fields: Name, Age

    Separate for Member Type A: XProfile Field A

    Separate for Member Type B: Xprofile Field B

    Currently, I am showing this fields conditionally using the Conditional Profile Fields for BuddyPress plugin as they select a Member Type, and at this stage I’d consider them mandatory, although I can’t have both XProfile Field A and B both marked as required in BuddyPress.

    I’ve looked up a couple of solutions, and mine is mainly based on the following: buddypress bp_core_add_message() doesn’t fire why?

    For a required field, it shows the error message, but not so for the custom error message I want to display, could someone give me a pointer as to why?

     //Validate and force values for items that are NOT required
    function validate_required_unshared_fields($data) {
            global $bp;
    //check for member type
    $member_type_field_id = xprofile_get_field_id_from_name('Member Type');
    $member_type = $_POST['field_'.$member_type_field_id];
    switch($member_type){
    case "babysitterornanny":
    $cost_per_hour_field_id = xprofile_get_field_id_from_name('Cost Per Hour');
    $cost_per_hour = $_POST['field_'.$cost_per_hour_field_id];
    
    if ($cost_per_hour ==''){
    
    bp_core_add_message( __( 'You need to fill out your Cost Per Hour.', 'buddypress' ), 'error' );
              wp_redirect( $bp->loggedin_user->domain . 'profile/edit/group/1/' );
    
           exit();
    }
    
    }
    
    return $data;
    }
    
    add_action( 'xprofile_data_before_save', 'validate_required_unshared_fields');

    I’ve changed to a default Twenty12 theme, still doesn’t display, what is causing it not to display??

    #262072
    Profile photo of danbp
    danbp
    Moderator

    Hi @darrenllrgmailcom, @adjunkten,

    i had the same issue with a custom theme: fields didn’t wrap properly on small screens…
    To solve it, i simply copied the concerned form rules from Twenty Sixteen into my child theme css and all went OK after that.

    The 2016 rules of the register page:

    #buddypress #signup_form.standard-form #profile-details-section,
    #buddypress #signup_form.standard-form #basic-details-section,
    #buddypress #signup_form.standard-form #blog-details-section {
    	float: none;
    	width: 100%;
    }
    
    @media screen and (min-width: 38.75em) {
    	#buddypress #signup_form.standard-form #profile-details-section,
    	#buddypress #signup_form.standard-form #basic-details-section,
    	#buddypress #signup_form.standard-form #blog-details-section {
    		width: 48%;
    	}
    }
    
    @media screen and (min-width: 38.75em) {
    	#buddypress #signup_form.standard-form #profile-details-section {
    		float: right;
    	}
    	#buddypress #signup_form.standard-form #basic-details-section {
    		float: left;
    	}
    }
    Profile photo of dzturtleshell
    dzturtleshell
    Participant

    I’m creating a custom page that shows all members of a specific group.
    I need to make a box for each member that includes their avatar, name, and the data from one of the custom xProfile fields I’ve created for the community.

    I used the group_members loop and I have the avatar and name working.

    ‘<?php if ( bp_group_has_members(‘group_id=1’) ) : ?>
    <ul id=”member-list” class=”item-list”>
    <?php while ( bp_group_members() ) : bp_group_the_member(); ?>

  • <?php bp_group_member_avatar_mini($width = 50, $height = 50) ?>
    <?php bp_group_member_link() ?>
  • <?php endwhile; ?>

    <?php else: ?>
    <div id=”message” class=”info”>
    <p>Something went wrong!</p>
    </div>
    <?php endif;?>’

    I don’t know how to access the xProfile field I want so I can add it to the loop. I know the profile group_id=1 and the profile field_id=9, but I can’t find anywhere how the profile field_id is linked to a members user_id, so I can’t figure out how to add it to the group_members loop. I think it should look something like this:

    ‘<?php
    function bp_group_member_location() {
    echo bp_get_group_member_location();
    }

    function bp_get_group_member_location() {
    global $members_template;
    // Write code here to return the value of profile group_id=1&field_id=9 for member
    }
    ?>’

    But I don’t know if I should even be looking for the custom profile fields data in the $member_template (which I can’t actually find to see what it does contain)

    Any advice or suggestions would be greatly appreciated, even if it’s just to let me know I’m completely off… I am a beginner and this is my first post here. Please comment if you need more info to be able to answer my question. (I am using BP 2.7.2 and WP 4.6.something)

    Thanks in advance!

    #261863
    Profile photo of tergra
    tergra
    Participant

    Found the source of the issue. I had put the field (First name (Base)) in another group of fields, because it only makes the registration process longer and doesn’t bring anything valuable to the site. But when yo do so, it breaks the registration process for some reason. It no longers makes the required verifications.. I’m now implementing the solution of changing is_required described here by ModemLooper : https://buddypress.trac.wordpress.org/ticket/5373?cversion=0&cnum_hist=3
    It seems to work, I only have a issue with the css (I put a big div with display none before xprofile fields and I’m closing it at the end, just before the submit button, but it puts the submit button on the right as if the xprofile field was there, weirdly/

    Buddypress should really have that in core as this required Xprofile field is really not user-friendly AT ALL. 😉

    Thanks everyone ! 🙂

    #261852
    Profile photo of mrizwanghuman
    mrizwanghuman
    Participant

    We are hosting our blog in a subdirectory (https://domain.com/blog/), not a subdomain (https://blog.domain.com). We are fetching content behind reverse proxy from server B.

    Users cannot upload their buddy-press profile avatar.

    Here is header

    Request URL:http://www.example.com/wp-admin/admin-ajax.php
    Request Method:POST
    Status Code:302 Moved Temporarily.
    I tried following code

    $.ajaxPrefilter(function(options){
    options.xhrFields={
    withCredentials: true
    };
    });
    Your help will be greatly helpful. I already setup header for other ajax call to

    headers[‘Access-Control-Allow-Origin’] = “*”

Viewing 25 results - 1 through 25 (of 4,867 total)
Skip to toolbar