Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 1,726 through 1,750 (of 5,755 total)
  • Author
    Search Results
  • handyandywilson
    Participant

    Hey guys,

    I am trying to get all options associated to a field without being assigned to a user. I know bp_get_profile_field_data( array('user_id'=>$current_user_id,'field'=>'fieldabc' )); grabs the user data, but how could I do this for retreiving all options associated to a custom profile field?

    I.e. fieldabc has checkbox 1, 2, 3
    user ID has checkbox 1 from fieldabc.
    What I want is to return all checkbox fields from fieldabc.

    Cheers,

    Andrew

    #236032
    RecDC
    Participant

    @mercime,

    Do you recommend I create text/content and install a form plug-in for my ‘register’ page associated with the BPress first before working on adding Member Profile Fields? It just doesn’t seem like it will solve the “user registration is currently not allowed” issue. Thank you for the link there on adding Member Profile Fields (I feel confident in doing that). It just dawned on me that my site should look like this in some ways because the BPress is in use.

    #236030
    @mercime
    Participant

    I created a page for each component in this plug-in and I don’t know what to do next.

    @dleit It depends. You could start adding Member Profile Fields and/or Create Groups and/or install Group and/or Sitewide Forums if you need forums.

    btw, spammers have been removed 🙂

    #235940
    howsepa
    Participant

    Another option….

    If this wont work – i could also use custom fields in the extended profile feature of buddypress and set up a field to contain this ‘category’ information.

    Either would work.. but need to store a category for each user and capture this as they log in.

    #235826
    5high
    Participant

    OK, I’m a newbie with BP but you have to:
    1. edit/set up your registration page form fields that you want in Users > profile Fields.
    2. you can edit the actual text found in the Registration page in registration.php file. Found here on your server: plugins/buddypress/bp-themes/bp-default/registration/register.php
    3. you can edit the actual text found in the Activate page in activate.php file. Found here on your server: plugins/buddypress/bp-themes/bp-default/registration/activate.php

    If you read the getting started docs they help a lot, and then search this forum and on the i/net you’ll find heaps more info.

    Good luck!

    rosyteddy
    Participant

    http://seventhqueen.com/support/forums/forum/kleo/kleo-general-questions

    Hi @sjjenkins

    This should not be very difficult. Some small change in the template file but since they have no downloadable version its difficult to say.
    This may contain some clue –

    Showing some profile fields in member’s profile header not working after update


    Just curious, how does the Whats New box looks like when you use
    buddypress-activity-privacy, buddypress-activity-plus and any Media plugin like rtmedia ?
    Whats your site (if its not private) url ?

    Thanks.

    #235701
    Xander206
    Participant

    I think I got it working although I didn’t quite get the result I expected based on the name “profile visibility”. I expected to see settings like “show my profile to group everyone/members/friends/logged in users”, “show me in the directory”, etc.

    Instead the page that loaded shows the various Profile Fields and allows the use to toggle the visibility of each field. This seems very similar to the controls available when the user when editing their profile (where they can set these same visibility settings).

    This file: …themes/ibuddy/buddypress/members/single/settings.php

    was missing this

     case 'profile'        :
    		bp_get_template_part( 'members/single/settings/profile'        );
    		break;
    #235606
    barodscheff
    Participant

    Hi!

    I would like to filter the members loop after clicking on a link. The filtering itself isn’t the problem because its well documented (https://codex.buddypress.org/developer/loops-reference/the-members-loop/). I just don’t know how to apply the filter and where to write the code.

    For instance my members have the xprofile fields gender and pet. On my homepage I have the following:
    <a href="#">All male members who have poodles</a>
    After clicking on this a new page should be opened which displays all male members with poodles.

    My questions:
    1. How can I tell the new page what should be filtered?
    2. How can I filter for more than one field. In the doc there’s this
    <?php if ( bp_has_members( my_custom_ids( $field_name, $field_value ) ) ) : ?>
    Can I enter more than one $field_name and $field_value (male and poodle)?
    3. Which template do I have to use for the custom members loop?

    Thanks in advance!

    #235559
    rosyteddy
    Participant

    These may help

    wordpress.org/plugins/export-user-data/
    wordpress.org/plugins/wp-users-exporter/
    buddypress dot org/support/topic/exporting-xprofile-fields-to-csv-etc/

    [ My previous reply here had many more links, and it just vanished on hitting submit without any alert message, probably was caught as spam]

    Thanks

    #235473
    tipsy
    Participant

    @danbp Sorry If I’m blurry, been sitting on and of with this since yesterday 🙂

    1. I have 90 users/subscribers.

    2. All users are forced to write a number when they registerer. This I force them to do with BuddyPress Profile Fields. This field have the id 2, xprofile_get_field_data(2)

    2. I have a plugin “WP Excel CMS” were I render out a excel-document with information on a page. Here I also have numbers. And the value of this cells are $entry[1]

    3. Now when I have xprofile_get_field_data(2) and $entry[1] I want to echo get_avatar() of the $user_id in the database who have this number match.

    #235462
    tipsy
    Participant

    @henrywright So I’m trying to get this right, this starting to get more and more fun, even if it doesnt work 🙂

    I say if ($entry[1] is the same as == Profile fields 2 (that the user have been forced to write in that field xprofile_get_field_data(2) ); render avatar from the $user_id that match echo get_avatar($field);

    Is this right thinking? But who do I get the $user_id in?

    This is my none working code for now. (This one is still spits out the default-avatar but doesn’t grab the users avatar)

    
    <?php  
    if ($entry[1] == xprofile_get_field_data(2));  {
         echo get_avatar($field);
    } 
    ?>
    
    tipsy
    Participant

    This is working code that gets the data from a field that registered users have to fill out in their profiles in wordpress:

    <?php 
        $field = xprofile_get_field_data(2, $user_id); 
        echo '<span class="wisfb_carNumber">' . $field . '<span>'; 
    ?>
    

    This is the code that generates data from a Excel-file:

    <?php $data = wp_excel_cms_get("EXCEL-DOCUMENT"); ?>
    
    <?php foreach($data as $entry): ?> 
    
        <?php echo $entry[1]; ?>
    
    <?php endforeach; ?>
    

    Now I want to do this:

    If the number witch is generated in:
    <?php echo $entry[1]; ?>
    is the same number as in the users “Profile fields” witch is 2:

    $field = xprofile_get_field_data(2, $user_id);
    

    get this users avatar:

    echo get_avatar();
    

    Does anyone have an idea on how to do this?

    This is the code I’m trying now. This one spits out the default img but aint getting the users avatar:

    <?php  
    if ($entry[1] === xprofile_get_field_data(2, $user_id));  {
         echo get_avatar($field);
    } 
    ?>
    #235369
    car1979
    Participant

    Hi everyone!

    I have a custom field in the registration page asking the new user to give us his/her ideas of what’s on their mind about a personal project so we can help him/her make it possible.

    The thing is that I need that custom field to be part of the notification email that the admins recieves whenever somone registers.

    I tried to follow the instructions given here:
    https://buddypress.org/support/topic/using-xprofile-fields-in-notification-mail/

    But I’m not sure whre to put this code. In the functions.php? Is that code right?

    Thaks ahead!

    tipsy
    Participant

    Hey, I’m kinda stuck for a day now got a tips to check the database, but can’t find any solution.

    I use this to get a avatar:
    <?php echo get_avatar(1); ?>

    Then I use this to get the name:

    <?php 
    	$user_id = 1;
    	$key = 'first_name';
    	$single = true;
    	$user_first = get_user_meta( $user_id, $key, $single ); 
    	echo '<span>' . '' . $user_first . '</span>'; 
    ?>

    This above works great but when I now have created “profile fields” with BuddyPress in the user area I trying to do the same thing but can’t get the right result out of it.

    <?php 
    	$bp_get_member_user_id = 1;
    	$key = 'field_2';
    	$single = true;
    	$user_last = bp_get_user_meta( $bp_get_member_user_id, $key, $single ); 
    	echo '<span>' . '' . $user_last . '</span>';  
      ?>

    In this code above I have found that the field has the name field_2, but this aint right? If I change it to first_name it generate the first_name How can I find the real field name?

    AfromanJ
    Participant

    Basically Ive been asked to fix this field problem on someone elses website, Ive just been given access to FTP so can now make changes to the server files.

    They are using a theme called Huddle and have BuddyPress install on the latest version:
    http://themeforest.net/item/huddle-wordpress-buddypress-community-theme/835549

    The theme folder has a members folder in for BuddyPress, which i assumed was the standard for BuddyPress. I have overridden the templates you suggested in /themes/huddle/members/single and the issue is still present.

    I switched to a default WordPress theme to test compatibility and the fields are working like normal. So the issues is with the Huddle theme, now that its using the correct profile-loop and edit templates im not sure what the problem can be?

    Hugo Ashmore
    Participant

    Those two fields do work fine, I suspect that you are working with an older version of the view & edit templates? The manner in which xprofile fields are looped to be displayed changed so you will need to grab latest versions of these templates from the bp-legacy directory in the core plugin.

    AfromanJ
    Participant

    I am trying to add a new xProfile field to be displayed on the user profile pages.

    The two that are not working are URL and Number fields.

    When clicking on profile > edit I can see the HTML is not correct and the new field has not been rendered. This is what the html looks like:

    <div class="editfield field_9 field_facebook optional-field visibility-public field_type_url"><p class="description"></p></div>

    All the other fields are working and have been tested.
    – What am I doing wrong?
    – Is there a work around?

    #234912
    Outdoorsmen
    Participant

    There was an interesting article on wpmudev.org that shows how to add the profile fields and a few other tricks. The hardest part was determining the exact location for the data.

    Thanks for your help.

    #234906
    danbp
    Participant

    Bumping after 20mn is a bit abused, no ?

    If you use BP, you can edit, add or remove custom profile fields if you activate the extended profile component.

    To add an external plugin to the user profile edit, try to add it to the profile template.
    Or modify the plugin so he use BP specific templates.

    BuddyPress Plugin Development

    Add Meta Box to Admin Extended User Profile


    and much more to read on codex and forum.

    #234894
    amitjethva16
    Participant

    I want to edit other external fields but those are update but I want to include that page in user profile edit page

    I am using other plugin for add more field for user .. I am using pi-register but I want include pi-register page into buddypress user profile page -> edit

    How it is possible..?

    #234895
    amitjethva16
    Participant

    I want to edit other external fields but those are update but I want to include that page in user profile edit page

    I am using other plugin for add more field for user .. I am using pi-register but I want include pi-register page into buddypress user profile page -> edit

    How it is possible..?

    #234830
    shanebp
    Moderator

    This works for me. It’s basically just a cleaner version of what eberger3 did.
    You’ll have to hack the ‘where’ clauses if you want to include search terms.

    function add_sortby_price() { 
    ?>
    	<option value="price">Price</option>
    <?php
    }
    add_action( 'bp_members_directory_order_options', 'add_sortby_price' );
    
    function users_sortby_price( $object ) {
        global $wpdb, $bp;	
    	
        // Only run this if price option is selected
        if ( ! in_array( $object->query_vars['type'], array( 'price' ) ) ) 
    	return;
    	
    
        $field_id = $wpdb->get_var( $wpdb->prepare( "SELECT id FROM {$bp->profile->table_name_fields} WHERE name = %s", $object->query_vars['type'] ) );
    		
         $object->uid_name = 'user_id';
         $object->uid_table = $bp->profile->table_name_data;
         $object->uid_clauses['select']  = "SELECT u.{$object->uid_name} as id FROM {$object->uid_table} u";
         $object->uid_clauses['where'] = " WHERE " . $wpdb->prepare( "u.field_id = %d", $field_id ); 
         $object->uid_clauses['orderby'] = "ORDER BY u.value";
         $object->uid_clauses['order']   = "ASC";		
    		
    }
    add_action( 'bp_pre_user_query', 'users_sortby_price' );
    #234792
    danbp
    Participant

    BuddyPress was made to extend WP standart profile fields. Normally you haven’t to use WP’s profile fields (aim, jabber, bio, etc) I you need a bio you recreate one.

    The only required fields for profiles at the registering level are 4 by WP (username, email, password & pwd confirm) and the Base (field group) Name field which is added by BuddyPress.

    If you use bbpres as standalone forum aside BP, you can syncing with wordpress

    #234772
    Matthias
    Participant

    Did not find a solution to work it out with the standard wordpress fields.
    The only way to go around this problem, was setting up xprofile fields…

    –Q–Shadows
    Participant

    I am using mycred on my website and would like to display users rank with logo in the users profile area. I know the shortcode for displaying the rank with image is –

    echo do_shortcode( ‘[mycred_my_rank show_title=”1″ show_logo=”1″ user_id= ” bp_displayed_user_id();'”] );

    The issue I am facing is how do it put this shortcode in the profile area of members without changing the core files.

    Would really appreciate if anyone could provide some help on this.

    Cheers 🙂

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