Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 1,301 through 1,325 (of 5,755 total)
  • Author
    Search Results
  • navyspitfire
    Participant

    I’ve removed the “upload avatar” area from my registration page and instead am using the profile fields “upload photo” field. I’d like the single members page to use the photo uploaded as their avatar.

    I’m using the Sweet Date theme and in the single members theme file is the hook <?php bp_displayed_user_avatar( array('type' =>'full','width' => 580, 'height' => 580) ); ?>. Does anyone know the hook for me to use the image the user uploads via the “upload photo” field?

    #253331
    amaroak
    Participant

    Hi!, I try to integrate api in part registration with custom fields buddypress, but I can not make this save me the contact in the campaign that I need to give the fields to the API but seeing settings buddypress, I realized that if I have 2 textarea does not generate code 2 textarea, but one that I think is the array type, and throws.

    <?php if ( 'number' == 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)', 'vibe' ); ?><?php endif; ?></label>
    <?php do_action( bp_get_the_profile_field_errors_action() ); ?>
    <input type="number" name="<?php bp_the_profile_field_input_name(); ?>"  class="form_field" 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)', 'vibe' ); ?><?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; ?>

    And APIGETRESPONSE.php

    $CAMPAIGN_ID = array_pop(array_keys($campaigns));
    # add contact to the campaign
    $result = $client->add_contact(
        $api_key,
        array (
            # identifier of 'test' campaign
            'campaign'  => $CAMPAIGN_ID,
            # basic info
            'name'      => 'Test',
            'email'     => 'test@test.test',
            # custom fields
            'customs' => array(
                array(
                    'name'       => 'field name',
                    'content'    => 'field content'
                ),
                array(
                    'name'       => 'field name',
                    'content'    => 'field content'
                )
            )
        )
    );

    I need to spend the fields manually to the api so you know you add each field

    Regards

    adpihamat
    Participant

    Hi Everyone

    I’m looking for help with the following logic, if anyone can help it would be greatly appreciated. It is required in the registration and is based on a users selection of a school

    If a user selects a school from the dropdown list ie. School 1, then by selecting that school
    it sets pre-defined groups and assigns the school and the pre-defined groups to the users profile.

    My way of thinking (maybe way off)

    //Input type = select
    School 1
    School 2
    School 3

    //Input type = checkbox
    Group 1
    Group 2
    Group 3
    Group 4

    //Condition: if user selects an option from dropdown field
    if(select id == option value(“School 1”)
    {
    // set these groups checkbox fields as selected
    set group pre-defined-groups(“Group 1”, “Group2”, “Group 4”)

    // assign selected school option to user’s profile
    ??? (select field is only used to allow those groups pre-defined to be used by a new user registering to the site).

    // assign pre-defined-group checkbox field to user’s profile
    ??? (because these groups are set up through buddy press does that mean they should automatically be added)

    }

    if(select id == option value(“School 3”)
    {
    // set these groups checkbox fields as selected
    set group pre-defined-groups(“Group3”, “Group 4”)

    // assign selected school option to user’s profile
    ???

    // assign pre-defined-group checkbox field to user’s profile
    ???
    }

    admins should be able to change school or groups anytime

    Thanks

    #253164
    shanebp
    Moderator

    Your task is very logical – but fraught with danger.

    Have you noticed that emails can be edited from a Profile page via Settings?
    And how a confirmation email is sent?

    And this setting: wp-admin/admin.php?page=bp-settings > Profile Sync ?

    So it’s possible but not easy.
    Display of those fields is fairly simple – but writing handlers to save those fields… eek.

    If it was me, I’d just add Profile fields for bio and website – and move on.

    #253155
    lucaram
    Participant

    Hi there,

    I have extended profile (dashboard > User > Profile Fields) with birthday (day/month/year drop down menu).
    How can a user receive notifications for his friends birthdays?

    Found something here: :https://codex.buddypress.org/developer/function-examples/bp_notifications_add_notification/

    but I don’t know how to modify code.

    Could you please assist?

    Glenn
    Participant

    when i added Xprofile Custom Fields Type, dropdowns for Custom Post Types and Custom Taxonomies are made available. Can anyone show me how I might call the list of editable roles to be included in these dropdown options?

    Very Kind Regards,
    GN

    Frank
    Participant

    Hey guys,

    Couldn’t find a definitive answer so I’m asking here:

    I’m looking for a way to allow users to change their profile infos, including the WordPress core fields (name, email, bio, website, etc.) from their BuddyPress profile edit page.

    I’ve overloaded the profile-loop.php template (I’m using Extended Profile) and the xprofile fields are showing correctly; just need to add the core ones.

    Can anyone tell me if it’s possible and maybe even give me pointers please?
    Thanks!

    riseUp
    Participant

    Hello.

    I want to create a registration page, but it looks like the following fields are the default: User Name, Email Address, Password, and Confirm Password.

    Is there any way to remove the User Name field and add Re-Capcha box onto the Registration Form? And how do I remove the Profile Details verbiage?

    My site is http://www.ymphony.com. Thanks!

    Sofia Woods
    Participant

    Hi there – we’re using BuddyPress to display a list of our members (using WP Members). I have 2 questions

    1. To change the default view of members:

    The page here http://criticalphysio.net/for-members/find-a-network-member/members/ (it’s private so you wont see it) displays our members by default by last active.

    – is there a way to change this to alphabetical by last name?

    perhaps this is by changing the default search filter that displays?

    Currently it displays in this order
    – last active
    – newest registered
    – alphabetical

    see screenshot here

    http://www.awesomescreenshot.com/image/1213436/090403f0cffa15368948681d9db0f375

    2. To display members by first name, last name and country

    Currently the default view for displaying members in the list is by just their username.
    Is there a way to display the following fields instead?
    First Name/Last Name
    Country

    See screenshot here

    http://www.awesomescreenshot.com/image/1213439/9305ae37f2e5943e9de49001537a25ff

    we’re running a child theme of Genesis called Utility Pro – so can edit theme or plugin files and add them to the directory.

    Cheers

    #253044
    yoast79
    Participant

    Hey Henry,

    After some more hours of trying I managed to find the right code to get it done!

    This is what made it work;

    .profile-fields {
    color: #ffffff
    }
    
    .profile-fields {
        background: #000000
    }
    
    .profile-fields tr.alt td {
         color: #ffffff
    }
    
    #buddypress table.profile-fields tr.alt td {
         background: #000000
    }
    

    I’m sorry to bother you with my question.

    Frank
    Participant

    Hey guys,

    Couldn’t find a definitive answer so I’m asking here:

    I’m looking for a way to allow users to change their profile infos, including the WordPress core fields (name, email, bio, website, etc.) from their BuddyPress profile edit page.

    I’ve overloaded the profile-loop.php template (I’m using Extended Profile) and the xprofile fields are showing correctly; just need to add the core ones.

    Can anyone tell me if it’s possible and maybe even give me pointers please?
    Thanks!

    #253022
    yoast79
    Participant

    Hello,

    I’m completely new to WordPress and I’ve just made my first website.
    After hours upon hours of Google, Youtube and asking friends I managed to have a functional website.

    Now I’m at the part of tweaking and fine-tuning and I’m stuck on the zebra-striping in the profile page of Buddypress.
    The profile fields of my visitors are alternating black and white, but since I use white fonts, half of it is unreadable.
    I managed to change the font color with custom CSS, but that doesn’t do the trick. I need to get rid of the zebra-striping.
    Please, a little help is very welcome!

    Theme: Pinnacle 1.3.7
    Buddypress Version 2.5.2

    #252991
    sharmavishal
    Participant
    balmainboy
    Participant

    Hi everyone,

    I’m looking to add the ability for links to open in a new tab from the register profile fields

    Following on from the advice from a previous thread i’ve created a page for my ToA and have applied the link to that page and the checkbox to default. All works fine except the link opens in the same page. I’ve added the target = blank to the html but that part of the code disappears when i save it, meaning the link always opens in the same window. This means the user needs to hit the back button to continue registering for the site if they want to read the ToA.

    Is there a way i can force the link for the terms to open in a new tab?

    #252972
    sharmavishal
    Participant

    i use donmik’s excellent plugin “BuddyPress Xprofile Custom Fields Type” for this…you can add a TOS to xprofile field

    #252937
    BobSD99
    Participant

    A quick followup, I see the permitted field value for the checkbox (in this case) is stored in field 315 in table wp_bp_xprofile_fields – how do I query this checkbox setting value?

    I want to pull the correct value from the database, so in case I update that checkbox field’s option in the backend, I can correctly set it.

    I don’t see a function in /buddypress/bp-xprofile/bp-xprofile-functions.php: that seems to pull this, and nothing is locking in with Google….

    #252927
    shanebp
    Moderator

    It won’t work unless you pass a ‘valid’ value. And you don’t have to use an array for a single value.
    So if you have not changed the option value ( via Users > Profile Fields ) to ‘Subscribe to Newsletter Digest’, it will fail.

    To ‘uncheck’ the box – just delete that row for that user in the _bp_xprofile_data table.
    xprofile_delete_field_data( field name or ID, $user_id )

    #252926
    Jeff
    Participant

    I have a chance to use a third-party plugin for allowing users to “Like” activity entries. I need to first disable or hide the existing “Like” functionality. Is there a setting for this?

    Plugins:
    Akismet (3.1.10) by Automattic
    Awesome Support (3.2.9) by ThemeAvenue
    bbPress (2.5.8) by The bbPress Community
    BuddyBoss Inbox (1.0.4) by BuddyBoss
    BuddyBoss Media (3.1.9) by BuddyBoss
    BuddyBoss Reply by Email (1.0.2) by BuddyBoss
    BuddyBoss Wall (1.2.7) by BuddyBoss
    BuddyPress (2.5.2) by The BuddyPress Community
    BuddyPress Edit Activity (1.0.7) by BuddyBoss
    BuddyPress Xprofile Custom Fields Type (2.4.6) by donmik
    Gravity Forms (1.9.18) by rocketgenius
    Gravity Forms Help Scout Add-On (1.3) by rocketgenius
    Gravity Forms Polls Add-On (3.0) by Rocketgenius
    Gravity Forms Survey Add-On (3.0) by Rocketgenius
    Gravity Forms Trello Add-On (1.0) by rocketgenius
    Gravity Forms User Registration Add-On (3.3) by rocketgenius
    Invite Anyone (1.3.10) by Boone Gorges
    Like Button Voting & Rating (2.1.9) by LikeBtn
    List Plugins (1.4.4) by SedLex
    Maintenance (2.7.1) by fruitfulcode
    Orbit (1.6) by TrueThemes
    POWr Social Feed (1.4) by POWr.io
    POWr Social Media Icons (1.4) by POWr.io
    Remove Dashboard Access (1.1.3) by Drew Jaynes (DrewAPicture)
    Subscribe To Comments (2.3) by Mark Jaquith
    TinyMCE Advanced (4.3.8) by Andrew Ozz
    User Role Editor (4.25.1) by Vladimir Garagulya
    WordPress Social Stream (1.5.15) by Lee Chestnutt
    WPBakery Visual Composer (4.11.2) by Michael M – WPBakery.com

    Thanks!

    #252923
    BobSD99
    Participant

    To keep this simple, and for illustration purpose, I edited the data I wanted to update in the question, which given it’s a checkbox, is confusing.

    I actually want to toggle that element off, so I assume I’d actually either a) update the array to an empty field, or b) delete the entry entirely.

    I assume I want to change the field to an empty string, but now that doesn’t seem as obvious. Some guidance is appreciated on updating this field and any curves a checkbox might throw in working with BP XProfile fields.

    BobSD99
    Participant

    I have created an extended profile field called “correspondence” with a checkbox data type, and the only option is “Subscribe to Free Newsletter.”

    It is showing up properly on the registration form, so when users come in, if they select it, their extended profile is reflecting the data. I’m trying to create a form and function to update this setting, and I’m having difficulty.

    My goal is to both understand the data storage and processes, as well as properly manipulate it. In PHPMyAdmin, in the table wp_bp_xprofile_fields, I see the fields:

    ID 307 “Correspondence”
    ID 315 “Subscribe to Free Newsletter”

    It appears BuddyPress is storing the user’s setting in the table wp_bp_xprofile_data. One user’s entry follows:

    id, field_id, user_id, value
    14828, 307, 15304, a:1:{i:0;s:28:”Subscribe to Free Newsletter”;}

    So I see the data has been serialized and stored as field_id 307. I can thus access this field with the following function:

    $data = xprofile_get_field_data( 307, $userID );
    
    echo var_dump($data) . "<br>\n"; 
    // array(1) {
    //   [0]=>
    //   string(28) "Subscribe to Free Newsletter"
    // }
    
    echo "Setting is $data[0]<br>\n"; // "Subscribe to Free Newsletter"

    So far, so good – I can test for this field. But when I try to update it, I’m running into trouble:

    xprofile_set_field_data( 307, $userID, "Subscribe to Newsletter Digest" );

    Contrary to expectations, this doesn’t seem to alter that field at all.

    I tried updating the value with an array:

    $new_value = array( 'Subscribe to Newsletter Digest' );
    xprofile_set_field_data( 307, $userID, $new_value );

    No change. What am I doing wrong here?

    Naomi
    Participant

    Because adding them as xprofile fields doesn’t add them to the TML registration page that I need to use. Have you looked at the TML instructions? I followed them exactly and they don’t use xprofile fields so it’s glitchy.

    #252863
    gregsee
    Participant

    Hi Modemlooper, thank you, I did manage to work it out. Problem partly due to my WP theme has a social counter plugin that provides a stack of fields for links that I assumed were part of the WP or BP basic profile fields. I have set up some of my new xProfiles fields now and have it working – just need to organise these for groups better.
    Thanks

    modemlooper
    Moderator

    You can update a field with this function

    xprofile_set_field_data( $field, $user_id, $value, $is_required = false )
    
    $fields = field id
    $user_id = current login user id
    $value = inserted value
    $is_required = boolean

    Hook your function to

    do_action( 'bp_core_activated_user', $user_id, $key, $user )

    modemlooper
    Moderator

    BuddyPress users are the same as WordPress so you can create a user using https://codex.wordpress.org/Function_Reference/wp_create_user

    To set profile fields data:

    xprofile_set_field_data( $field, $user_id, $value, $is_required = false )
    
    $fields = field id
    
    $user_id = current login user id
    
    $value = inserted value
    
    $is_required = boolean
    #252857
    modemlooper
    Moderator

    BuddyPress searches username and profile fields to find a member. You would need to develop a custom solution for this. Is this requirement for site admins? If so, you can find members by id in the admin -> Users menu item.

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