Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 1,001 through 1,025 (of 3,608 total)
  • Author
    Search Results
  • #236911

    In reply to: CPT per each BP-User

    Pietro
    Participant

    Thank You dandp …

    Mmm … it doesn’t seems to be enough … I do not really need custom fields into the bp-profiles … I need to connect to any bp-user a PRIVATE Custom Post Type. Something like a post. But personal, which nobody can see, except administrators for instance, or people who is allowed by the user itself …
    … I hope it is more clear …
    I will keep thinking about this. Hopefully I will find a way.

    Thank You.
    Pietro

    #236910

    In reply to: CPT per each BP-User

    danbp
    Participant
    #236909

    In reply to: Username vs Real Name

    danbp
    Participant

    @matthias70,

    these fields are required by the system.
    WP ask for username, password and email. When BP is activated, he uses WP’s name option Public Name so he can rely to WP. This field called Name is the only one which is required by BP for that reason.

    When you visit dashboard > users > your profile, you have a tabed page with profile options (the original WP user manager) and Extended profile (which belongs to BP) where you can edit your profile. On WP’s tab you see login, first name, last name and public displayed name. On BP’s tab there is only Name, which reflects what is in first and or last name.

    In wp_users table, you have user_login, user_nicename and display_name

    user_login and user_nicename have the same content
    display_name contains first and/or last name (if exist from a previous WP install, before BP installation).

    Depending what and where something needs a name to work (avatar, comment, notice, activity, etc), one or the other name option is fired.

    If you don’t need/want real names on front end, you can use this plugin:
    https://wordpress.org/plugins/buddypress-usernames-only/

    #236547
    ch1n3s3b0y
    Participant

    @danbp – I’m guessing this is the function I need order_by_most_favorited() to edit to work with XProfile fields?

    I’ll try it now and see if it works with XProfile fields.

    #236428

    In reply to: Registration Page

    IHaveToDoThis
    Participant

    Go to your profile page on your site. Next to ‘View’ there is ‘Edit’. Click on ‘Edit’ and you can change fields like your name, etc. and you can also see it’s visibility. You can change visibility settings by going to your admin dashboard and playing around with the profile fields under the Users tab. Your users will be able to see their profile visibility under their profile tab and have the ability to change it (if you give them that option).

    Hope this helps! Took me a while to get it too.

    vinay24k
    Participant

    This code is working. But its showing Current user custom fields for any profile i visit. But i want Particular user custom field under particular profile. How can i do that ? I tried adding ,123 as suggested in that documentation but getting error

    <?php do_action( 'bp_before_member_header_meta' ); ?>
    
    	<div id="item-meta">
    
    		<?php if ( bp_is_active( 'activity' ) ) : ?>
    
    				<?php do_action( 'bp_directory_members_item' ); ?>
                                    <?php $theUserID = bp_get_member_user_id();?>
                                       <div id="profile_data">
                                    <li><?php echo get_user_field('gender_id', $theUserID);?></li>
                                    <li><?php echo get_user_field('College_name', $theUserID);?></li>
                                    <li><?php echo get_user_field('course_name', $theUserID);?></li> 
                                    </span>
    	</div>
    
    #236363
    @mercime
    Participant

    then added that to the buddypress pages


    @seph

    Make sure that you didn’t add the Register link under any of the main BP component pages (e.g. Members, Groups, Blogs, Activity) in the menu links.
    Make sure that you didn’t add any text in your “Register” page so that BP can automagically add the Registration Form and the first group of the Profile fields in thepage.
    Make sure that you’re not logged in when you go to the Register page.

    #236227
    somethingelse
    Participant

    ^+1 wow, i totally need this too… DESPERATELY.

    if i had realized just how difficult this was going to be to accomplish,i never would have started this project with buddypress. what is the point of xprofile fields if they are not easily searchable?

    there are so many GREAT things about buddypress, it’s super frustrating that this thing which seems to straightforward is so challenging.

    i have been searching … the “buddypress profile search” plugin is not the answer… it isn’t user friendly enough. I just want one search box – “find a teacher in your city” that will search 4 xprofile fields of all our teachers… ONLY THOSE FOUR FIELDS… and return the results.

    i’ve tried a google site-search tool, too…
    the trouble is that our teachers have bios, and in those bios they often include cities where they have trained, or toured, and we do NOT want those included in the “Find a teacher” results.

    i have Base City, and 3 “additional teaching locations” fields… those, and NAME, are the ONLY fields i want searchable.

    i can pay for help.
    but i figured this would be something simple i could do myself!

    #236219
    ckchaudhary
    Participant
    function wdw_bp_get_field_options( $field_id ){
    	global $bp, $wpdb;
    	return $wpdb->get_col( $wpdb->prepare( "SELECT name FROM {$bp->profile->table_name_fields} WHERE parent_id=%d AND type='option'", $field_id ) );
    }

    You can call the above function passing id of the field( fieldabc in your example ). This will return all options of the field in an array.

    #236094
    @mercime
    Participant

    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?


    @dleit
    please do not install any form plugin for your “Register” page. Leave it blank as BuddyPress will dynamically add the necessary forms. What you need to do is set up the profile fields. Remember that whatever field you add in the first group of the profile field will appear on the right side of the Reigstration form.

    It just doesn’t seem like it will solve the “user registration is currently not allowed” issue.

    After you add the member profile fields/group(s) you want for your community, I suggest going to the admin menu Settings > General and Allow Registrations. BP Codex is your friend https://codex.buddypress.org/getting-started/register-and-activation-pages/

    #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;
    #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);
    } 
    ?>
    
    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.

    #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.

    #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

Viewing 25 results - 1,001 through 1,025 (of 3,608 total)
Skip to toolbar