Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 1,051 through 1,075 (of 3,575 total)
  • Author
    Search Results
  • #225229
    danbp
    Participant

    hi @kristinrutten,

    have you imported users from an older wp site ?
    Are you hosted on wpengine ? (toc toc @hnla ? )

    Try to use the repair tool: dashboard > tools

    What about avatar settings ? dashboard > general > discussion

    About plugins
    buddypress toolbar was intended for 1.5/1.6/1.7 – outdated now.
    BuddyPress Members Import did you use it more as 1 time ?
    On a default install, WP and BP users are in the same table: wp_users
    In BP settings you can sync WP and BP users. Extended profile fields are stored in 4 other tables: _xprofile_somename
    And WP has is own import tools…
    IMO you can deactivate them.

    Deactivate all plugins, but BP and activate 2013 theme. At this stage the avatars should appear.

    #223908

    In reply to: Members Directory

    danbp
    Participant

    1) https://codex.buddypress.org/getting-started/configure-components/

    2) https://codex.buddypress.org/buddypress-components-and-features/extended-profiles/edit-xprofiles-admin-screen/

    https://codex.buddypress.org/getting-started/guides/displaying-extended-profile-fields-on-member-profiles/

    3) is built in on members directory. Each profile item becames clickable by default, letting users find others having entered the same information.
    Example:
    User A = City -> New York (NY is clickable)
    User B = City -> New York (NY is clickable)
    User C = City -> San Francisco (SF is clickable)

    When user B click on NY he will see user A as search result
    When user C click on SF he will only see himself

    4) He use the buddy menu. This menu can be installed by going to dashboard > apparence > menu. If BP menu is not in the left side, under the other menus, open the screen option (top right corner) and check BuddyPress. Now you can set your BP menu like any other WordPress menu.
    https://codex.wordpress.org/WordPress_Menu_User_Guide

    When you’re new to something, you must read the documentation first. Also before asking on a help forum, you must search if your question wasn’t already asked and answered.

    Happy install ! 😉

    #223419
    ericreynolds007
    Participant

    Thank you. I was able to move the code below in the edit.php file. However, I could only place it below the field input or above the field label. I cannot position it between the field label and the field input.

    <div class="clear"></div>
    
    <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
    
    <div<?php bp_field_css_class( 'editfield' ); ?>>
    
    <?php
    $field_type = bp_xprofile_create_field_type( bp_get_the_profile_field_type() );
    $field_type->edit_field_html();
    	do_action( 'bp_custom_profile_edit_fields_pre_visibility' );
    ?>
    				
    <p class="description"><?php bp_the_profile_field_description(); ?></p>
    
    <?php if ( bp_current_user_can( 'bp_xprofile_change_field_visibility' ) ) : ?>
    	<p class="field-visibility-settings-toggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>">
    <?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?> <a href="#" class="visibility-toggle-link"><?php _e( 'Change', 'buddypress' ); ?></a>
    </p>
    danbp
    Participant

    hi @roddaut,

    don’t thought to much, a theme can influence over all a site, including the admin. This happens in 90% of the issues handled on this forum.

    Thought the latest Canvas was 2014.10.14 – version 5.8.5

    #220263
    TAC28
    Participant

    Thanks again 🙂

    I know how to edit the Profile Fields now.

    I have changed the wording in the register.php file and just want to know where to upload it so the changes will show up?

    #220262
    danbp
    Participant

    Members are the heart of BuddyPress. When a user register on a BP activated site, this user is automatically a “member”.

    So i guess “they are not registering for the site, just the members area” is just impossible. Don’t know what you already did to get a “private” member area, but if you have an issue, it’s mostly because you did something wrong. 😉

    To confirm to readers what you already get to work:

    To modify the registration page, on which appears the login fields belonging to WP (user, username, email & password), BP adds his own additionnal fields, under condition you activated the xProfile component.

    By default, BP add only one field in the mandatory field group “Base”: NAME.

    When the admin add a new field, he can choose between different field status, and depending this status, you will see phrase such as “This field can be seen by: “.

    These settings are avaible in Dashboard > Users > Profile Fields

    #220260
    TAC28
    Participant

    Hi and thank you danbp,

    I have read the documentation but not the codex yet.

    I also had read that article on the modifying the registration page but I can’t see anything relating to changing the text on the live registration page. I don’t want it to say “Registering for this site is easy….” because they are not registering for the site, just the members area. I have changed the text in the register.php file but wherever I upload it to the changes do not show up.

    It did help me find the setting in Profile Fields to change the “This field can be seen by: Everyone” text to “This field can be seen by: All Members” 🙂

    #220257
    danbp
    Participant

    hi @tac28,

    as you’re a first timer, i would suggest that you read attentively the Codex, and try to understand how BuddyPres works.

    I am using a child theme based on Headway Base and have no need of a bp theme.

    You can use any theme you want with BuddyPress.

    Modifying the registration page is explained here.

    xProfile fields settings is explained here.

    #213735
    b2marketing
    Participant

    Hi

    Sorry had to go to bed.

    Yes it is a custom profile field I created and it is working when using Buddypress 2.0.2 but updating to latest 2.1.1 then all members disappear from the loop and I just get the “else” statement saying: No members found.

    I created the custom field by going to users -> profile fields.
    I then use the if statement above like this. Please see gist.
    https://gist.github.com/philipb2/bd689aa4b843235ec414

    Thanks

    #212524
    adamt19
    Participant

    @shanebp in wp_bp_xprofile_fields there is only one instance of each field/question

    #210720
    crell
    Participant

    Hi,
    Thanks for responding.
    It’s passing to an internal site URL.

    This link below is a recent post
    http://ashbournecyclingclub.co.uk/2014/10/group-ride-monsal-head

    If I then select “Edit my profile” from the menu, it takes me to:
    http://ashbournecyclingclub.co.uk/2014/10/group-ride-monsal-head/1/
    (note it’s appended “/1” to the end of the URL

    Theme is Heuman
    Wordpress 4.0

    Plugins are:
    Advanced Custom Fields
    Version 4.3.9 | By Elliot Condon | View details

    Akismet
    Version 3.0.2 | By Automattic | View details

    Black Studio TinyMCE Widget
    Version 2.0.4 | By Black Studio | View details | Home | FAQ | Support | Rate | Follow | Donate

    BuddyPress
    Version 2.1.1 | By The BuddyPress Community | View details

    Categories Images
    Version 2.4.2 | By Muhammad Said El Zahlan | View details

    Cat Post Type
    Version 1.0.1 | By Michel Bobillier aka Athos99 | View details

    Coming Soon / Maintenance mode Ready!
    Version 0.5.3 | By coming soon | View details

    Contact Form 7
    Version 3.9.3 | By Takayuki Miyoshi | View details

    Contact Form DB
    Version 2.8.16 | By Michael Simpson | View details

    Custom Facebook Feed
    Version 2.1.2 | By Smash Balloon | View details

    Enhanced Media Library
    Version 1.1.2 | By WordPress UX Solutions | View details

    Events Manager
    Version 5.5.3.1 | By Marcus Sykes | View details

    Jetpack by WordPress.com
    Version 3.1.1 | By Automattic | View details

    Leaflet Maps Marker
    Version 3.9.2 | By MapsMarker.com e.U. | View details

    Limit Login Attempts
    Version 1.7.1 | By Johan Eenfeldt | View details

    Maps Marker Pro ®
    Version 1.9 | By MapsMarker.com e.U.

    NextGEN Gallery by Photocrati
    Version 2.0.66.29 | By Photocrati Media | View details | Get help | Contribute

    Post Css Class
    Version 1.0.1 | By Michel Bobillier aka Athos99 | View details

    Quick Featured Images
    Version 8.2.1 | By Martin Stehle | View details

    Regenerate Thumbnails
    Version 2.2.4 | By Viper007Bond | View details

    TinyMCE Advanced
    Version 4.1.1 | By Andrew Ozz | View details

    Types – Complete Solution for Custom Fields and Types
    Version 1.6.3 | By OnTheGoSystems | View details

    Wordfence Security
    Version 5.2.6 | By Wordfence | View details

    WordPress SEO
    Version 1.6.3 | By Team Yoast | View details

    WP-PageNavi
    Version 2.86 | By Lester ‘GaMerZ’ Chan | View details

    WP FullCalendar

    1a-spielwiese
    Participant

    The problems are still unresolved:

    ++ Cfr. regarding problem A. (Making xProfile fields required only for members with a certain user role):

    https://wordpress.org/support/topic/making-bp-xprofile-fields-required-for-certain-user (posted today)

    ++ Hide theses xProfile fields for members with other user roles:

    https://wordpress.org/support/topic/bb-xprofiles-acl-does-not-work (posted one week ago)

    ++ Cfr. regarding problem D. (Making answers unchangeable):

    https://buddypress.org/support/topic/how-to-make-some-xprofile-field-to-uneditable/#post-206808 (posted two days ago).

    #207682
    Kris35
    Participant

    Hi @1a-spielwiese,

    Thanks for this. I had a look on your registration page where you have a few countries for members to select, but when I choose one, the same dropdown menu appears. Im not using any plugin at the moment – just the extended profiles in the components of Buddypress at the top of the list which includes checkboxes for activity streams, friend connections etc. I don’t want to use a plugin that hasn’t been updated in two years either.

    If I go to Users>Profile fields, this is where I was hoping to do this but the only way I can see to do it is to add, UK, then a list of counties. USA and then a list of states, and so on which would mean I would have a list a mile high of all the different countries and local areas.

    Am I missing something?

    Thanks a bunch,

    Kris

    #207115
    1a-spielwiese
    Participant

    A less elegant, but working solution regarding locations within states you can find on my registration page (section: ‘Profile Details – Teil III: Geographisches’):

    http://1a-spielwiese.de/registrieren/

    You can ask at first:

    • In which state (USA or UK?) do you live?
    • and then:

    • In which US-federal state respec. in which UK-county to you live?
    • and finally you can introduce the names of the federal states of the USA with ‘US-‘ and the names of the counties of the United Kingdom with ‘UK-‘.

    (You can ask this questions within the ‘base group’ of your xProfile fields – then they get displayed on your registration page automatically. Or you can make your further xProfile fields displayed on your registration page as well:

    https://buddypress.org/support/topic/reshaping-the-registration-page/#post-203615 [section 2nd].)

    #207114
    1a-spielwiese
    Participant

    Yes, there should be a way, but I was not able to follow the instructions / to realise that way.

    The basic idea is:

    • Create two (or more) new WordPress user roles, e.g.: Users-UK and Users-USA.
    • Then you can assign one xProfile-field, ‘In which [federal] state do you live?’, exclusively to your users with the user role Users-USA; and another x-Profile, ‘In which county do you live?’, to your users with the user role Users-UK.

    The instructions for that solution you find there:

    https://buddypress.org/support/topic/resolved-different-profile-types-and-different-user-roles/

    (The user roles there are ‘bands’ and ‘fans’).

    And my report about my attempt to apply that instructions you find there:

    https://buddypress.org/support/topic/different-profile-types-and-different-user-roles-part-ii/

    My user roles are (sport) ‘teams’ and ‘fans’.

    But unfortunately, I was not able to hinder, that ‘fans’ get displayed the questions (xProfile-fields) for ‘teams’ was well; and the ‘teams’ the questions for ‘fans’…

    Further problem:

    Even if there is a solution regarding later profile edits – even complicate seems to be, to make already the registration page “input senstive”, because during registration the new user isn’t yet registered (i.e.: has no user role yet).

    Cfr. there:

    http://forum.wpde.org/buddypress/133961-registrierungsseite-umgestalten-anleitung-und-fragen.html (section 4. – unfortunately in German).

    #206290
    danbp
    Participant

    To make a field uneditable, you can remove it from the edit page of each profile.
    You just have to enter the file ID, separated by coma if necessary to hide more than one.

    Add snippet to child-theme functions.php or bp-custom.php

    function bpfr_make_profile_field_uneditable( $retval ) {	
    	
    	if( is_user_logged_in()  && bp_is_profile_edit() ) {
    	
    	$retval['exclude_fields'] = '20,21,22';	// field id's
    	
    	} 
    	return $retval;
    	
    	}
    add_filter( 'bp_after_has_profile_parse_args', 'bpfr_make_profile_field_uneditable' );

    Reference:

    Using bp_parse_args() to filter BuddyPress template loops

    #206284
    1a-spielwiese
    Participant

    For me also not:

    I tried it with

    Mitglieder-Kategorie (Team oder Fan?)

    instead of

    'name of your field'

    as well as with

    'Mitglieder-Kategorie (Team oder Fan?)'

    But my users can still change the values for this field. –

    I tried as well – already before and now again – this code of @noizeburger:

    //hide the user role select field in edit-screen to prevent changes after registration
    add_filter("xprofile_group_fields","bpdev_filter_profile_fields_by_usertype",10,2);
    function bpdev_filter_profile_fields_by_usertype($fields,$group_id){
    //only disable these fields on edit page
    if(!bp_is_profile_edit())
    return $fields;
    //please change it with the name of fields you don't want to allow editing
    $field_to_remove=array("User Role");
    $count=count($fields);
    $flds=array();
    for($i=0;$i<$count;$i++){
    if(in_array($fields[$i]->name,$field_to_remove))
    unset($fields[$i]);
    else
    $flds[]=$fields[$i];//doh, I did not remember a way to reset the index, so creating a new array
    }
    return $flds;
    }

    It works neither with

    "Mitglieder-Kategorie (Team oder Fan?)"

    nor with

    Mitglieder-Kategorie (Team oder Fan?)

    nor with:

    'Mitglieder-Kategorie (Team oder Fan?)'

    #206262
    1a-spielwiese
    Participant

    However, not only dots are a problem: with ‘oder Entsprechendes’ (instead of ‘o.ä.’) it doesn’t word as well.

    As well it does not work with ‘Jahr der Teamgründung oder Geburt’.

    So, maybe the length of the field names is the problem. –

    Therefore again: Is there a possibility to address profile fields by other means than with their field names? Are there e.g. id-numbers or something like that, which I could use (instead of the names)?

    #205264
    Myg0t
    Participant

    Nice, I was actually looking at that a couple of days ago. I had tried a few things out, but to no avail.

    Here’s where i’m at: I’ve commented the above edited section of members-loop.php.

    In my bp-custom.php i’ve copy/pasted the code from the link you sent, and have applied the following edits to it:

        private function get_custom_ids() {
            global $wpdb;
     
            // collection based on an xprofile field
    		// WP_User_Query arguments
    		$args = array (
    			'role'           => 's2member_level2',
    			'fields'         => array( 'id' ),
    		);
    
    		// The User Query
    		$user_query = new WP_User_Query( $args );	
    		//The User Loop
    		if ( ! empty( $user_query->results ) ) {
    			foreach ( $user_query->results as $user ) {
    				$custom_ids = $user.",";
    			}
    		} else {
    			// no users found
    		}
            //$custom_ids = $wpdb->get_col("SELECT user_id FROM {$wpdb->prefix}bp_xprofile_data WHERE field_id = 8 AND value = 'no'");
    		
            return $custom_ids;
        }  

    I also, made the lower two edits you suggested to the $query_array and return $new_count.

    currently i’m getting this error:

    Catchable fatal error: Object of class stdClass could not be converted to string in /home/collegi8/public_html/wp-content/plugins/bp-custom.php on line 30

    line 30 is:

    $custom_ids = $user.",";

    Thanks for all your help man,

    M

    #205242
    Hugo Ashmore
    Participant

    Well if you think it’s the theme try asking the theme authors how they are doing this, if they reply ‘we aren’t’ then you know it’s not the theme! or conversely try swapping themes and see if that dob field stops working.

    What plugins that are listed as BP ones do you have running?, list them as there are ones that extend the profile field selectors such as this:

    ‘Buddypress Xprofile Custom Fields Type’

    which also will display the date picker as a age calculation if selected.

    At the end of the day if you want help it’s going to be important for you to understand how your installation is working so you can impart information as it’s required, especially where the issues are not strictly core BP ones.

    #205165
    Hugo Ashmore
    Participant

    It does though, have you tried creating profile fields? what version of BP have you got installed?

    #204276
    1a-spielwiese
    Participant

    The basic issue is resolved.

    Regarding the two persting problems I have started more specific topics:

    https://buddypress.org/support/topic/age-for-each-user-instead-of-age-for-logged-in-user/

    and

    https://buddypress.org/support/topic/addressing-profile-fields-with-complex-names/

    Therefore, for my point of view, this topic could be closed.

    1a-spielwiese
    Participant

    @hnla / https://buddypress.org/support/topic/different-profile-types-and-different-user-roles-part-ii/#post-201146:

    By chance I found the solution regarding the ‘default user role’-issue:

    Within the wp-admin-folder there is not only an options-general.php, rather as well an options.php.

    Within the comment at the beginning of this file is written: ‘If accessed directly in a browser this page shows a list of all saved options along with editable fields for their values.’

    Therefore I adressed this file with 1a-spielwiese/wp-admin/options.php – and there I found the opportunity to change the default user role:

    http://1a-spielwiese.de/wp-content/uploads/2014/10/wp-admin-options-php.jpg

    After changing it into ‘fan’ (note: it’s not possible to leave the line blank!), on the page options-general.php?page=wp-roles-at-registration it is now possible to select only the roles ‘fan’ and ‘team’:

    http://1a-spielwiese.de/wp-content/uploads/2014/10/rar-settings_without_subscriber.jpg

    And after saving it, ‘subscriber’ disappears from the registration page as well:

    http://1a-spielwiese.de/wp-content/uploads/2014/10/register-page_without_subscriber.jpg

    —-

    However, these other above mentioned problems:

    A. How can I make profile fields, which are asigned only to one member category / user role, ‘required’? Cfr. above.

    C. What is the purpose of the penultimate step of the instructions of @noizeburger? – What have I to check for seeing, whether it works or not?

    and

    D. Why does the last step of the instructions of @noizeburger do not work for me? How can I make the member category / user role unchangeable for my members?


    @amalsh
    / @jonaro / @lebearuk / @kamillamonkey and @jeffacubed:

    Do you have any idea regarding this issues?

    – cfr. regarding D.: http://kampfsportlerinnenneuwied.1a-spielwiese.de/wp-content/uploads/sites/2/2014/09/user_role_still_changeble.jpg

    are still unresolved.

    #203615
    1a-spielwiese
    Participant

    I found two more solutions:

    1st:

    a) The place of the field for determining the user role is depending on the plugins/wp-roles-at-registration/wp-roles-at-registration.php

    The relevant line of the original version of that file is:

    add_action('bp_after_signup_profile_fields', array($wp_rar_plugin, 'bp_choose_roles_registration_form'));

    I substituted there bp_after_signup_profile_fields by template_notices and now the field at issue is displayed not the end, rather at the beginning of my registration page:

    http://1a-spielwiese.de/registrieren/

    b)

    For creating the headline and the introductory text I made a second change within the same file. I changed the following section. The first and the last line of the quote is the original code, and the lines inbetween I inserted:

        <div class="register-section" id="user-role-section">
        
        <h4-a><?php _e( 'Benutzer/in/rolle', 'buddypress' ); ?></h4-a>
    
        <p><small><em>Entscheide Dich bitte als allererstes f&uuml;r eine der Benutzer/in/rollen "Team" oder "Fan" (bitte w&auml;hle nicht die Rolle "Subscriber"; diese Angabe soll noch gel&ouml;scht werden). In Abh&auml;ngigkeit von Deiner Antwort wirst Du nach Abschluss der Registrierung und wenn Du Dich das erste Mal bei 1a-Spielwiese einloggst und Dir Dein Profil ansiehst, die M&ouml;glichkeit haben, einige erg&auml;nzende rollenspezifische Profilangaben zu machen.</em></small></p>
    
        <label for="wp_rar_user_role"><?php echo $this->wp_rar_role_label; ?></label>

    2nd:

    As well I was able to integrate now not only the ‘base’-profile field group. For that it is neccessary to copy a long section of the buddypress register.php. This sections begins with:

    			<?php /***** Extra Profile Details ******/ ?>
    
    			<?php if ( bp_is_active( 'xprofile' ) ) : ?>
    
    				<?php do_action( 'bp_before_signup_profile_fields' ); ?>
    
    				<div class="register-section" id="profile-details-section">
    
    					<h4><?php _e( 'Profile Details', 'buddypress' ); ?></h4>
    
    					<?php /* Use the profile field loop to render input fields for the 'base' profile field group */ ?>
    
    					<?php if ( bp_is_active( 'xprofile' ) ) : if ( bp_has_profile( array( 'profile_group_id' => 1, 'fetch_field_data' => false ) ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>

    And it ends with:

    					<input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="<?php bp_the_profile_field_ids(); ?>" />
    
    					<?php endwhile; endif; endif; ?>
    
    					<?php do_action( 'bp_signup_profile_fields' ); ?>
    
    				</div><!-- #profile-details-section -->
    
    			<?php endif; ?>

    The only two things, which are obligatory then:

    • You have to insert the entire copied section behind the last line of the original section.
    • And you have to change 'profile_group_id' => 1, into 'profile_group_id' => 2, (for adressing your second profile field group – and so on regarding the further profile field groups).

    Besides I changed the <h4>-headline and inserted introductory text behind that headline. Therefore my code there is:

    					<h4-a><?php _e( 'Profile Details - Teil II: Kontaktendaten', 'buddypress' ); ?></h4-a>
    
    				<p><small><em>Beachte bitte, dass Du in zu den Profilfeldern in diesem Abschnitt selbst entscheiden kannst, wem Deine Angaben, die machst, angezeigt werden sollen.</small></em></p>
    #203221
    1a-spielwiese
    Participant

    I get now managed to place the information from the profile fields Geschlecht, Jahr, Bundesland/Kanton in one line (instead below each other):

    http://1a-spielwiese.de/teams/

    The code is now:

    <table-member border="0">
      <tr>
    	<td>| Geschlecht: <?php bp_member_profile_data( 'field=Geschlecht' ); ?> | </td>
    	<td>Geburts-/Gr&uuml;ndungsjahr: <strong><?php bp_member_profile_data( 'field=Jahr' ); ?></strong> | </td>
    	<td>Bundesland/Kanton: <?php bp_member_profile_data( 'field=Bundesland, Kanton oder Wahlkreis' ); ?> / </td>
    	<td><?php bp_member_profile_data( 'field=A:Bezirk oder Statutarstadt; CH: Bezirk o.ä.; D: LANDKREIS oder KREISFREIE STADT; Li: Gemeinde' ); ?> |</td>
       </tr>
    </table-member>

    Nevertheless

    • the problem regarding the field ‘A:Bezirk oder Statutarstadt; CH: Bezirk o.ä.; D: LANDKREIS oder KREISFREIE STADT; Li: Gemeinde’ persits: That information should appear at the ende of the line, betwen ‘/’ and ‘|’.
    • and as well I would still like to know, whether it is possible to transform the ‘year of birth’-information into an ‘age’-information.
Viewing 25 results - 1,051 through 1,075 (of 3,575 total)
Skip to toolbar