Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 2,701 through 2,725 (of 5,755 total)
  • Author
    Search Results
  • #166548
    Hugo Ashmore
    Participant

    Always perform a quick search first, sort of topic that has come up a few times.

    https://buddypress.org/support/search/?bbp_search=profile+fields

    keep scrolling down through them, you’ll find example code to work from.

    Tudmak
    Participant

    At the moment I have a few profile fields for every member, and I would like to write a conditional based on the members’ choices in their profile.

    For example, if in the registration I had three chekboxes, names “A”, “B”, “C”, I would want something that would look like this:

    if (/* User chose A */) { /* do this*/;}
    
    elseif (/* User chose B */) { /* do this*/;}
    
    else (/* User chose C */) { /* do this*/;}

    Any ideas? Thanks in advance!

    #166516
    SadNinja
    Participant

    http://wpmu.org/add-birthdate-email-and-url-fields-to-buddypress-profiles/ lets me add custom fields which is good enough for me. IDK why I didn’t find this sooner but maybe some other dumb person will find this and it will save them some time.

    #166495
    Eugene
    Participant

    I’ll certainly look into this solution more.

    When I started I was new to WordPress. Now I’m new to BuddyPress so am looking at the feasibility of integrating or replacing what I’ve written. I have a lot of specifc business rules in the profile I’ve written so I would prefer to use what I have, not to mention not to throw away all my work. The hidden but required fields is just an example of one of the many business rules I’ve written in my plugin.

    #166493
    Hugo Ashmore
    Participant

    No they wouldn’t as you are working in a child theme.. aren’t you! if not you should be.

    I’m not sure but scanning your post possibly suggests smething amiss in your understanding of BP, as modemlooper points out hiding fields is easy and along with the privacy controls on BP profile fields you can ensure that they are set to both required and only editable by admins so not sure why you need your custom form, but may have overlooked the reason.

    #166485
    Brajesh Singh
    Participant

    If you guys mean the the sites from the navigation, then you can use the following code in either your theme’s functions.php or bp-custom.php

    
    function bpdev_remove_blogs_nav(){
        global $bp;
    
        bp_core_remove_nav_item($bp->blogs->id);//
    
    }
    add_action('wp_loaded','bpdev_remove_blogs_nav');
    

    Hope that helps.

    #166475
    Sea Jay
    Participant

    Follow-up. One of our users just confirmed this problem on Mac Firefox and Safari:

    After putting in my registration information and hitting the submit button it takes a long time to process and the result I get is the screen shot below. [404 Fancy Meeting You Here… back on the /register/ URL]

    #166446
    inge12
    Participant

    Leofitz, WangGuard will check your user base for spammers and delete them.

    See https://wordpress.org/plugins/wangguard/

    The author says that “WangGuard not only protect your site from sploggers, spam users or unwanted users, WangGuard cleans your database from them. No plugin or service does this, only with WangGuard you will get this feature,” and I believe him. His English may not be too good, but the plugin is really outstanding.

    There’s just one consideration for you: In order to have your database cleaned up, you will have to submit far more than 500 queries the first month. Perhaps you can arrange to pay for a month?

    Here’s my suggestion to reduce database queries after that. (It worked for me.) Buddypress allows for the customization of User Profiles. Add a couple of questions that require a certain amount of intelligence to answer and make them required. That means the form will not be submitted either to WordPress or to WangGuard if the required fields are not filled out. It’s not fool-proof, but it decreased queries on my very busy site to just a few a day.

    Incidentally, I added a question, “How do you plan to participate?” Among the choices offered the user are these:
    “I want to increase my online presence.” and
    “I want to sell my stuff.”

    We don’t need anyone not bright enough to figure out that these replies do not make the user desirable. Now all I need is a script to automatically kick out users who choose these replies. 😉 (As it is, they can be manually deleted if other users report them.)

    I don’t know what happens to a group when all the users are unsubscribed, so this may not be precisely what you are looking for. But WangGuard will make your site secure against almost all sploggers. (One registrant passed all tests on our site, and we had to delete manually, but that person must have registered manually too.)

    Good luck!

    Inge (http://ssnet.org)

    #166445
    Renato Alves
    Moderator

    Good one man… Post here if you come with the solution.

    #166414
    modemlooper
    Moderator

    You can hide fields from being edited easy. in members/single/edit.php you can exclude fields by ID. Use comma separated list.

    if ( bp_has_profile( 'profile_group_id=' . bp_get_current_profile_group_id() . '&exclude_fields=2,3,4' ) ) :

    full code example https://gist.github.com/modemlooper/5816548

    Eugene
    Participant

    I’m almost done with a custom implementation of WordPress 3.5.1. It’s a closed community and I have a pretty complex profile page and member directory. I can’t use BuddyPress completely because of specific requirements. For example, some profile attributes are not editable by members, but are required. These fields are populated during member signup, which is also a custom implementation of mine.

    However, eventually I would like to use BuddyPress for most of it’s other community features, such as the activity stream, messaging, forums, etc.

    Any ideas on how I can replace/integrate my profile implementation with BuddyPress? Here are some initial ideas:

    • Override BP profile page with a child theme to use my custom php template to only display the profile not edit it. Is this possible? Then users would use my custom profile form which is in wp-admin.
    • In addition to the above I could hook my profile page to save it’s data in BP’s xprofile tables instead of my custom table.
    • Continue to use my custom implementation but only put the default name field in BP’s xprofile table to “connect” the two profiles together.

    In addition to this, I played around with BP and my implementation and I couldn’t figure out how to filter 2 essential items: links to profile page and avatars.

    1. I have a filter on get_avatar to display the member’s profile headshot, but I couldn’t get BP to display it when I filtered on bp_core_fetch_avatar or bp_core_fetch_avatar_filter.
    2. My member profile page is at /profile/member using a custom specialized page template. Can I filter BP’s profile links to link to this instead of it’s profile page?

    Thanks in advance for any input

    dconrad
    Participant

    I’m having a tough time trying to get member profile fields. I believe any of the following should work, but the only info I can get from these is from bp_member_name(); Any idea what I’m doing wrong here?

    while ( bp_group_members() ) {
    					bp_group_the_member(); 
    					//$role = bp_get_member_profile_data( 'field=Role' );
    					//$role = xprofile_get_field_data('Role', bp_get_member_user_id());
    					$role = bp_get_profile_field_data('user_id=' . bp_get_member_user_id() . '&field=Role');
    					bp_member_name();
    					echo ' role: ' . $role . '<br/>';
    					if ($role == $value){
    						echo 'found user with '. $selection . $value;
    					}
    				}
    luckyrajiv
    Participant

    Hi,

    I am running WP Multisite with Buddypress and bbPress.
    and Now , on BP profile page it adds SITES as another Field. How can i Remove that?

    #166246
    modemlooper
    Moderator

    BuddyPress profile fields are searchable.

    #166136
    kansas3d
    Participant

    Thank you mercime for your response!
    I really appreciate it.

    I tried that plugin already and it’s not bad.

    I’m just not sure how to realise two different user profile pages.
    The yshould look different and have different tabs and fields.

    One user should be free the other one should have a monthly fee.

    Do you know how to realise that?

    Thank you a lot

    #166110
    praveshraheja
    Participant

    any one here to help me
    installed and activated plugin and in widget area it is asking to put Birthday field Name (or ID)

    from where i can get this ?

    and as said in plugin page Birthday field must have been previously created in the Buddypress profile page so i opened USERS >Profile Fields >Add New Field

    here i user date selector to create it and after that in registration page user have to put their date of birth .but from where i can get Birthday field Name (or ID) please help .Thankyou

    #166036

    In reply to: Dynamic profile fields

    Henry
    Member

    @hnla i’ve made a start but have to pop out for a while. You can see where i’ve got to so far

    http://jsfiddle.net/L9U7R/

    #166035

    In reply to: Dynamic profile fields

    Henry
    Member

    @hnla

    Loving the second approach! although not as clean as the first approach, it’ll be much easier to do. jQuery show, hide and toggle could all be used to get the desired effect! i’m going to have a crack at it this weekend…

    Reacton
    Participant

    RESOLVED – None of the buttons, text fields where appearing in profile, comments etc because they are linked to the following field and I had set it to display none.

    p:last-child {
    margin-bottom: 0px;
    display: none;
    }

    #166029

    In reply to: Dynamic profile fields

    Hugo Ashmore
    Participant

    @4ella one bump is sufficient!

    @henrywright-1I think this is going to have attendant issues difficult to deal with. Gravity forms allows for forms with repeater fields and you can then tie submissions into existing functionality but profile fields are going to be hard to deal with, if they aren’t created. The repeater fields are created via JS on submission you have to tie it in to creating new profile field label etc then if you can do that you create those extra for all users.

    What may be a better approach is to add in advance all the fields you may need then on front end hide them with JS and allow user to show them as and when needed, public profile would be set to ignore any empty fields & labels.

    #165986

    In reply to: Dynamic profile fields

    4ella
    Participant

    nice idea, bump

    #165919
    chland
    Participant

    Check the value of the “bp-xprofile-fullname-field-name” entry in the WordPress “wp_options”-table.

    SELECT * FROM wp_options WHERE option_name LIKE 'bp-xprofile-fullname-field-name'

    Its value should match the name of the profile field containing the Member-Name. Usually the same as whats returned by

    SELECT name FROM wp_bp_xprofile_fields WHERE id = 1

    If the value in bp-xprofile-fullname-field-name is invalid (for example: in my case it contained “Name” but I renamed the first profile field to “Lastname, Firstname”), BuddyPress goes bonkers and tries to execute an invalid SQL-query resulting in an empty memberlist.

    The main problem is the code located in “plugins\buddypress\bp-core\bp-core-classes.php” around line 260:

    				} else {
    					$fullname_field_id = $wpdb->get_var( $wpdb->prepare( "SELECT id FROM {$bp->profile->table_name_fields} WHERE name = %s", bp_xprofile_fullname_field_name() ) );
    
    					$this->uid_name = 'user_id';
    					$sql['select']  = "SELECT DISTINCT u.{$this->uid_name} as id FROM {$bp->profile->table_name_data} u";
    					$sql['where'][] = "u.field_id = {$fullname_field_id}";
    					$sql['orderby'] = "ORDER BY u.value";
    					$sql['order']   = "ASC";
    				}
    

    $fullname_field_id is empty if the value in bp-xprofile-fullname-field-name points to an non-existing fieldname.

    Hope this helps others with the same problem.

    #165918

    In reply to: Dynamic profile fields

    Henry
    Member

    bump

    Hunchback
    Participant

    Hello everyone,

    Recently i had this Great Idea ™ of a site that i would like to build and make publicly available. I don’t want to disclose the core idea before it’s online, but it should be free to use for normal people with perhaps some payed features for pro users, to pay for hosting and all that.

    I will however try to explain what my needs are, and if anyone could help me pick the right tools to do it, i’d be very happy. Once i am done, i will share with you the whole thing.
    I’ve spent some time looking at options, such as Elgg, WordPress and now BuddyPress. To be honest, i am quite impressed with BuddyPress, as it almost covers all my needs, right out of the box. However, the main functionality that i need is not. Details to follow.

    So, the idea is to build a community-based site that would allow it’s users to:

    The very basic need: Have their own profile, in which they will be able to create collections of “things”, categorize those things as they see fit, and share their profiles with everyone else.

    Ideally: i want to have Contributors, who will create public collections of things in categories, then regular users will be able pick items from those lists and add them to their profiles, with the option to keep the original (or “official”) information (category, description, etc) OR modify those by changing the category, adding additional info etc. Ideally, the picked items will link to the original, for statistics, tags etc.

    I suppose all that doesn’t come pre-built in a certain plugin, so even the basic functionality will do for now, i will try to build on that later on.

    I tried installing the CataBlog plugin, but i can’t integrate it into the BuddyPress custom user-fields. I am not sure if it’s doable with that plugin or another.

    Anyone got any ideas of plugins to use?

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