Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 2,476 through 2,500 (of 5,755 total)
  • Author
    Search Results
  • #173445
    auch07
    Participant

    Sorry code I posted back was outdated.

    <?php
    $bpProfileField = xprofile_get_field_data( 'Services Required', $user_id_from_email, $multi_format = 'comma' );
    if ( empty ( $bpProfileField) ):
    ?>
    <div class="profile_fields"><b>Services Provided:</b> <span><?php bp_member_profile_data( 'field=Services Provided' , $user_id_from_email ) ?></span></div>
    <?php else: ?>
    <p><b>Services Required:</b> <?php echo $bpProfileField; ?></p>
    <?php endif; ?>
    <br>
    #173442
    auch07
    Participant

    Thanks for the reply Shane. My apologies for the delay in responding myself but I just got back on working on this issue this weekend here.

    One field I am working on right now involves displaying either Services Required or Services Provided as you can see in the code below. Depending on the type of user you are will determine which field you have filled in thus which field will display on the user profile. Unfortunately my PHP is pretty weak thus the foreach loop you mentioned has me scratching my head. The code below does what I want with the exception of it displaying horizontally instead of vertically. I am hoping you would be able to give me some detailed direction in what way to go for the PHP challenged guy that I am lol.

    <?php
    $bpProfileField = xprofile_get_field_data( 'Services Required', $user_id_from_email, $multi_format = 'comma' );
    if ( empty ( $bpProfileField) ):
    ?>
    <div class="profile_fields"><b>Services Provided:</b> <span><?php bp_profile_field_data( 'field=Services Provided' );?></span></div>
    <?php else: ?>
    <p><b>Services Required:</b> <?php echo $bpProfileField; ?></p>
    <?php endif; ?>
    #173441
    jaxdestroyer
    Participant

    The only way I know how to hide it currently is through css. BP will give your sub group a class name based on what you sub group is called. For example, my sub group is About Me. The class name is about-me.

    To make sure you are getting the right class name I suggest you use Firefox firebug or chromes built in element inspector. You should also see another class name of bg-widget when using either tool.

    To make the css specific for that particular snippet all you need to do in your Themes or BuddyPress child themes style.css

    .bp-widget.about-me{
        display: none;
    }

    This will hide the whole sub group when someone is viewing the profile. It makes sure it has both class names before making it no longer display so the user can still see it when editing their profile.

    If you want to only get rid of specific rows that contain this information then BP still has you covered. They also make a class based on your input field name. Using Facebook as an example again the class is field_facebook. To be as specific as possible without going too overboard in your Themes or BuddyPress child themes style.css put in

    table.profile-fields tr.field_facebook{
       display:none;
    }

    This will only get rid of the one row, however, there is a caveat. If you alternate colors between rows it will still count the hidden field. I suggest that if you are going to use this make sure that the fields are at the bottom of the group so they no longer break flowof alternating colors.

    If you want to do multiple fields just seperate them via a comma as shown below

    table.profile-fields tr.field_facebook,
    table.profile-fields tr.field_twiitter{
       display:none;
    }
    #173437
    noizeburger
    Participant

    Now, that your code makes it possible to show icons in my profile header, is there a way to hide the profile group that helds my input fields? Main reason is, that my youtube and twitter links won’t show in the fieldgroup as a result of the use of a snippet to use oembed-code in my profiles.

    Mryod
    Participant

    Hello! If I’ll add some additional fields to xprofile, and set some of them to required, nothing tells to user in members/user/profile/edit/group/1/ that this fields are required or not. Can someone help me with this? Tryed with new clean wordpress + buddypress (both latest versions) installation with default themes. Nothing changes, looks like a buddypress bug…
    php 5.5.5
    WordPress 3.7
    BuddyPress 1.8.1
    bp-legacy template, bp-default theme: same problem.

    #173395
    MonMidt
    Participant

    Hi.
    I’ve got WP 3.6 and have installed;
    BuddyPress 1.8.1
    bbpress 2.4.1
    BP Profile Search 3.5.2
    BP xProfile User Sync 0.3
    Buddypress Xprofile Custom Fields Type 1.5.7.8

    I’m building a site for registered users and have installed PMPro to administer the memberships. Along the way of creating this site I’ve run across several issues where supportforum-users continue to suggest BuddyPress as solution to these obstacles. I understand that these plugins have great potential for me, but I struggle to understand how to put it to use in the easiest/best way.

    I’ve created my own theme based on _s-theme from ThemeShaper though I’m no programmer, and
    here are my desired functions and issues:

    1. I want users to register and PMPro popup is functioning but leads to WP Register Form and not the form I created in BP. Where do i change this? I’m unable to find a “your-profile” page…

    2. I want registered users to have a static widget in the bottom right corner at all times while logged in. Only a few fields from the register-form is going to appear here, such as avatar, name and city, but this widget is going to have icons/shortcuts to tools or features. Kind of like a personal user-menu. Ex: I’m logged in and want to add something to my list of work-experience. A simple click on the icon in the logged-in-widget will take me there.

    3. I want a gallery-function in the userprofile, so users can upload their artwork, wether it is audio, image or video. What is the best solution to this?

    4. I want users to be able to rate each others work by adding a like button to the gallery-items. And then I’d like the top 10 ratings of users artwork to show on my frontpage in a slide/mediaplayer. Will the Featured Users-plugin solve this?

    5. When clicked upon someones username you will be redirected to this users userprofile-page. How do I do this?

    6. I have 4 different membership-categories. I’ve created a page for each, and now I’d like this page to be a “group-/category homepage”. I tried to install the bbpress forum, but I’m not allowed to choose these pages as forumpage. AND the template for the forumpage is wrong! How do I change this?

    And as if this list was’nt long enough already:
    One of the sites main-features is supposed to be the database. We are going to gather a LOT of information, which I guess will be stored in category-pages.

    7. We need an advanved search-form with radiobuttons/dropdowns for multi-choice. AND we need the userprofile-fields to be linked to this form in order to have the registered users which fit the search appear at the result-listing. Ex: if I choose to search for “actor, male, my-home-town” my registered users who match these criteria will appear.

    I sincerely hope someone find the time to reply and help me out, as I’ve spent weeks banging my head in the wall.
    I must mention that I’m quite new to php, and though I’ve managed it so far, I’d appreciate a “detailed” descripton of ways to solve the issues above.

    #173392
    Marc
    Participant

    Hi there,

    I need to override the BP_XProfile_Field::save() methode. How can I do that ?

    P.S. This question is related to update child xprofile fields

    #173380
    Marc
    Participant

    When you update an profile field, it is first deleted, then re-created. I’m sure of that, after looking the BuddyPress code.

    Why the BuddyPress works like this ? How to prevent this issue, to keep the same ID when the field is updated ?

    I just realise that I didn’t say Hi, to the community! Mistake fixed! I’m sorry.

    #173365
    Marc
    Participant

    I’m currently using buddypress 1.7 and Buddypress Xprofile Custom Fields Type. I’m using custom xprofile fields and it have some child fields which are a selectbox. If I edit an option in selectbox the update is not propagated to the user’s profile already assigned.

    After my research, I found that all children are deleted, then recreated (why the things appened like this ?). So I cannot use the ID, to keep a hand on the xprofile. How can i follow the update on the xprofile option ?

    I’m new to wordpress and buddypress as well and I’m open for any suggestion, or any mistake I did !

    #173354
    MonMidt
    Participant

    Hi.
    I’ve got WP 3.6 and have installed;
    BuddyPress 1.8.1
    bbpress 2.4.1
    BP Profile Search 3.5.2
    BP xProfile User Sync 0.3
    Buddypress Xprofile Custom Fields Type 1.5.7.8

    I’m building a site for registered users and have installed PMPro to administer the memberships. Along the way of creating this site I’ve run across several issues where supportforum-users continue to suggest BuddyPress as solution to these obstacles. I understand that these plugins have great potential for me, but I struggle to understand how to put it to use in the easiest/best way.

    I’ve created my own theme based on _s-theme from ThemeShaper though I’m no programmer, and
    here are my desired functions and issues:

    1. I want users to register and PMPro popup is functioning but leads to WP Register Form and not the form I created in BP. Where do i change this? I’m unable to find a “your-profile” page…

    2. I want registered users to have a static widget in the bottom right corner at all times while logged in. Only a few fields from the register-form is going to appear here, such as avatar, name and city, but this widget is going to have icons/shortcuts to tools or features. Kind of like a personal user-menu. Ex: I’m logged in and want to add something to my list of work-experience. A simple click on the icon in the logged-in-widget will take me there.

    3. I want a gallery-function in the userprofile, so users can upload their artwork, wether it is audio, image or video. What is the best solution to this?

    4. I want users to be able to rate each others work by adding a like button to the gallery-items. And then I’d like the top 10 ratings of users artwork to show on my frontpage in a slide/mediaplayer. Will the Featured Users-plugin solve this?

    5. When clicked upon someones username you will be redirected to this users userprofile-page. How do I do this?

    6. I have 4 different membership-categories. I’ve created a page for each, and now I’d like this page to be a “group-/category homepage”. I tried to install the bbpress forum, but I’m not allowed to choose these pages as forumpage. AND the template for the forumpage is wrong! How do I change this?

    And as if this list was’nt long enough already:
    One of the sites main-features is supposed to be the database. We are going to gather a LOT of information, which I guess will be stored in category-pages.

    7. We need an advanved search-form with radiobuttons/dropdowns for multi-choice. AND we need the userprofile-fields to be linked to this form in order to have the registered users which fit the search appear at the result-listing. Ex: if I choose to search for “actor, male, my-home-town” my registered users who match these criteria will appear.

    I sincerely hope someone find the time to reply and help me out, as I’ve spent weeks banging my head in the wall.
    I must mention that I’m quite new to php, and though I’ve managed it so far, I’d appreciate a “detailed” descripton of ways to solve the issues above.

    #173322
    Hugo Ashmore
    Participant

    If you want a paid option you could check out:

    BuddyNotes

    tayenewm
    Participant

    Is there a way that only profiles that have completed the required profile fields show up in the members directory?

    Right now as soon as they activate their account, they are added to the member’s directory. I need them to be added only after their profile is complete.

    http://www.youngwomeninenergy.com/
    WP 3.5.2
    BP 1.8.1
    Avada theme for Themeforest 3.0.1

    thanks in advance,
    taye

    #173319
    Robert Trevellyan
    Participant

    I don’t know if there’s a way to do it natively in BuddyPress (I’m new here), but s2member can be used to create additional member fields that are only accessible to administrators, and I expect there are other plugins that offer similar functionality.

    koendb
    Participant

    Hi, so I want to give new users the ability to register for a newsletter with a checkbox.
    When I change the checkbox to a text box field in both my form and buddypress everything works just fine.

    $newsletter is either ‘true’ or ‘false’.
    Line of code:
    $meta_update = xprofile_set_field_data( ‘7’, $user_id, $newsletter);

    In Buddypress profile fields I added
    Field Title: ‘Newsletter’
    Required?: Not required
    Field Type: checkboxes
    sort order: custom
    ‘Yes, I want to receive a newsletter’ and ‘default value’ not checked

    When registering a new user with a checked checkbox the checkbox on the new user profile page stays unchecked.

    Any thoughts?

    (WP 3.6, BP 1.8.1)

    teeray
    Participant

    Hi all,

    I’ve done searches and seen the chatter on this, however I’m looking for a definitive answer involving the newer extended profile integration into buddypress.

    The closes I could find was this, but it seems outdated: http://buddypress.org/support/topic/how-to-manage-users-their-extended-profiles/

    I’m looking for a way to allow admin addition of information into certain extended profile fields. The idea here is that the field would be completely hidden to buddypress users, but the field would be added to the user profile, editable via the wp admin, so that it could be filled in by administrators only.

    Has anyone come across anything that would enable this functionality?

    #173277
    martinbeaulne
    Participant

    Well well. I finally found, and I’m surprised the answer didn’t come from this thread.

    It is quite simple, in fact. Just need to use the function:

    
    xprofile_set_field_data($field, $member-id,  $value);
    

    So, with a simple form sending those three values, one can update a single field anywhere. As I wanted to let members update their fields directly from their member profile ( without using the very bad and obscure edit.php ), I put a form and the function in the member-header.php

    My form and function updates three fields.

    Here is the function, somewhere in the member-header.php file:

    
    <?php
    function updatedemo() {
        $id = $_POST['id-member'];
        $liendemo = $_POST['liendemo'];
        $champdemo = $_POST['champdemo'];
        $titre = $_POST['titre'];
        $champtitre = $_POST['champtitre'];
        $description = $_POST['description'];
        $champdescription = $_POST['champdescription'];
    
        xprofile_set_field_data($champdemo, $id,  $liendemo);
        xprofile_set_field_data($champdescription, $id,  $description);
        xprofile_set_field_data($champtitre, $id,  $titre);
    }
    if(isset($_POST['submit']))
    {
        updatedemo();
        
    }
    ?>
    

    And here is the form:

    
    <?php if ( bp_is_my_profile() ) { ?>
    	<form method="post" action="<?php bp_displayed_user_link(); ?>">
    
    	<?php if ( xprofile_get_field_data('25') == "" ) { ?>
    		<img src="http://www.cinemacontact.com/fr/images/form-demo-01.jpg"><br>
    
    	<?php }; if ( !xprofile_get_field_data('25') == "" ) { ?>
    		<img src="http://www.cinemacontact.com/fr/images/form-demo-01-1.jpg"><br>
    	<?php }; ?>
    
    		<img src="http://www.cinemacontact.com/fr/images/form-demo-02.jpg"><br><input type="text" name="titre" size="40"><br>
    		<img src="http://www.cinemacontact.com/fr/images/form-demo-03.jpg"><br><input type="text" name="liendemo" size="80"><br>
    		<img src="http://www.cinemacontact.com/fr/images/form-demo-04.jpg"><br>
    		<img src="http://www.cinemacontact.com/fr/images/form-demo-05.jpg"><br>
    		<textarea style="width:400px; height:75px;" name="description"></textarea>
    		
    		<input type="hidden" name="champdemo" value="lien-4">
    		<input type="hidden" name="champdescription" value="description-4">
    		<input type="hidden" name="champtitre" value="titre-4">
    		<input type="hidden" name="id-member" value="<?php echo bp_loggedin_user_id(); ?>"><br>
    		<input type="submit" value="Envoyer" name="submit">
    	</form>
    	<?php }; ?></h3>
    

    And this actually works.

    Maybe I didn’t ask correctly at the beginning of the thread. All I wanted to know was:
    « Oh, Martin, there is, indeed, a function to update xprofile fields: xprofile_set_field_data(), don’t need to start with edit.php file. »

    🙂

    #173124
    ugcheleuce
    Participant

    @Jobster123: I’m afraid I don’t understand what you mean.

    The success of a directory does not depend on unique content but on whether you can entice users to register profiles. In addition, the success of the directory depends on how easy it is for visitors to search the directory and find the user profiles that fulfils their need. This means that a directory system needs to be easy to use for users who want to register but who aren’t computer literate or who don’t have time to figure out how to beautify their profiles beyond that which is necessary.

    Of course, it would be great if Google could index the directory, but the strength of the directory lies not in the “description” field of each profile page, but in the way all the factual fields have been set up… because those are the things that visitors will search.

    Samuel (ugcheleuce)

    #173114
    Yukon Cornelius
    Participant

    @danbp Thank you man, this is amazing!

    It didn’t do exactly what i wanted, so i made a couple of tweaks. I changed the filter so the messages were added to the profile only, not the member header meta. I also made the statement into elseif, with an array, so it would do what i needed it to, ie show up only if both fields were empty. Here’s my code. It is probably a bit messy, but it does the trick:

    function bpfr_my_message_on_profile () {	
    	
            if ( bp_is_my_profile()) :
    	
    	if ( !$data = bp_get_profile_field_data( 'field=About' ) ) : 
    	
    	echo '<p class="enter-info">Please tell the community a little bit about yourself by filling out the form on the edit tab above.</p>';	
    	
    	elseif ( !$data = bp_get_profile_field_data(array( field=>'vimeo',field=>'youtube') ) ) : 
    	
    	echo '<p class="enter-info">There is nothing here! Spruce up your profile by adding content via the edit tab above.</p>';
    	endif;
    	endif;
    }
    add_filter( 'bp_before_profile_content', 'bpfr_my_message_on_profile' );

    Thanks for all your help. You rock!

    KS Web Designer
    Participant

    Hi, in my header file I would like to display the value of one of my xprofile fields for the currently logged in user. The field ID is “11”.

    Basically I want an output that says something like:
    “Hi [username] – Account Type: [value of field 11]”

    No problem getting the username, but I just can’t seem to access the value of field 11?

    #173014
    shanebp
    Moderator

    Visibility checks are not done when profile data is retrieved ‘outside’ BP_XProfile_Group.

    You can use bp_xprofile_get_hidden_fields_for_user() to do your own check.

    It is reasonable to expect bp_member_profile_data() to include an argument re visibility check.

    So it’s not a bug, but you can create an enhancement request ticket on trac.

    #173005
    trinzia
    Participant

    Same issue (details below)

    In this file {themename}\members\single\member-header.php, is the following code:

    		<?php
    		/***
    		 * If you'd like to show specific profile fields here use:
    		 * bp_member_profile_data( 'field=About Me' ); -- Pass the name of the field
    		 */
    		 do_action( 'bp_profile_header_meta' );
    
    		 ?>
    

    I have some custom profile fields, so I replaced the ‘do_action’ with these:

    		<h3>About Me<h3>
    		<?php bp_member_profile_data( 'field=About' ); ?>
    
    		<h3>Birthday</h3>
    		<?php bp_member_profile_data( 'field=Birthday' ); ?>
    

    When I click on the Edit Profile link, I can change visibility settings, and it appears to save them. BUT the saved settings don’t do anything. In another browser where I’m not logged in at all, I can always see all of the fields listed, no matter which settings were chosen.

    Advice?

    #172975
    martinbeaulne
    Participant

    Hi ! I want to put a simple form on the member-header.php to update three particular fields. The form only shows when a user is seeing his own profile. The three fields are in the same field group.

    I looked at the edit.php file as a template for my new form, and it seemded pretty simple. I’m afraid it is not, since I can’t make it work.

    The form appears all right. The values in the fields appear all right. But when I hit the Save Changes button, it only redirect me from …/misterX/profile to …/misterX/profile/edit/group/1/ and the new values are not saved to the database.

    I tried several things, and can’t get it to work. I don’t understand why.

    Here is the code of my form function, in member-header.php. The group slug is demo-1 and the field numbers are ok because the right values appear in the textboxes…

    
    <div>
    	<form action="<?php bp_the_profile_group_edit_form_action(); ?>" method="post" id="profile-edit-form" class="standard-form demo-1">
    
    		<label for="field_29">Titre </label>
    		<input id="field_29" type="text" value="<?php echo xprofile_get_field_data('29') ?>" name="field_29">
    
    		<label for="field_19">Lien </label>
    		<textarea id="field_19" name="field_19" cols="40" rows="5"><?php echo xprofile_get_field_data('19') ?></textarea>
    
    		<label for="field_20">Description </label>
    		<textarea id="field_20" name="field_20" cols="40" rows="5"><?php echo xprofile_get_field_data('20') ?></textarea>
    
    		<?php do_action( 'bp_after_profile_field_content' ); ?>
    
    		<div class="submit">
    			<input type="submit" name="profile-group-edit-submit" id="profile-group-edit-submit" value="<?php _e( 'Save Changes', 'buddypress' ); ?> " />
    		</div>
    
    		<input type="hidden" name="field_ids" id="field_ids" value="29,19,20" />
    
    		<?php wp_nonce_field( 'bp_xprofile_edit' ); ?>
    
    	</form>
    
    	</div>
    

    Can anyone help ?

    Thanks.

    chronisca
    Participant

    I am creating a Lacrosse site which utilizes several types of membership profiles with custom fields. I understand how to create groups but am not sure how to extend a family membership profile to then register children’s profiles which are then assigned to them.

    Here is how I want to set it up:

    Family membership (Primary parent or guardian)
    – Can add additional parents or guardian profiles
    – Can add one or more children (player) profiles
    – Can add one or more emergency contact profiles
    Coach membership
    Sponsor membership
    Volunteer membership

    The reason that I wish to do this is because when you are signed in as a Family Member and then view the available events (games or practices), I want the Primary Family member to then be able to register for the event and simultaneously select which children they would like to participate in said event.

    Has anyone done this before?

    Cher

    #172857

    In reply to: Dynamic profile fields

    paddelboot
    Participant

    Another approach might be to “fake” those dynamically created fields. Upon saving them, simply collect all data entered and save it into 1 field. When displaying the profile, extract this data into the according amount of input fields.

    bp-help
    Participant

    @shaungreen
    I am not sure I am following you but if you deactivated that plugin and a new user can register and activate an account and login successfully then this is not a BP or bbPress issue. It needs to be taken up on that plugins support forum if you insist on using this plugin. Otherwise you may want to look into alternatives! I have used:
    https://wordpress.org/plugins/bp-force-profile/
    It forces a user to complete the required xprofile fields before they can interact with the site and seem like a good deterrent against spam registrations.

Viewing 25 results - 2,476 through 2,500 (of 5,755 total)
Skip to toolbar