Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 2,076 through 2,100 (of 3,589 total)
  • Author
    Search Results
  • I working on getting a list of members based on the fields they selected on the extended profiles fields in buddypress. Here is my code

    {
    global $wpdb;
    $membership_group = “Orange Membership (30,000 Naira/Year)”;
    $db_query = “SELECT user_id FROM wp_bp_xprofile_data WHERE field_id = 33 AND value = “” .$membership_group .”””;
    $match_ids = $wpdb->get_var($db_query);
    $get_these_members = ‘include=’ .$match_ids;

    if (bp_has_members($get_these_members, ‘per_page optional=9’)) { ?> //Some Codes here
    ?>
    }

    The result is returning just the first member it gets from the query instead of a list of members. Please what i’m i doing wrong.

    Thanks

    #135611

    In reply to: Group Friend invite

    wiesson
    Member

    Thanks for reply. I’ve found my error! I habe made a big mistake. I deleted the wp_bp_xprofile_fields id=1 (name) …

    i created a new tab for the profile, switched the name field to the new tab and then deleted the new tab (forget to pull the name-field out^^) …. no its working correctly. thanks for your help!

    #135547

    In reply to: Private profile fields

    John – have you resolved this question? I’m interested in doing the same thing… would be grateful for guidance if you’ve been able to achieve what you described.

    shanebp
    Moderator

    What does this mean “matches the page” ?

    You need to know the field_id (numeric) of the profile field(s) you want to match.
    Take a look at this:
    https://buddypress.org/community/groups/creating-extending/forum/topic/search-member-profile-fields-by-url/

    #135465
    shanebp
    Moderator

    Untested, but try this:

    `
    add_action (‘xprofile_updated_profile’, ‘profile_change_notify’);
    function profile_change_notify ($id, $posted_field_ids, $errors) {
    $global $wpdb;

    if( $errors )
    return;

    $names = ”;

    foreach( (array)$posted_field_ids as $field_id ) {
    $sql = ” SELECT name FROM wp_bp_xprofile_fields WHERE id = ‘$field_id’ “;
    $name = $wpdb->get_var( $sql );
    if( $name == ‘Country’ || $name == ‘City’ )
    $names .= ‘ ‘ . $name;

    }

    if( $names != ” ) {
    $user = new WP_User ($id);
    wp_mail (‘myname@mydomain.com’, ‘Subject ( ‘ . $user->user_login . ‘ just updated the Profile )’, $names);
    }
    }
    `

    fmeroney
    Member

    This Plugin may help, tested on a single site, hasn’t been tested on a multi-site install. I was having the same issue, so I had this developed. Let me know if it works for you.

    FYI: I submitted it to WP for inclusion in their repository, should be there soon.

    http://scenicjobs.com/wordpress-plugins

    #135370
    enderandrew
    Member

    I’m looking to do something similar but for a template. I’d like to have an author bio at the top of author pages.

    shanebp
    Moderator

    If you’re trying to load members-overview.php as a separate page, take a look at this plugin:
    https://wordpress.org/extend/plugins/allow-php-in-posts-and-pages/

    If not, then use the bp-custom approach I mentioned above – you’ll need to learn it anyway.

    Basically, you need to ask better questions, ie. what, where – exactly, why etc.
    Use http://pastie.org/ and show your code.

    thirstcard
    Member

    members-overview.php only loads when i put locate_template( array( ‘members/single/members-overview.php’), true ); into member-header.php and then display the member profile page.

    I need to get members-overview.php to work outside the loop. The idea is to be able to display profile fields anywhere and not just display them on the member profile page.

    odarma
    Participant

    @mercime i reinstall everything form 0 using a backup of my Data Base and it fail, so i think its an error in my DB what is wrong, so maybe ill have to reset my page :(

    shanebp
    Moderator

    Are you sure members-overview.php is loading ?
    Do a simple echo in that file to check.

    also try : locate_template( array( ‘members/single/members-overview.php’), true );

    thirstcard
    Member

    Thanks shanebp but I do need to create members-overview.php.

    How can I insert profile data into this file once i’ve created it?

    bp_get_profile_field_data( ‘field=Location’ ); doesn’t seem to work so I am assuming I need to have a loop somewhere which makes the profile data available to that file?

    Hope someone can give me some pointers on this?

    odarma
    Participant

    @mercime it didn´t work so ill to reinstall from 0 and then mount a backup of my DB and my wp-content y hope it fix it.

    shanebp
    Moderator

    So overview.php creates some html that you want to reuse in various template pages ?

    You probably better off just creating a function in bp-custom.php.
    Then call that function wherever you like.

    #135237
    perywinkle
    Participant

    Hey Thanks @shanebp
    I’ll give that a try…

    gmxperry
    Participant

    Actually, I think I got it. I’ve just put a link in the BP profile and WP profile so at least the user can access those fields to edit.

    gmxperry
    Participant

    That’s true, I hadn’t even thought of that. Is there any way for me to add a link in the “Edit” profile option which will direct them to the WP profile?

    I guess I should say, I’m sure there’s a way, I’m just not sure which file I would have to make changes to in order to get that to display properly.

    Thanks for your reply!

    Paul Wong-Gibbs
    Keymaster

    Even if you hooked it to the correct place, I doubt that the form save handler would work.

    gmxperry
    Participant

    Another update: Right below where I found those hooks, I also found the code that actually generates the fields and whatnot. If there is a way for me to directly copy-and-paste that right into the BP profile edit page somehow – or even create fields that can be associated with those liveTV fields – I’ll do that too.

    Thank you again for any help!

    #135136
    fallingup
    Participant

    I created a new user, and still can not edit default (name) fields

    #135135
    @mercime
    Participant

    With Gravity Forms disabled, register a new account with only BP profile fields you created. Then check if you can edit profile with default BP profile fields.

    gmxperry
    Participant

    Okay, I think I’ve identified the fields in question and the code in question, but I’m not sure how to implement it. Here’s the section of code from the addon that hooks the new user fields into the WordPress profile:

    `//Now hook to create extra profil fields`
    `add_action( ‘edit_user_profile’, ‘livetv_show_extra_profile_fields’ ); `
    `//When the current on the current profil has capabilties to edit -> display`
    `add_action( ‘edit_user_profile_update’, ‘livetv_save_extra_profile_fields’ ); `
    `//When the current on the current profil has capabilties to edit -> update`

    `add_action( ‘show_user_profile’, ‘livetv_show_extra_profile_fields’ ); `
    `//When the current on the current profil has capabilties to show -> display`
    `add_action( ‘personal_options_update’, ‘livetv_save_extra_profile_fields’ ); `
    `//When the current on the current profil is the current and edit -> update`

    I can see where it hooks the new fields into the default user profile, but how do I update those hooks for BuddyPress? I found some hooks that sounded similar but none would actually add those to the proper spot in the “Edit” page for the extended profile.

    Help please! Thank you!

    #135098
    Sandie
    Participant

    I’m looking for a Buddypress compatible membership application plugin with functionality along the following lines:
    – The user should be presented with an application/registration form, with some mandatory and non-mandatory fields.
    – On completion, the application is submitted to a pending queue.
    – From the pending queue selected user roles should be able to ‘approve’ or ‘reject’ the application.
    – unapproved applicants have no access to the member content

    ‘Nice to have’ extras:
    – ability to select which of the registration fields (if any) should be displayed on the member register
    – ability to e-mail user: (i) confirming application submitted (and add a message regarding typical review times, etc.) (ii) approval/rejection e-mail templates and triggers, (iii) Welcome e-mail
    – application management in the front-end
    – ability to grant unapproved members limited access to membership areas, e.g. possibly to one forum only.

    I’m wondering whether something already exists? Be good to hear from anyone with suggestions. Many thanks.

    @mercime
    Participant

    Deactivate all plugins except BuddyPress and change to bp-default theme to begin isolating what’s causing the strange behavior.

    #135066
    bojan85
    Participant

    I have looked over the forums and found several threads concerning this function but there seem to be no apparent solution to this issue. I would love an answer from somebody who has deeper understanding of buddypress to see if this is possible to accomplish or not.

    Is it possible to create multiple different registration forms or different fields to fill in depending on what the user selects when registering?

    All help would be much appreciated!

Viewing 25 results - 2,076 through 2,100 (of 3,589 total)
Skip to toolbar