Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 651 through 675 (of 3,589 total)
  • Author
    Search Results
  • #262226

    In reply to: Problem With Pages

    danbp
    Participant

    Hi,

    BP pages are not ordinary WP pages. BP use the page system to assign a permanent slug, while content stays dynamic. Usual WP pages are static.

    BP pages must be unique. This means also without assigned template, model and of course, should be a slug to a page, and not a sub-page. These page are not intended to be published and exist only for internal use. You don’t need to build a menu for register and activation. Normally, these items come up, depending the context (theme, plugins, widgets) and/or the user status.

    Related to “activation” and “register” and most of BP components, you need to declare a “page” for each, despite the fact that BP will only use them to insert a template. Registration will receive xprofile fields which are added to the existing WP registration form.
    And another template for the Activation stuff, depending the context: activation key, success message and so on.

    #262210
    danbp
    Participant

    If you create a field group called Business Details, you simply add as many fields you want!
    Let’s say, you want that users can fill about 5 companies or society. In this case, you need to create a field for each input, in other words 5 fields. And if you need more details for each, you add the fields you need, one by one:

    Business 1: [___]

    Address 1: [___]

    Office 1 hours: [___]

    Business 2: [___]

    Address 2: [___]

    Office 2 hours: [___]

    Or if you use a lot of details, you group each businness separately.

    For better clarity of the default profile details output, when you have a lot of information to display, is to use this very handy plugin: buddypress-profile-tabs

    #262165

    In reply to: Forms from Buddypress

    danbp
    Participant

    BuddyPress comes with his own form on xprofile component.

    In 99% of cases, you haven’t to use an external form plugin. For the remaining 1%, you need good php knowledge to accomplish some custom work.

    Everything you need to know about xprofile fields is explained here:

    User Extended Profiles

    #262072
    danbp
    Participant

    Hi @darrenllrgmailcom, @adjunkten,

    i had the same issue with a custom theme: fields didn’t wrap properly on small screens…
    To solve it, i simply copied the concerned form rules from Twenty Sixteen into my child theme css and all went OK after that.

    The 2016 rules of the register page:

    #buddypress #signup_form.standard-form #profile-details-section,
    #buddypress #signup_form.standard-form #basic-details-section,
    #buddypress #signup_form.standard-form #blog-details-section {
    	float: none;
    	width: 100%;
    }
    
    @media screen and (min-width: 38.75em) {
    	#buddypress #signup_form.standard-form #profile-details-section,
    	#buddypress #signup_form.standard-form #basic-details-section,
    	#buddypress #signup_form.standard-form #blog-details-section {
    		width: 48%;
    	}
    }
    
    @media screen and (min-width: 38.75em) {
    	#buddypress #signup_form.standard-form #profile-details-section {
    		float: right;
    	}
    	#buddypress #signup_form.standard-form #basic-details-section {
    		float: left;
    	}
    }
    #261863
    tergra
    Participant

    Found the source of the issue. I had put the field (First name (Base)) in another group of fields, because it only makes the registration process longer and doesn’t bring anything valuable to the site. But when yo do so, it breaks the registration process for some reason. It no longers makes the required verifications.. I’m now implementing the solution of changing is_required described here by ModemLooper : https://buddypress.trac.wordpress.org/ticket/5373?cversion=0&cnum_hist=3
    It seems to work, I only have a issue with the css (I put a big div with display none before xprofile fields and I’m closing it at the end, just before the submit button, but it puts the submit button on the right as if the xprofile field was there, weirdly/

    Buddypress should really have that in core as this required Xprofile field is really not user-friendly AT ALL. 😉

    Thanks everyone ! 🙂

    #261790
    danbp
    Participant

    Is “xprofile component” the feature exposed in “Settings > BuddyPress” named “Extended Profiles” (at the very top of the config page)? (It probably is, but I just want to be sure, thanks.)

    Yes it is !

    it is possible […] to effect the change of either the email or password fields?

    Yes it is ! from here: your-site.abc/members/USERNAME/settings/ – the link can be found under the top right usermenu on wp’s toolbar: username > settings > general OR/AND on the buddymenu, when you’re on your profile: Settings ! And that’s it !

    null

    For all other BP related questions, please read through the codex, i really have no time to (re)write all explanations. Sorry, hope you uderstand.

    Jay
    Participant

    Thanks for the background info about WP, @danbp. It certainly is interesting to see how the little old single-user blog platform called “WordPress” has mushroomed into the gargantuan that it is today, following the old adage, “Man expands to fill the available space.”

    Obviously I’m a bit of a noobie to WordPress (I’ll admit, so feel free to flame away ;)), but I’d like to ask about your reference to the clause “When BP is activated, and if you use the xprofile component…” I am a bit confused about “the xprofile component” and was wondering if you can help me understand it a bit better.

    Is “xprofile component” the feature exposed in “Settings > BuddyPress” named “Extended Profiles” (at the very top of the config page)? (It probably is, but I just want to be sure, thanks.)

    I am fully cognizant of the fact that one can preclude access to the WP Dashboard in a number ways, including by Role, etc., and I plan to do that. However, that causes me to provide exposure to the standard WP Profile fields (or as many of thsoe fields that I want to expose, that is) so that the user can modify them. This includes the critical email and password fields.

    Relating to this situation, you didn’t quite address my key question as to whether it is possible (without serious WP core hacking — something I would NEVER do, btw) to effect the change of either the email or password fields?

    Now listen, I realize that probably sounds like a shameless noobie question, but it really begs the question of whether modifying the email/password fields outside of the WP dashboard is considered “bad form” in some way.

    Thanks in advance for your advice and insights.

    #261756
    danbp
    Participant

    Hi,

    BuddyPress use templates to show his stuff.
    The registration is part of WP and BP’s xprofile component add only some additionnal fields to the original register form.

    If you open a template file you will see a lot of code and many lines starting by do_action( ‘something’ );

    These files are all stored in bp-templates/bp-legacy/buddypress/

    Now you have already the where and the what. here’s the how.

    To show some text on the register page you have two options:
    1) altering the whole template file bp-templates/bp-legacy/buddypress/members/register.php
    2) add what you want by using an action hook

    The second method is the fasted and the easiest. You just need to write a function and you’re done.

    
    function valeriemanne() {
       echo 'Here i am !';
    }
    add_action( 'bp_before_register_page', 'valeriemanne' );

    Add this to your child theme functions.php file or into bp-custom.php

    WordPress codex references
    add_action
    Child theme

    #261686

    In reply to: show random profile

    mrblade
    Participant

    Hi! Thank you for your answer!
    But I need a page showing the profile (and not a list) of a random user.
    I was thinking of using the standard loop with type = random and limit of one. And use the filter fields, as described here
    is this the correct way?

    #261513
    shanebp
    Moderator

    Did you see this?
    https://buddypress.org/support/topic/how-to-view-pending-signup-profile-fields/

    For a single field, follow the directions in the code.

    #261504
    fleminglabs
    Participant

    Is there any progress on this?

    My client needs people to input a product number to sign up for the website.

    There are lots of “pending” users but I cannot see the custom Profile fields to review what the new user has put in.

    There is no other way of looking at that?

    The clients needs to be able to do it and lots of them, the url trick will be too hard.

    #261497
    Lars Henriksen
    Participant

    One solution might be to simply display the xprofile fields, that you want to be searcable in the member directory.
    Then you can simply use the member search form to search for xprofile content.

    My members have a field with ‘school’ http://historielaerer.dk/medlemmer/

    This snippet adds two profile fields to the members loop – add the code to your bp-custom.php:

    <?php
    function add_info_to_members_loop() {
        $field_content = bp_get_member_profile_data( 'field=(Xprofile Field name)' );
        if( $field_content != false )
          echo "(label for xprofile field content): " . $field_content;
        $field_content = bp_get_member_profile_data( 'field=(Xprofile field name #2' );
        if( $field_content != false )
          echo "<br/>" . $field_content;
    }
    add_action( 'bp_directory_members_item', 'add_info_to_members_loop' );
    
    ?>

    Just an idea.

    Kind regards, Lars

    #261479

    In reply to: bbp-register layout

    Venutius
    Moderator

    The basic layout of the items on the right side of the registration screen can be affected by moving the fields around in Dashboard>>User>>Profile Fields.

    You can drag and drop them and that will affect the order that they are displayed.

    An alternative might be to install BP Better Registration, which creates a different type of registration process.

    You might benefit from visiting my website http://buddyuser.com It’s aimed at newbies looking to get the most out of BuddyPress.

    #261447
    shanebp
    Moderator
    #261403

    In reply to: Profile Page and Bio

    Venutius
    Moderator

    Hi there,

    You might like to check out my page on setting up users

    http://buddyuser.com/setting-up-site-members-with-buddypress

    This includes details of adding additional profile fields to the users profile. Also check out the section “Installing BP” in my site, I’m sure it will give you a lot of useful information.

    #261285

    In reply to: User WYSIWYG Editor

    Venutius
    Moderator

    For profile fields you can enable a rich text editor with http://buddyuser.com/plugin-review-buddypress-xprofile-rich-text-field

    matt2006
    Participant

    Hi @danbp
    thanks for your Tipp.

    he problem is, that BP Auto Group Join lets me add users to groups only by “Member Types” not by vustom xProfile fields.

    Is there anyone here, who could customize the plugin for us?

    The intended data flow would be:
    Input via Gravity Forms -> Gravity Forms User Registration Add-On adds a new user with certain xProfile information -> Modified “BP Auto Group Join” adds new user to certain BP groups.

    Thanks for helping!
    Matt

    For your information:
    I manage this project for a Non-Profit-Organsation called “Economy for the common good”, which stives for a new economic system. He have associations all over Europe which are recognised as charitable.
    Please see here for more Info:
    https://en.wikipedia.org/wiki/Economy_for_the_Common_Good
    https://old.ecogood.org/en

    #260970
    davehakkens
    Participant

    OK, we got it to work in a different way. Special thanks to @coffeywebdev for the help.
    For those interested:

    This snippet is used in the functions.php to get the locations from the profile fields and show the flag image.

    function dh_get_flag_by_location($country){
      if($country <> '' && !empty($country)){
      $country_filename = get_stylesheet_directory_uri() . '/img/flags/' . sanitize_file_name($country) . '.png';
      $country_path = get_stylesheet_directory() . '/img/flags/' . sanitize_file_name($country). '.png';    
         if(file_exists($country_path)){
           $html = '<img src="' . $country_filename . '"/>';
         } else {
           $html = $country;
           echo '<!--' . get_stylesheet_directory_uri() . '/img/flags/' . sanitize_file_name($country) . '-->';
        }
      echo $html;
      }
    }

    Then we needed to change 2 templates to show this flag image in
    the Bbpress forum replies and on the buddypress members page. So we added the code necessary to show the flag
    bbpress/loop-single-reply.php
    <div id="country" style="float:left;margin-right:.5em;"> <?php $user = get_userdata( bbp_get_reply_author_id() ); $country = xprofile_get_field_data( 42, $user->ID ); dh_get_flag_by_location($country); ?></div>

    buddypress/members/members-loop.php
    <div class="member-location"> <?php $country = bp_get_member_profile_data('field=Location'); dh_get_flag_by_location($country); ?></div>

    #260810
    Venutius
    Moderator

    It could be, difficult to answer since you have not given a great deal of detail on what features you want. You can create multiple extra profile fields which are searchable, you can use a plugin like BP Profile Search to enable all sections of the profile to be searchable, and of course BP supports public and private forums.

    #260598
    davehakkens
    Participant

    What do you mean with standalone version @danbp? I use a bbpress and buddypress plugin. I figured this is more for Buddypress since it has to do with buddpress profile fields.

    Anyway thanks for the code, looks good! But it doesn’t seem to work after adding it into the functions.php. I haven’t got experience using filters so can’t seem to find the problem..

    #260429
    danbp
    Participant

    Hi @davidself1001,

    i think BP Profile Tabs is a plugin to create “nice looking tabs using the jQuery UI”, it is not the xprofile component !

    xprofile fileds and field groups (the tabs) management is located at
    dashboard > users > profile fields. What you see on that screen is normally what you have in the DB.
    Once you created fields and field groups in xprofile, you will see the group tabs in the plugin.

    #260397
    danbp
    Participant

    Hi,

    xprofile use 4 tables: _xprofile_data, _wprofile_fields, _xprofile_groups and _xprofile_meta

    But your description is unclear. Which settings are you talking about ? The one on dashboard or the one on profile, on front-end ?

    Can you give an example of your profile settings and tell what do you think is missing in regard of the DB content.

    #260277
    danbp
    Participant

    It relate to this filter bp_get_profile_field_data

    This example will hide tabs and fields to all except admin

    function bpfr_hide_profile_field_group( $retval ) {
    	if ( bp_is_active( 'xprofile' ) ) :	
    	
    	// hide profile group/field to all except admin	
    	if ( !is_super_admin() ) {		
    		//exlude fields, separated by comma
    		$retval['exclude_fields'] = '1';  
    		//exlude groups, separated by comma
    		$retval['exclude_groups'] = '3'; 			
    	} 
    	return $retval;		
    	
    	endif;
    }
    add_filter( 'bp_after_has_profile_parse_args', 'bpfr_hide_profile_field_group' );

    These tricks hide the tab content, not the tab itself. (it seems that it doesn’t work for groups at the moment…i asked devs for information) Use CSS display:none to hide the tab or consider this plugin.

    #260243
    danbp
    Participant

    Sorry for the outdated trick.
    bp_is_profile_edit is deprecated in favor of bp_is_user_profile_edit.

    Check for the outdated fn in the plugin mentionned in the error msg.
    In case of, here a tutorial with more options.

    #260210
    danbp
    Participant

    – Single profile page. From show tab and from EDIT tab (see snippet)

    – From dashboard profile edit page: not possible – normally BP users shouldn’t have access to profile dashboard. They can manage their profile from front-end.

    – From custom profile fields. (see snippet)
    – From tabs every where. (see snippet)

    Almost any described areas, as example

    function bpfr_hide_profile_edit( $retval ) {	
    	// remove field from edit tab
    	if(  bp_is_profile_edit() ) {		
    		$retval['exclude_fields'] = '54'; // ID's separated by comma
    	}	
    	// allow field on register page
    	if ( bp_is_register_page() ) {
    		$retval['include_fields'] = '54'; // ID's separated by comma
    		}		
    	
    	// hide the field on profile view tab
    	if ( $data = bp_get_profile_field_data( 'field=54' ) ) : 
    		$retval['exclude_fields'] = '54'; // ID's separated by comma	
    	endif;	
    	
    	return $retval;	
    }
    add_filter( 'bp_after_has_profile_parse_args', 'bpfr_hide_profile_edit' );
Viewing 25 results - 651 through 675 (of 3,589 total)
Skip to toolbar