Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 1 through 25 (of 4,646 total)
  • Author
    Search Results
  • #253044
    Profile photo of yoast79
    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.

    Profile photo of frkparent
    frkparent
    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
    Profile photo of yoast79
    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
    Profile photo of sharmavishal
    sharmavishal
    Participant
    Profile photo of balmainboy
    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
    Profile photo of sharmavishal
    sharmavishal
    Participant

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

    #252937
    Profile photo of BobSD99
    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
    Profile photo of shanebp
    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
    Profile photo of Jeff
    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
    Profile photo of BobSD99
    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.

    Profile photo of BobSD99
    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?

    Profile photo of Naomi
    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
    Profile photo of gregsee
    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

    Profile photo of modemlooper
    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 )

    Profile photo of modemlooper
    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
    Profile photo of modemlooper
    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.

    #252856
    Profile photo of modemlooper
    modemlooper
    Moderator

    Any profile fields you create in the admin that are in the first section are automatically added to the registration form.

    User Extended Profiles

    Profile photo of gregsee
    gregsee
    Participant

    Hi folks,
    Running latest WordPress and Buddypress.
    How can I add BP profile fields to the Registration form. I dont want to use a new custom field in Profile. I want to include/use those that are aleady there in the BP profile.
    I dont need much, just Name, Website etc. but I would really like them required. Is there nowhere to easily edit the reg form?
    Thanks

    #252794
    Profile photo of mairaj
    mairaj
    Participant

    Ok thank you! I was by the way referring to the custom xprofile fields that I have on my current site (the multisite one that I have now).

    I assume when I import the back up database file to the new site those custom xprofile fields would be created automatically.

    #252786
    Profile photo of mairaj
    mairaj
    Participant

    Thank you for the reply 🙂 Since you have suggested to export TABLES OF WP_xprofile, I believe I don’t need to create any xprofile fields in the new installation.

    Profile photo of carrieoke13
    carrieoke13
    Participant

    Hi,

    I’ve added an extended profile using xprofile fields, and I’m displaying some of the fields on the members list page. But, if someone has left a field blank, their profile is displaying the data for the last member who did complete that field. (So, if I didn’t put my city but the person displayed before me did, that person’s city is showing in my profile.) You can see what I mean here: http://yarngroup.wpengine.com/members/

    I copied members-loop.php to a buddypress folder in my main theme folder, and here’s the code I added to display the name, city and state:

    <?php
    
    				/**
    				 * Fires inside the display of a directory member item.
    				 *
    				 * @since 1.1.0
    				 */
    				do_action( 'bp_directory_members_item' ); ?>
    
    				<?php
    				 /***
    				  * If you want to show specific profile fields here you can,
    				  * but it'll add an extra query for each member in the loop
    				  * (only one regardless of the number of fields you show):
    				  *
    				  *bp_member_profile_data( 'field=the field name' );
    				  */
    				  
    				  
    				  bp_member_profile_data( 'field=Your Name' );
    			
    				  echo '<br />';
    				 bp_member_profile_data( 'field=City' ); echo ', '; bp_member_profile_data( 'field=State' ); 
    				  echo '<br />';
    				
    					  
    				?>
     
     <a href="<?php bp_member_permalink(); ?>">View Member Profile</a>
    			<div class="action">
    
    				<?php
    
    				/**
    				 * Fires inside the members action HTML markup to display actions.
    				 *
    				 * @since 1.1.0
    				 */
    				do_action( 'bp_directory_members_actions' ); ?>
    
    			</div>
    
    		</li>
    
    			
    	<?php endwhile; ?>
    
    	</ul>
    <div class="clear"></div>

    Am I missing some code? Thanks!

    #252682
    Profile photo of riseUp
    riseUp
    Participant

    Hello.

    When user goes to Profile –> View, I currently see that the user can add Email Address, Describe Yourself, and Website.

    In BuddyPress administration, is there any way to add more fields to the View page for users to add more information about themselves? Thank you!

    #252630
    Profile photo of Henry Wright
    Henry Wright
    Moderator

    This doesn’t happen for me. When I set the page “Register” to a static front page, I can still see custom profile fields in the sign up form. Can you post some details about your set up?

    • Theme
    • Plugins active
    • Do you use custom code snippets in bp-custom.php or functions.php?
    • etc
    #252488
    Profile photo of shadorfeo
    shadorfeo
    Participant

    this has already been asked before but i can not figure it out…

    i make a new page for registration and one for activation but when i log out and then go to the register page it shows just a blank page with the title “Registration” on it and nothing else…

    is there a code i have to put into the page?

    i am using the latest version of wordpress and buddypress on my site and wordpress is installed in the root directory.

    i tried added the profile fields and registration is open to everyone.

    i am using the default theme and it just does not work at all…

    what am i doing wrong?

    Thanks for the help in advance.

    EDIT
    never mind i fixed it im not sure what i did but it just showed up lol

    Profile photo of Naomi
    Naomi
    Participant

    I’m running WP 4.5, BuddyPress 2.5.2, Twenty Twelve theme and TML 6.4.4

    I posted this as TML support and was told it’s a Buddypress issue

    I added custom TML fields when people register (city, state, and reason for wanting to join the site) following instructions here: https://www.jfarthing.com/development/theme-my-login/adding-extra-registration-fields/

    the fields are working as needed when users register. But since they aren’t xprofile fields, they aren’t showing up on BuddyPress member profile pages.

    How can I make them show up on member pages so all viewers can see where people are from (city, state) and also on the member directory.

    Site is here: http://www.charlottemasoneducation.org

    Thank you.

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