Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 1,676 through 1,700 (of 5,755 total)
  • Author
    Search Results
  • tiquality
    Participant

    Thanks Brajesh, but I didnt find this files, bp-custom.php and member-header.php 🙁

    This is my link profile project: http://tiquality.com.br/intranet/members/admin/profile/

    On the extend profile fields, it should show the mail of wordpress user.

    tks!

    nkeatign
    Participant

    I need to replicate the functionality that exists on users profiles where their xprofile fields are links/clickable and search for that result amongst other members.

    Basically I added all of the users xprofile meta to their standard page (e.g members/username). The meta data links properly on (members/username/profile) but not on their standard page.

    How can I make those same xprofile fields linkable there?

    Jonny MacEachern
    Participant

    I’d like to dynamically populate a checklist or dropdown based off what category terms are currently being used. The end goal is to let users subscribe to specific categories of posts. At the moment I’m manually entering them which is tedious and unmaintainable.

    danbp
    Participant

    Any other idea? Yes !
    Use bbP Signature instead. This plugin has a filtrable function where you can easely add custom fields near signature.

    Activate the plugin. Create a field called signature and add this snippet to bp-custom.php

    function my_bbp_reply_content_append_user_signature( $content = '', $reply_id = 0, $args = array() ) {
    	// Default arguments
    	$defaults = array(
    		'separator' => '<hr />',
    		'before'    => '<div class="bbp-reply-signature">',
    		'after'     => '</div>'
    	);
    	$r = wp_parse_args( $args, $defaults );
    	extract( $r );
    
    	// Verify topic id, get author id, and potential signature
    	$reply_id  = bbp_get_reply_id       ( $reply_id );
    	$user_id   = bbp_get_reply_author_id( $reply_id );
    	if(function_exists('bp_has_groups')) {
    		$signature = xprofile_get_field_data( 'Signature', $user_id );
    	// here we add our custom fields
    		$wowi = '<br>'. xprofile_get_field_data( 'Industry', $user_id );
    		$wowt = '<br>'. xprofile_get_field_data( 'Type', $user_id );
    	}
    	else {
    		$signature = bbp_get_user_signature ( $user_id  );
    	}
    
    	// If signature exists, adjust the content accordingly
    	if ( !empty( $signature ) )
    		$content = $content . $separator . $before . $signature . $wowi . $wowt . $after;
    
    	return apply_filters( 'my_bbp_reply_content_append_signature', $content, $reply_id, $separator );
    }
    
    if ( !is_admin() ) {
    	remove_filter( 'bbp_get_reply_content', 'bbp_reply_content_append_user_signature', 1, 2 );
    	add_filter( 'bbp_get_reply_content', 'my_bbp_reply_content_append_user_signature', 1, 2 );	
    }
    fabwintle
    Participant

    Hi @danbp,

    I Have this plugin indeed, however what I want to do is automatically populate my signature with existing fields. I don’t believe this plugin achieves that. All it does is adds a ‘signature’ field to the BP x profile field that my member would need to populate themselves.

    Any other idea?

    fabwintle
    Participant

    Hi,

    I am setting up a community website for non-savvy businesses.
    I would like the forum signature field to be automatically populated with a selection of fields from the user’s BBpress profile and xprofile fields.

    Is this possible? I am weak in PHP but can follow instructions and I am very motivated.

    Thanks

    #238603
    danbp
    Participant

    It’s built in automatic search feature.

    To deactivate the whole profile links, add this snippet to bp-custom.php or your child-theme functions.php

    function bpfr_remove_xprofile_links() {
        remove_filter( 'bp_get_the_profile_field_value', 'xprofile_filter_link_profile_data', 9, 2 );
    }
    add_action('bp_setup_globals', 'bpfr_remove_xprofile_links'); 

    To remove selectively such profile links, see here.

    #238594
    Tom
    Participant

    Is there a way to create a BuddyPress user (with multiple profile fields) with a function like wp_create_user?

    I have an Excel/CSV with user data that I need to import into WordPress/BuddyPress. The users have a lot of extra info I need to map to profile fields. I have not found a plugin that can do this, so I’m looking into doing this manually.

    Mickey
    Participant

    For example first name – steve, for some reason steve is a link to search for steve and so on with all other fields. I am not sure why its set up like that, but I would like to disable it.

    #238449
    FridaFric
    Participant

    Can I use WP plugin Countries (Import and manage a list of countries into WordPress site as Custom Post Types) for BP drop down box in Profile fields and how?

    #238310
    zeesh49
    Participant

    Hi,

    I am new to wordpress/buddypress. I have windows 7, WP v4.2 and BP v2.2.3.1. I am testing on localhost machine and have also setup a virtual host: buddypress.local:1234/WP

    After activating buddypress (i have set the permalinks to other than default and checked anyone can register), when I try to register, the page just refreshes with all fields filled and the passwords fields reset to empty. How can I fix this? I have the default theme twentyfifteen enabled.

    Further, any ideas on how can I test buddypress features? Do I need a buddypress compatible theme which exposes buddypress features in WP? Or can I use the default twentyfifteen theme to test buddypress features like groups, profile, notifications etc.

    #238258

    In reply to: Activity link

    Supriya Gusain
    Participant

    Hi @henrywright,
    Like if we go to profile page, it has profile image and profile tabs. In profile tab fields like name, age, activities and in activities we have for example Skiing. When we click on Skiing it searches for the members having same activity Skiing.
    But right now the search displays all members with Skiing and i want to show only the user’s with gender preference.
    like for example this url http://sitename/members/?s=Camping

    #238134
    danbp
    Participant

    hi @utahman1971,

    this is the default behave of extended profile fields. Also it’s very handy, as those links became searcheable keywords. This let users click and find other entered same words.

    That said, a bio is generally more personnal, so those links maybe less important…

    Here’s a snippet (bp 2.0.1 +) you can add to bp-custom.php. It let’s you selectively disable those automated linking from some fields and let some other in place.

    function my_xprofile_filter_link_profile_data( $field_value, $field_type = 'textbox' ) {
        // Access the field you are going to display value.
        global $field;
        // In this array you write the ids of the fields you want to hide the link.
        $excluded_field_ids = array(2,6,7);
        // If the id of this $field is in the array, we return the value only and not the link.
        if (in_array($field->id, $excluded_field_ids))
    	return $field_value;
    	
    	if ( 'datebox' == $field_type )
    	return $field_value;
    	
    	if ( !strpos( $field_value, ',' ) && ( count( explode( ' ', $field_value ) ) > 5 ) )
    	return $field_value;
    	
    	$values = explode( ',', $field_value );
    	
    	if ( !empty( $values ) ) {
    		foreach ( (array) $values as $value ) {
    			$value = trim( $value );
    			
    			// If the value is a URL, skip it and just make it clickable.
    			if ( preg_match( '@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@', $value ) ) {
    				$new_values[] = make_clickable( $value );
    				
    				// Is not clickable
    			} else {
    				
    				// More than 5 spaces
    				if ( count( explode( ' ', $value ) ) > 5 ) {
    					$new_values[] = $value;
    					
    					// Less than 5 spaces
    				} else {
    					$search_url   = add_query_arg( array( 's' => urlencode( $value ) ), bp_get_members_directory_permalink() );
    					$new_values[] = '<a href="' . $search_url . '" rel="nofollow">' . $value . '</a>';
    				}
    			}
    		}
    		
    		$values = implode( ', ', $new_values );
    	}
    	
    	return $values;
    }
    
    /**
     * We remove the buddypress filter and add our custom filter.
     */
    function remove_xprofile_links() {
        // Remove the old filter.
        remove_filter( 'bp_get_the_profile_field_value', 'xprofile_filter_link_profile_data', 9, 2 );
        // Add your custom filter.
        add_filter( 'bp_get_the_profile_field_value', 'my_xprofile_filter_link_profile_data', 9, 2);
    }
    add_action('bp_setup_globals', 'remove_xprofile_links');

    If you want to deactivate completely profile fied links, you can use this function:

    function bpfr_remove_xprofile_links() {
        remove_filter( 'bp_get_the_profile_field_value', 'xprofile_filter_link_profile_data', 9, 2 );
    }
    add_action('bp_setup_globals', 'bpfr_remove_xprofile_links'); 
    #238133
    Michael Bryner
    Participant

    Links showing

    As shown in image, the links are added by BuddyPress. They are not added by me. Ever since I added the BIO field for profiles, it has done this. I don’t know for sure if that is a bug or what, but when clicking on it, it just takes you to that members page. It looks as if BuddyPress is tagging certain words in the field to link to the user page. If that is what it is meant for, then sorry for this thread. If it isn’t, then this is a bug.

    Not sure where to put this.

    juliantrueflynn
    Participant

    I had this honeypot working perfect before. Now I made a custom register page and it’s no longer working for no reason. All I did was move the bp-legacy Buddypress to the /buddypress folder to create a child theme for edits. Everything is working besides the honeypot.

    Here’s a link to the code I have in my register page now:
    http://www.codeshare.io/yQACc

    Buddypress build:
    Buddypress Version 2.1.1
    WordPress 4.0.1
    Using DevDMBootstrap3 theme
    I haven’t edited any core files in WP/BP.

    Here’s the code I used that worked previously:

    // BuddyPress Honeypot
    function add_honeypot() {
        echo '';
    }
    add_action('bp_after_signup_profile_fields','add_honeypot');
    function check_honeypot() {
        if (!empty($_POST['system55'])) {
            global $bp;
            wp_redirect(home_url());
            exit;
        }
    }
    add_filter('bp_core_validate_user_signup','check_honeypot');
    #237999

    In reply to: Bp register page

    shanebp
    Moderator

    It would be helpful to your question to get some terminology sorted.

    Example:

    • username aka login name: jayd94
    • display name: Daniel

    In BP, your profile would show:
    Daniel
    @jayd94

    So the name on the BP ‘side’ of register = display name
    And the name on the WP ‘side’ of register = username aka login name
    Both fields are required.

    Using that info, can you restate your question.

    #237961

    Topic: Profile Page

    in forum Showcase
    polkadotheart
    Participant

    Any idea why my profile page is looking like this? I would like the website name and website to be in line with the other profile fields. WordPress is latest version. BuddyPress is latest version.

    Thanks!

    http://her-network.com/members/christina/profile/

    #237895
    Emineminero
    Participant

    Hi, i would like to check if a field is empty or not.
    This would happen when the user Log in.
    Actually i have a Page Template with a piece of code that redirects the person to their profile to edit it, but i would like to detect if the user has the fields completed or not.
    Here is what i’ve been working on, but its not working:

    <?php
    );
    if (bp_get_profile_field_data(‘field=36’) == ""){ //36 is the id of the field 
    i want to check
    ?>
    
    <?php 
    $var1 = bp_loggedin_user_domain();
    $var2 = BP_XPROFILE_SLUG ;
    $var3 = '/edit/group/1';
    $location = $var1.$var2.$var3;
    
    header("location: $location" );
    }
    ?>
    <?php else { ?>
    	<?php 
    
    	header("location: http://www.url.com" );
    	}?>
    <?php endif; ?>
    #237889
    bp-help
    Participant

    @danbp
    Hi Dan @sbrajesh also has a plugin out now that looks to me like it does the same thing as the one in your link and it is also free to download. Cheers!

    BuddyPress Non Editable Profile Fields

    #237885
    danbp
    Participant

    A user contribution on Github, via Twitter ( @xac )
    https://github.com/zacwasielewski/buddypress-lock-profile-fields/

    #237756
    danbp
    Participant

    You said first:
    I would like to create a page for user registration and another page for editing the profile with more options.

    This is a resume of how BP already works.
    The registration page can be extended (BP xprofile component) and user can fill out these additionnal fields from within their profile page.

    Please take a look on Codex, before reinventing the wheel.

    Configure BuddyPress

    User Extended Profiles

    #237710
    mamakobe
    Participant

    Hello,
    This might be an odd question but I can’t seem to find the answer anywhere, I am building a site that will allow users to join in nested groups upon registration. I am facing multiple issues.
    During registration I’d like the user to do the following
    Choose a “governing body” from a select box
    Depending on the choice the user is presented with another select box that contains options (jurisdictions) from the above governing body
    Then after they choose they are presented with another select box that contains “Entities” in the chosen jurisdiction
    Basically cascading selectboxes

    What I have done so far
    Created Groups and subgroups using
    BP Group Organizer
    BP Group Hierarchy
    Created conditional fields using
    Conditional Profile Fields for BuddyPress
    This works fine with one problem, the conditional functionality lies in the fields visibility therefore showing depending on the option rather than changing its values, this would mean I create hundreds of the same fields with different options.
    Also how would I associate these fields with the groups such that after the user has registered they are automatically part of this groups?

    #237479
    mrgiblets
    Participant

    A quick follow up question…

    Can I echo the xprofile_get_field_data fields elsewhere in WordPress (outside of Buddypress) in the same way?

    ie :

    $location = xprofile_get_field_data( 'Location', $user_id );
    echo $location;

    Obviously replacing user_id with the numeric user id.

    #237478
    mrgiblets
    Participant

    Superb, thank you @danbp!

    Not only answered my question but this also gives me the fundamentals to implement further ideas I have for my BP site like displaying profile fields based on user roles.

    Cheers 🙂

    #237469

    In reply to: Custom sort members

    danbp
    Participant

    That is also explained, with filter example, on the member loop codex page !

    See Filtering by Xprofile fields.

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