Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 2,026 through 2,050 (of 5,755 total)
  • Author
    Search Results
  • #187770
    danbp
    Participant

    Hi @mmadden,

    not sure i understand what you want to achieve. Are you creating a register page from scratch ?
    Anyway….
    Open the original BP register file (/buddypress/bp-templates/bp-legacy/buddypress/members/register.php). It contains many placeholders and conditionnals

    So, for the mandatory NAME xprofile group (the only one you use), you have line 65

    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();
    
    --- blah---

    Line 75 sit this placeholder do_action( 'bp_custom_profile_edit_fields_pre_visibility' ); where you can hook your additionnal information.

    Line 98 there’s another one: do_action( 'bp_custom_profile_edit_fields' ); just above this function:

    <p class="description"><?php bp_the_profile_field_description(); ?></p>

    In register.php, the section you speak about goes from line 50 to 112
    From /***** Extra Profile Details ******/ to </div><!-- #profile-details-section -->

    Of course, you can also add your own placeholder to your register template.

    Sorry if i’m wrong.

    mmadden
    Participant

    I’m using WordPress 3.9.2 with BuddyPress 2.0.2. I’m building a new theme and on the registration page I’d like to use the placeholder attribute instead of a label to guide users through the setup. It was easy enough to move the php into a new placeholder attribute for the input fields in the basic-details-section, but since the profile-details-section is different, there is no input field to add a placeholder attribute. How might I accomplish the same thing in the profile field (I only have the default one) that I did with the others?

    #187708
    aces
    Participant

    @elshobokshy

    Using firefox on http://animalsfunnypictures.com/members/sanaa/ I can see entry-content img { which has a width: 510px if i disable it in firefox it becomes the ‘normal’ size.

    This is coming from Marla theme’s style.css on line 1464 – see for yourself…

    Saurabh Jain
    Participant

    Thanks @1a-spielwiese,

    Is there any way to search users using xprofile fields.
    E.g. In my xprofile field i have named “Skills” i want to search all user having the Skill = I.T.
    I made Skills as checkbox.

    Saurabh Jain
    Participant

    Thanks @1a-spielwiese and @danbp,
    I created new fields and didn’t updated profile that was the reason of not showing.

    Is there any way i can access the data in the fields. I created field named Skill i want to access the data in that field and use in other pages/post.

    #187184
    poundsixzeros
    Participant

    Hi,
    Is there a way users that have hidden fields can be excluded from member search results?
    It seems that if a user hides a field, their profile still shows in the search results when someone searches for whatever was hidden.

    For example, if a user #1 sets the visibility of an xprofile field “State” to “only me”. Then user #2 searches for the state that User #1 hid, then User #1’s profile should not show up on the search results. But it does. This kind of defeats the purpose of hiding a field so I’m hoping there is a way to exclude those results from searches. Any advice or insight is much appreciated!

    I am using WP 3.9.2 and BP 2.0.2.
    Thanks in advance!

    mrapino
    Participant

    Okay, this is my first piece: http://pastebin.com/pyz8XaaP

    This first link is some code findings that might continue the conversation toward an elegant solution.

    And then I came up with another possible solution here, which is actually partially working, but might be a bit clunky: http://pastebin.com/3JBCuZrx

    Basically, the first link is not working, but may give us more food for thought. The second link is working, but there are a few caveats. What I am doing in the second link is finding out what user role the logged in user is attached to. Then I create a conditional that states that if the user is under a certain role, it hides the profile group tabs from being seen, which essentially prevent them from adding content to them, and if there is no content for any of the fields in the group, it won’t show on the front end.

    CAVEAT: if you go directly to the profile group URL, you can still edit. I need to figure out how to actually prevent the URL from working, as opposed to/ or in addition to hiding it.

    Either way, I think there’s a bunch of good stuff to talk about here.

    Let me know what you think.

    NOTE: I am using some code found on this post:
    https://buddypress.org/support/topic/conditional-exclusion-of-a-xprofile-fields-group-from-editing/

    mrapino
    Participant

    Thanks for the links.

    Defining a role doesn’t necessarily require previous input from the people using your site … you simply define the roles of your users based on what you want those users to be. Custom user roles allow you to have more granular control over what your users can do and see when registered on your site. Regarding Buddypress … I think that having a way to pre-define user types/roles and assigning custom profiles to those various user types is something to be desired.

    I am using Gravity Forms to create a custom registration form that allows a registrant to pick the type of user they are and when the user type is chosen, I am conditionally displaying custom fields that are associated to the specific user type.

    The problem is that after the user registers, and the fields are filled out, if they go to their profile to edit the information, they see ALL FIELDS regardless of the user role they chose during registration. The reason is that although Gravity Forms allows you to map certain fields on the form to profile fields in Buddypress, you still have to edit Buddypress to HIDE the fields you don’t want those users to see.

    That is why I am posting this question … I am trying to get code together to alter the profile section of Buddypress to allow you to associate specific profile fields to a user role, so when the user of a specific role finally goes to their profile to make edits, they do see, and are not allowed to edit fields that are not associated to their specific role.

    IMHO this type of control is very useful, as it can help you create some fairly interesting communities.

    Thanks for your assistance. I hope I have clarified things further for you. If anyone can help, great … if not, I am still moving forward on this and when I come up with a solution, I will post it here. If anyone can help me get to that solution faster, I’d be very appreciative. If not, I hope I can help those of you who are looking for the same results.

    mrapino
    Participant

    I appreciate your response! I will take a look at this plugin. I am always hesitant to use plugins that are so out of date, but perhaps there is some code within the plugin files that will be useful.

    Also, is there any resource that details the functions available within Buddypress. I have looked at the Codex, but I can’t seem to find a nice definitive resource. The WP Codex has all of the actions, filters, functions, etc… I was trying to find something similar within the Buddypress website, but can’t seem to find documentation that has everything detailed out. Is there a lot of documentation that hasn’t been written yet, or am I just looking in the wrong place?

    Please keep me posted if you have any other suggestions about what functions, or code snippets I might use to gather the correct information to alter the profile section based on user roles.

    Basically, I need to know where you might place the custom code (is it within the bp_custom file?) And if I use bp_custom, I am guessing I would have to hook my code into the correct location, so Buddypress knows to enact my code correctly (Is there an action hook that hooks into the Profile section specifically?) I also would need to know where to find the functions I need to edit the profile section (all xprofile functions, any functions that might help me attach user roles to profile fields, any functions that pull data relevant to the connection between profiles and users, etc…)

    Regarding the connection between user/user role and profile, would I be calling these functions separately … meaning, would I first use a conditional to see what user role the user is, and then within that conditional be using general xprofile functions to display only the fields I want to display for the user role that the conditional is specifying?

    I think if we all start to spitball ideas, this post can be a sounding board for the code that can build this functionality out. In my research over the past week, I have found so many incomplete conversations about how to make this functionality a reality. So, I know there are many people looking to do exactly what I am attempting. And the beauty is that we all have bits and pieces of this idea and how it might fit together. Perhaps we can all start posting our code snippets here to build this out together?

    If we can make it work, I bet this post can be the beginning of a core Buddypress code update that can integrate this into the actual Buddypress Core.

    What do you all think?

    I’ll be continuing my research and posting my findings here. Let’s make this happen!

    1a-spielwiese
    Participant

    Do you have inserted text (information) into the fields and profiles at issue?

    If you have old profiles and create later new fields, this fields are of course empty. So you have to update the profile information at first.

    Saurabh Jain
    Participant

    Hello all,
    How should i show xprofile fields from newly created xprofile groups into user profile.
    I added new fields in Base group and the fields shown in signup but i can’t find any way to show fields which i created in new group.
    Wordpress version : 3.9.2
    BuddyPress version : 2.0.2

    Thanks in advance

    #187103
    danbp
    Participant

    @greataussiepie

    did you noticed that profile field datas are clickable ?
    This default behaviour is intended to be use as a filter.

    Member A filled the Contractor field
    If any visitor goes to member’s A profile and click on the Contractor field value, BP will show a list of all other members who also filled in this field.

    So what you want to get already exist !

    bp_get_the_profile_field_value()


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

    Hi,

    I am new to BuddyPress and i have been looking for a tutorial that will show me how to add a custom profile field to the order by drop down menu on the members page.

    What i have is a organisation with different members, i have created custom profile fields for each user to select which type of member they are. they can select Contractor or Training organisation. I want users to be able to filter the members page by Contractor or Training organisation so they can easily see all the contractors.

    So far the only thing iv been able to do is add a member loop in my child theme to make my custom profile fields show up on the members page, after reading add custom filters to loops, im totally lost as to how to achieve this because i can only just kind of understand what this tutorial is trying to do, but i dont think it helps me.

    If anyone could link me to a tutorial on how to just give users the ability to filter members by member profile field using a drop down menu or something that would be awesome thanks 🙂

    (I actually have 4 member types, but used 2 here for simplicity sake.)

    #187041
    danbp
    Participant

    Would it matter that I have my group_order (i.e., the order in which my field groups are displayed) arranged in a specific order?

    No !
    Anyway, i was wrong myself. Apologize. My snippet hides groups from viewing, not from editing. But you can get another trick on this post. And this one works realy. 😉

    #187039
    1a-spielwiese
    Participant

    “remove all xprofile fields to get only the default name field.”

    When I posted the comment:

    https://buddypress.org/support/topic/no-button-for-finishing-registration/#post-187032

    non xprofile field was created.

    “Also download a fresh copy of wordpress and upload the twenty twelve theme folder to your site. Maybe your’s is corrupted somewhere.”

    That’s really unlikely, because both copies worked without problems, before I installed the BuddyPress-Plugin. And I tried never to make any major change of twenty twelve theme or WordPress itself.

    #187037
    danbp
    Participant

    Do you use a wordpress copy provided by your host ?
    Do you use a child-theme ?
    Do you use any shortcode on the register page ?

    Disallow blog creation for the moment and remove all xprofile fields to get only the default name field.
    Also download a fresh copy of wordpress and upload the twenty twelve theme folder to your site. Maybe your’s is corrupted somewhere.

    #187012
    danbp
    Participant
    #186999
    1a-spielwiese
    Participant

    Amendment:

    I guess, connected with the above described problem is another problem.

    In the meantime I have activated “Extended Profiles” and I created three profile field groups.

    But only the fields of the first group are displayed – the fields of the field groups 2 und 3 not.

    mrapino
    Participant

    Hello everyone! I know this has been a topic in the past, but I was hoping for a more complete answer to this issue. I know there are many people who would benefit from a viable solution to this.

    First off, I am using WordPress 3.9.2, and Buddypress 2.0.2.

    The main purpose of this post is to try and figure out how to create multiple profiles (2 or more) with completely different profile fields, and to associate each profile to a different user type/user role.

    Example: I created to custom user roles … Writer and Publisher. We have Anthony, the writer … and we have Jason, the publisher. When you click on Anthony’s profile, you will see an author bio, other writers that influenced Anthony’s work, favorite genres, etc … When you click on Jason’s profile, you’ll see the publishing company that Jaosn works for, maybe a company about section, if it is a large publishing house … how many employees, how many writers are published, etc…

    What I am looking for is one of a variety of things… I will, of course, be thrilled if one of you has a full code snippet/snippets that does what I am looking for. I will also be appreciative for an explanation of what Buddypress files need to be edited to achieve this. Really, anything that gets me closer to a solution, as I am currently doing this for a client’s website, and after I finish this piece of functionality, we will almost be finished!

    Thank you so much for reading this, and thank you in advance to all of those willing to help me achieve this goal.

    Ask me any questions you may have that will help clarify things.

    Cheers!!

    #186516
    danbp
    Participant

    Hi @simpleone,

    you can actually only hide xprofile fields. Hiding field groups is not possible, due to a bug.
    But it is corrected for 2.1 and you’ll find a patch on the trac.

    You can already apply the patch to 2.0.2 bp-xprofile-classes.php and the above snippet will work. Add it to bp-custom.php or theme’s functions.php

    To hide an xprofile group, use bp_parse_args like this:

    function bpfr_make_profile_tab_members_only( $retval ) {
    	// hide to non members
    	if( !is_user_logged_in() ) {
               // exlude groups, separated by comma
    		$retval['exclude_groups'] = '4,5';
               // exclude fields, separated by comma
           		$retval['exclude_fields'] = '1,39';			
    	} 
    	return $retval;	
    }
    add_filter( 'bp_after_has_profile_parse_args', 'bpfr_make_profile_tab_members_only' );
    shanebp
    Moderator

    Try this:

    <?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' );
    */
    
    $data = bp_get_member_profile_data( 'field=Current Location' );
    if( $data != false )
       echo $data;
    
    ?>
    shanebp
    Moderator

    Are you putting this code in the members-loop.php template?

    Are you putting it in the designated area?
    Look for this text: ‘If you want to show specific profile fields here you can,…’

    alscott99
    Participant

    Thanks for your response, @shanebp.

    That code still has the fields repeating, but perhaps I entered it wrong? Since you didn’t include the php tags I’m not sure where they go; I did it this way:

    <?php $data = bp_member_profile_data( 'field=Current Location' ); ?>
    <?php if( $data != false ) ?>
    <?php echo $data; ?>
    Joe
    Participant

    well i pasted the following code into the member-header.php file in buddypress where it says to add code and still no luck.

    <div id="member_profile">
        <div class="profile_fields">Position <span><?php bp_member_profile_data( 'field=Position' );?></span></div>
    		</div>		
    <?php
    /***
    * If you'd like to show specific profile fields here use:
    * bp_member_profile_data( 'field=About Me' ); -- Pass the name of the field
    */
    do_action( 'bp_profile_header_meta' );
    
    ?>
    Any ideas?
    Joe
    Participant

    @butlerweb that’s a good call on the plugin Code Snippets — sounds like a really useful plugin.

    Okay, so using the code from the link you gave me (which should be added to the buddypress member header file):

    <div id=”member_profile”>
    <div class=”profile_fields”>Category: <span><?php bp_profile_field_data( ‘field=Category’ );?></span></div>

    If the Category Field was an array (a multicheck boxes), would this code be different, do you know? Maybe this is the issue I’m running into to.

    Thanks. –Joe

Viewing 25 results - 2,026 through 2,050 (of 5,755 total)
Skip to toolbar