Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 1,626 through 1,650 (of 5,755 total)
  • Author
    Search Results
  • #241425
    Anonymous User
    Inactive

    Hello danbp,

    So far i understand you use bbPress and now you want a members directory, and eventually some additionnal fields on user’s profiles. And most of this should be private or “members only”, right ?
    >> Correct, combined with private bbpress forums on a website with also public content.

    I have set the “members” page I created as private, but it is still displayed when I go on the page as a logged out user. Why is that so?
    Would it work if I would not connect the “members” page with BuddyPress in the settings, set the page to private and pull the dynamic content for the members list by a stortcode?

    I can read into the codex of course, but do I need to learn to code to use BuddyPress?

    Nicole

    #241424
    danbp
    Participant

    Hi @nmschaller,

    bbPress is a separate plugin and BuddyPress doesn’t manage bbPress. For questions about forum settings, you can use the bbPress support.

    When you use BP groups component, you can add a forum to each of them. In this case only, you have to install bbPress. Of course you can also use bbPress as standalone on a BP install, or use bbPress with WordPress, without BP.

    BP doesn’t use “pages” but templates, and the only pages created during installation are in for internal purpose. The “member” page is used to show the member directory, but also profiles or members activities. This dynamic content is displayed on different templates, depending the context, and using WP’s page system to fire all that via a same page slug (aka internal path).

    your-site/members/some/thing/ where /some/thing/ is using his own template part displayed on “members page”.

    So far i understand you use bbPress and now you want a members directory, and eventually some additionnal fields on user’s profiles. And most of this should be private or “members only”, right ?

    The main problem is that you want some custom behave that need some knowledge (you seem to have), but you cannot edit functions.php Unfortunately, this is the place where to add customisation. And what to tell about bp-custom, which is another crucial cusmisation file.

    You want to drive and have no steering wheel ! Annoying… 😉

    The question is Do you need BuddyPress or can you use another solution ? 🙂

    Depends your project, really. Members directory or extended profiles can be done with separate plugins.

    Read here:
    http://chrislema.com/best-wordpress-membership-plugin-2014/

    Or digg into the Codex if you decide to use BuddyPress.

    #241391
    shanebp
    Moderator

    There is a filter hook for displaying profile fields – so you don’t need to hack core files.

    apply_filters( 'bp_get_the_profile_field_value', $field->data->value, $field->type, $field->id );

    Use str_replace to insert your target blank string.

    function swiss_target_blank( $field_value, $field_type, $field_id ){
    	
    	if( $field_id == 123 ) { // get the field_id from edit field url in wp-admin
    
    		$field_value = str_replace('rel="nofollow"', 'rel="nofollow" target="_blank"', $field_value);
    	}
    
    	return $field_value;
    }
    add_filter('bp_get_the_profile_field_value', 'swiss_target_blank', 11, 3);
    #241372
    Swissprice
    Participant

    Hello,

    First of all, thank you for this great plugin which works perfectly on my website.

    In the profile fields I added “Website” so the members can add their own website URL.

    It opens in the same tab and instead I would like it to open in a new tab and this option is not available while creating the field.

    My question: in which file (of the BuddyPress plugin folder) can I add ‘target=”_blank”‘?

    Thank you in advance for your help! 🙂

    #241344
    danbp
    Participant

    Created by @offereins, a long date core contributor: BP XProfile Field For Member Types

    Proof of concept for the implementation of member-type specific profile fields in BuddyPress.

    https://github.com/lmoffereins/bp-xprofile-field-for-member-types

    Have fun !

    danbp
    Participant

    How to create MT is explained above, and you’re lucky, as a brand new plugin was published a few days back by @offereins: BP XProfile Field For Member Types

    Proof of concept for the implementation of member-type specific profile fields in BuddyPress.

    https://github.com/lmoffereins/bp-xprofile-field-for-member-types

    Successfully tested with my custom code(in bp-custom.php), BP 2.3.2.1 and WP 4.2.2

    #241319
    danbp
    Participant

    See if this can help you:
    https://buddypress.org/support/topic/men-woman-couple/

    Also some topics about multi search criteria, like this one
    https://buddypress.org/support/topic/multiple-search_terms-displays-nothing/

    Note also that xprofile fields values are clickable by default. This let users get a list of members who entered same value.

    Field name > Gender, when male is clicked you get all males list.

    For more detailed result, you have to buid your own solution or to use a dedicated plugin. See
    https://wordpress.org/plugins/buddypress-global-search/

    #241298
    danbp
    Participant
    Aethermage
    Participant

    Thank you for your reply @danbp.

    I actually created the profile field myself in Dashboard > Users > Profile Fields to emulate a captcha plugin. For some odd reason it appears under Account Details instead of under Profile Details on the Register page and is missing from the backend so I am unable to edit/delete it.

    #241260
    Whiskyharry
    Participant

    hi Community,

    first of all, my english is not the very best, but I hope you will be able to see the problem:

    After installing Buddypress (with german localization) the registration page seems not to work properly. I get 2 columns: “Account details” and “Profile details”
    in “account details” there are the following fields: Username, email, 2x password
    in “profile details” the username is requested again.

    is this a common issue?

    any idea how to fix it?

    I’m hoping, somebody can help me 🙁

    Quinn Goldwin
    Participant

    Is there any way that I can enable paragraphs in multi-line text fields in xprofile or extended profile info. It’s so frustrating that it removes all the spacing.

    Thanks So much!

    #241154
    sitecats
    Participant

    Hello,

    I’m trying to import a bunch of users through a CSV file. I don’t know what the titles of the columns should be in the csv file for the extended profile fields.

    I created a bunch of fields under the Extended Profile section. When I export the users the extened fields don’t export so I don’t know what the title of the columns should be.

    Example: “user_login” is the username.

    One of the fields I added to the extended profiles is called “Current Chapter”. Do you know what the title of the column in the CSV file for “Current Chapter” would be called? Do you know where I can find that out?

    Chris

    #241044
    shanebp
    Moderator

    If the role is set to vendor and xprofile fields are not involved, then there is a WP hook for that.

    Assuming the group_id is 8, try:

    function jeffery_join_vendor_group( $user_id, $role, $old_roles ) {
    	if( $role == 'vendor' ) {
    		groups_accept_invite( $user_id, 8 );
    	}
    }
    add_action( 'set_user_role', 'jeffery_join_vendor_group', 11, 3 );
    #241005
    danbp
    Participant

    When you use WordPress alone, you can use many plugins for registering.

    If you use BuddyPress, you also use his fonctionnalities.
    One of them, is Members, which comes also with extra components, like extended profile.

    When you use extended profile, it is like using a register plugin for WP, with his own extra fields you can create/add to the original WP registering process. After that, each user can handle/view these fields on his profile.

    Now you have to choose:
    – WP alone, with his poor profile fields
    – WP + BP, with rich profile fields
    – WP + BP, without xprofile component (and users go back to the original profile fields aera).
    – or ask on ninja plugin support for improvement guidance to apply with BuddyPress.

    #240969
    peter-hamilton
    Participant

    One of the few things I not tried much is the add profile fields option, this is where I guess that can be achieved

    Small example on my sites profile

    #240842
    mandilpradhan
    Participant

    Hi.

    I am running WordPress Ver 4.2.2 with Buddypress 2.3.2.1.

    There seems to be some error on my Extended Profile Field pages and there are 14 ‘First Name’ Primary fields on it which I can’t seem to delete (Screenshot of admin and registration page attached).

    I noticed this error after I tried to install the ‘BP XProfile WordPress User Sync’ plugin which failed as it is only meant for older versions of BP.

    The installation is located at http://www.rbsalumni.com. Any help would be much appreciated!

    Error Screenshot

    #240825
    ct25
    Participant

    Today I found there was a member-loop.php added to my theme files. Could this be part of the problem? Should I add the member template file to the theme as well?

    <?php
    
    /**
     * BuddyPress - Members Loop
     *
     * Querystring is set via AJAX in _inc/ajax.php - bp_dtheme_object_filter()
     *
     * @package BuddyPress
     * @subpackage bp-default
     */
    
    ?>
    
    <?php do_action( 'bp_before_members_loop' ); ?>
    
    <?php if ( bp_has_members( bp_ajax_querystring( 'members' ) ) ) : ?>
    
    	<div id="pag-top" class="pagination">
    
    		<div class="pag-count" id="member-dir-count-top">
    
    			<?php bp_members_pagination_count(); ?>
    
    		</div>
    
    		<div class="pagination-links" id="member-dir-pag-top">
    
    			<?php bp_members_pagination_links(); ?>
    
    		</div>
    
    	</div>
    
    	<?php do_action( 'bp_before_directory_members_list' ); ?>
    
    	<ul id="members-list" class="item-list" role="main">
    
    	<?php while ( bp_members() ) : bp_the_member(); ?>
    
    		<li>
    			<div class="item-avatar">
    				<a href="<?php bp_member_permalink(); ?>"><?php bp_member_avatar(); ?></a>
    			</div>
    
    			<div class="item">
    				<div class="item-title">
    					<a href="<?php bp_member_permalink(); ?>"><?php bp_member_name(); ?></a>
    
    					<?php if ( bp_get_member_latest_update() ) : ?>
    
    						<span class="update"> <?php bp_member_latest_update(); ?></span>
    
    					<?php endif; ?>
    
    				</div>
    
    				<div class="item-meta"><span class="activity"><?php bp_member_last_active(); ?></span></div>
    
    				<?php do_action( 'bp_directory_members_item' ); ?>
    
    				<?php
    				 /***
    				  * If you want to show specific profile fields here you can,
    				  * but it'll add an extra query for each member in the loop
    				  * (only one regardless of the number of fields you show):
    				  *
    				  * bp_member_profile_data( 'field=the field name' );
    				  */
    				?>
    			</div>
    
    			<div class="action">
    
    				<?php do_action( 'bp_directory_members_actions' ); ?>
    
    			</div>
    
    			<div class="clear"></div>
    		</li>
    
    	<?php endwhile; ?>
    
    	</ul>
    
    	<?php do_action( 'bp_after_directory_members_list' ); ?>
    
    	<?php bp_member_hidden_fields(); ?>
    
    	<div id="pag-bottom" class="pagination">
    
    		<div class="pag-count" id="member-dir-count-bottom">
    
    			<?php bp_members_pagination_count(); ?>
    
    		</div>
    
    		<div class="pagination-links" id="member-dir-pag-bottom">
    
    			<?php bp_members_pagination_links(); ?>
    
    		</div>
    
    	</div>
    
    <?php else: ?>
    
    	<div id="message" class="info">
    		<p><?php _e( "Sorry, no members were found.", 'buddypress' ); ?></p>
    	</div>
    
    <?php endif; ?>
    
    <?php do_action( 'bp_after_members_loop' ); ?>
    
    jgarturo
    Participant

    I have a client building a site on BuddyPress and using XProfile fields for profile fields. Unfortunately this leaves the data locked in BuddyPress and inaccessible to any other plugins that deal with profiles and user meta (no idea why this hasn’t been updated). I need to be able to hook into the update profile action and copy all the XProfile fields to wp_usermeta. Is there an existing solution to this problem? Thank you

    #240780
    patrix87
    Participant

    Hi, I’ve found a simple way to change that Name field and the sync back to whatever you want it to be.

    1. Make sure you have buddypress with extended profiles installed.

    2. Create 3 field in the base section of Xprofile
    For demo purpose we will name them :

    First name
    Last name
    Nickname
    *(you can name them differently but make sure you update the function accordingly)

    3. Add that code to the function.php of your child theme.

    
    // modified Xprofile sync.
    function xprofile_sync_wp_profile2( $user_id = 0 ) {
    
    	// Bail if profile syncing is disabled
    	if ( bp_disable_profile_sync() ) {
    		return true;
    	}
    
    	if ( empty( $user_id ) ) {
    		$user_id = bp_loggedin_user_id();
    	}
    
    	if ( empty( $user_id ) ) {
    		return false;
    	}
        
        // get first name
        $firstname = xprofile_get_field_data('First name',$user_id );
    
        // get last name
        $lastname = xprofile_get_field_data('Last name',$user_id );
        
        // get nickname
        $nickname = xprofile_get_field_data('Nickname',$user_id );
        
        // create fullname
        $fullname = trim( $firstname . ' ' . $lastname );
    
    	bp_update_user_meta( $user_id, 'nickname',   $nickname  );
    	bp_update_user_meta( $user_id, 'first_name', $firstname );
    	bp_update_user_meta( $user_id, 'last_name',  $lastname  );
    
    	global $wpdb;
    
            //you can modify that line to change the displayed name to something else than the nickname
    	$wpdb->query( $wpdb->prepare( "UPDATE {$wpdb->users} SET display_name = %s WHERE ID = %d", $nickname, $user_id ) );
    }
    add_action( 'xprofile_updated_profile', 'xprofile_sync_wp_profile2' );
    add_action( 'bp_core_signup_user',      'xprofile_sync_wp_profile2' );
    add_action( 'bp_core_activated_user',   'xprofile_sync_wp_profile2' );
    
    

    4. This script also change the display name to the nickname but you can modify it to whatever you want. just replace $nickname in the indicated line by $firstname, $lastname or $fullname

    That’s it

    #240478
    patrix87
    Participant

    Same problem here,

    I’ve even tried to modify xprofile_filter_kses directly to add img tag without any success.

    Apparently the fields are being filtered more than once.

    here’s my modified code

    function xprofile_filter_kses( $content, $data_obj = null ) {
    	global $allowedtags;
    
    	$xprofile_allowedtags             = $allowedtags;
        $xprofile_allowedtags['a']['img']['rel'] = array();
    
    	$xprofile_allowedtags = apply_filters( 'xprofile_allowed_tags', $xprofile_allowedtags, $data_obj );
    	return wp_kses( $content, $xprofile_allowedtags );
    }
    
    #240238
    CodeMonkeyBanana
    Participant

    @shanebp Thanks for the reply.

    […]in any relational table, if an item is assigned to a group ID and that group ID no longer exists in the table that holds group IDs, then that data will not be displayed, ie. orphaned.

    I deleted through the admin panel so I am not sure what was deleted, that was what I meant by asking if is was standard behaviour. Possibly what I should have said is; when a user deletes a group by using the ‘bp-profile-setup’ page to click on the ‘delete group’ button, is buddypresses default behaviour to just drop the group and leave the profile data in the table or does it also iteratively remove the profile fields?

    I can see the reason why you would want to leave the data in the table (and also reasons why you wouldn’t). I had a quick look at the code but I am not familiar enough with it yet to pinpoint the exact code block.

    If fields are not deleted then I guess any fields directly referenced would still be visiable on the site. That may be misleading to user as they may assume deleting a group would also remove fields. However you wouldn’t want a group to be deleted by accident and then a large amount of data be lost. I would guess a system of deleting the group and then updating each profile field to explicitly notify calling functions that their parent has been deleted would be appropriate in the circumstance.

    I have used a relational database before but I am unfamiliar with the logic employed by buddypress to interact with it.

    The behaviour I was was getting was weird. When I deleted a group and created it again no fields were showing. Then when I added a field, it had a value immediately after creating so something weird was going on so I thought I would ask to see if you knew if the profile data gets deleted when a user clicks delete group in admin panel.

    I am starting again now so will pay closer attention to all data as it goes into fresh tables but sometimes it is harder to see to absence of data compared to the addition of new data.

    Why? BP will always create a Base group.

    I am running a multisite where individual user blogs can create their own fields (https://codex.buddypress.org/themes/guides/segregated-x-profile-fields-for-multisite/).

    As the article says:

    This code will not create dummy content, so for every new site you will need to create a Profile Fields group and add profile fields to it manually.

    When I create new site there are no field groups made at all which I assumed is what it was talking about. Also I wanted to have a default set of groups but allow subsite to edit them. If they want to get default groups back they can just delete all their groups and default will be restored. I could add a separate button for that but I just figured I’d do it like this, no particular reason, I am still in early stages of project.

    I think there were other errors at play so starting from scratch with a little more understanding will hopefully enlighten me. I will be duplicating tables this time instead of using meta table.

    #240141
    shanebp
    Moderator

    This is a basic mysql table structure issue.

    The id field is set to auto increment.
    So it you really want the id to be 1, you need to flush the bp_xprofile_groups table.
    But that may orphan any data you have in bp_xprofile_fields or cause mismatches with data in the
    bp_xprofile_data table.

    Perhaps the id field should not be an argument in xprofile_insert_field_group.

    Does it really matter what the id is?

    #240140
    Henry Wright
    Moderator

    Yeah sounds like it could be your database preserving referential integrity. i.e. Can’t delete a profile group unless all fields belonging to that group have been deleted first.

    Check what’s going on by looking at your database. This may help:

    BuddyPress Database Diagram

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