Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 1,426 through 1,450 (of 3,575 total)
  • Author
    Search Results
  • #172013
    danbp
    Participant

    @martinbeaulne,

    Gloabally, each BP member can, by default, modify his profile. So why do you want to add a form for doing this ?

    If you speak french, ask on bp-fr.net, i’ll answer you there.

    #172005
    martinbeaulne
    Participant

    By “easy”, I meant “There must be simple functions for posting things to the database; but I don’t know them”. I often see people answering to questions with pages and pages of code from outer space, so I thought my little question would be a very simple one….

    Well.. Let’s make my question “less general”.

    I want to get rid of the bottom tabs of the member profile page. Still, I want the members to be able to edit their profile. I want to style that directly in the member-header.php page.

    I want that kind of thing:

    
    <div><?php 
    if ( bp_is_my_profile() )
      echo "Hi there, since it's your profile, you can edit the value of field number 46";
      echo '<form id="formtochangefield46" name="updatefield46" onSubmit=" " action=" "  method="post" >
      <div>New value</p></div>
      <div><input type="text" id="updatefield46" name="field46" size="20" style="width:150px;"   maxlength="150" value="">
      </div>
      <div><input type="submit" name="submit" value="Submit"></div>
      </form>';
    endif;
    $embed = wp_oembed_get( xprofile_get_field_data('46'), array( ‘width’ => 400 ) );
    echo $embed;
    ?><br></div>
    

    I guess there must already exist wp functions to… call the database and update a field from a form’s submitted values… I mean, how does one creates a custom register page ? It must be the same functions after all…

    I hope my question is more precise… And sorry for my english, I don’t really speak it.

    #172004
    serie3369
    Participant

    Thanks for that, but still searching for a solution to this problem…

    #172002
    Paul Wong-Gibbs
    Keymaster

    I moved the inline CSS into the pastebin link because it made this thread massively long.

    #171987
    serie3369
    Participant

    Couldn’t find anything in my style sheet… The color of the text is white and I want to change it to Black or dark grey.

    Here is the code: http://pastebin.com/n0YAb8P3

    #171986
    @mercime
    Participant

    @ranebo You can disable registration by going to Settings > General and making sure registration is not enabled.

    The users can only fill out whatever Extended Profile Fields the Site/Super Admin created in the backend via Users > Profile Fields, users cannot create new profile fields. These profile fields can only be edited by the user in the front end via Member Profile Screens and not in the back end via User > Your Profie

    #171950

    In reply to: considering BuddyPress

    modemlooper
    Moderator

    1. members are searched by profile fields
    2. you can create unlimited profile fields
    3. there may be an events plugin
    4. BP has invite only private groups
    5. there was a geo plugin, not sure its up to date
    6. members are unlimited

    #171933
    wp_lover_4ever
    Participant

    You should look into the style.css of your theme, and edit the profile field div, and change the html color code from white to black.
    You can edit your style.css of your theme either from the dashboard by going to editing, or through FTP access.

    Good luck!

    #171932
    serie3369
    Participant

    I would love to know this too. I cannot see my profile field label. Its white on white. How do I change the text color of that?

    #171902
    applegateian
    Participant

    Thanks for the advice @danbp – I have given this a go but really can’t get the code correct.

    Sorry to ask again, but with my four check boxes being as follows, can you let me know what to put in that snipped of code for functions.php? These are the checkboxes I have with the title Budget:

    • £0-£100k
    • £100k-£500k
    • £500k-£2m
    • £2m+

    Thanks,

    Ian

    #171860
    Hugo Ashmore
    Participant

    @haykayltduk check through tickets if you haven’t as there was one a while back on issues with setting default select options or something to do with that aspect of profile fields.

    #171782
    Henry
    Member

    found it bp_get_profile_field_data

    #171755
    Remco Beugels
    Participant

    Thanks guys. bp_xprofile_get_hidden_fields_for_user() was the thing that I needed! This is my code:

    <?php $hidden_fields = bp_xprofile_get_hidden_fields_for_user(); ?>
    <?php if(xprofile_get_field_data('field_name') && !in_array(xprofile_get_field_id_from_name('field_name'), $hidden_fields)) : ?>
    <p><?php echo xprofile_get_field_data ('field_name'); ?></p>
    <?php endif; ?>
    #171735
    shanebp
    Moderator

    @r-a-y
    Any reason not to use bp_xprofile_get_hidden_fields_for_user() ?

    #171596
    danbp
    Participant

    Try first and ask after when you receive some help ! 🙄

    in the example, simply replace Amount by Budget and give it a try

    The function checks for “Budget” and the “foreach” looks for the checked box. So you will finally only see the checked box value. This data can be styled by using this:

    div.checkit span {your css stuff}

    #171591
    applegateian
    Participant

    Hi @chouf1

    Thanks for this, but I don’t really follow. The moneytizer example has really confused me, can you let me know how I could do this if the title of my field is Budget and the four checkboxes are

    • £0-£100k
    • £100k-£500k
    • £500k-£2m
    • £2m+

    thanks,

    Ian

    #171580
    rchiriac
    Participant

    I re-added this in the edit.php inside the while ( bp_profile_fields() )
    do_action( 'xprofile_updated_profile', bp_displayed_user_id(), bp_get_the_profile_field_id(), trim(strip_tags(bp_get_the_profile_field_value())) );

    Now… Do you know what is the hook do to upon user registration?

    #171393
    danbp
    Participant

    @applegateian

    You create a new field on profile (ie. title=Amount)
    This field is a checkbox type field
    You have 4 items to check, so you need to create 4 checkboxes.

    The field name called by the function correspond to the title you give to your new field. So you actually have 1 field name and 4 checkbox values.

    The example above will output the checked value by the user on the member profile header (bp_before_member_header_meta)

    function my_moneytizer() {
    if ( $money = xprofile_get_field_data( 'Amount', bp_get_member_user_id() ) ) :
        foreach ( $money as $mon ) { 
    
    	echo '<br/><div class="checkit">';
                echo '<span>Earned today:&nbsp;</span>';
    		echo $data;
    	echo '</div>';
    	}
    endif;
    }
    add_filter ( 'bp_before_member_header_meta', 'my_moneytizer' );
    #171381
    applegateian
    Participant

    Thanks @danbp – I’m not entirely sure how to create that filter function, can you expand on that?

    The four unique names are:

    • £0-£100k
    • £100k-£500k
    • £500k-£2m
    • £2m+

    thanks,

    Ian

    #171277
    Squirrel
    Participant

    My portal theme only lets admin / editor users view all members profiles or other users view other profiles if they are friends. If you want more info on how I did this let me know.

    #171263

    In reply to: New profile fields!

    bp-help
    Participant

    @budskab
    The code I provided calls the current user dynamically if that is what you are wondering. Even thought it is one link it will take each user to their edit profile field group you created. Feel free to experiment around with it. Try these as well:

    
    <a href="<?php global $current_user; echo home_url() . '/' . $current_user->user_login . '/profile/edit/group/1/'; ?>">Edit My Profile</a></div>
    

    Or:

    
    if ( is_user_logged_in() ) {
    <a href="<?php echo bp_loggedin_user_domain(); ?>">Profile</a>//link to users profile
    <a href="<?php global $current_user; echo home_url() . '/members/' . $current_user->user_login . '/friends/'; ?>">Friends</a>//link to users friends 
    <a href="<?php global $current_user; echo home_url() . '/members/' . $current_user->user_login . '/messages/'; ?>">Messages</a>//link to users messages
    }
    

    As a final thought if you add those links I would wrap them in a conditional to check if the user is logged in like the links just above.

    #171253

    In reply to: New profile fields!

    budskab
    Participant

    Adding an image would be easy enough yes..

    Thanks for the line.. I’m still new to PHP, so this is the hardest part right now 🙂 But the line above seems logic… could i then just change the ‘profile/edit/group/2/’ part to other profile URLS? Sure would be cool. Our users are most likely not that techie and we desperately need to make it easy filling out their profiles 🙂

    Can I change the standard registration fields in any way?

    #171252

    In reply to: New profile fields!

    bp-help
    Participant

    @budskab
    This link should work below. You could also add an image to replace the text providing you know some basic html.

    
    <a href="<?php global $current_user; echo home_url() . '/' . $current_user->user_login . '/profile/edit/group/2/'; ?>">Edit My Profile</a></div>
    
    #171251

    In reply to: New profile fields!

    budskab
    Participant

    Hi

    Ahh… There they are… Is there a way to make them a little more visible for the users?

    Otherwise could we link to “../members/admin/profile/edit/group/2/” in a usermanual, and then the user will be directed to their own profile edit page?

    #171250

    In reply to: New profile fields!

    bp-help
    Participant

    @budskab
    They are not visible until the user fills them out. In the My Account Menu at the top right hover over it and select Profile/Edit. When you are on the next screen below the profile tabs you will see “Base” and whatever other field group you created. By default you will be on “Base” these fields are the ones that correspond with your registration form. The other Field Group button you made will display the other fields you created within that field group. This is assuming your theme is functioning correctly. If you are still having issues you may want to try some basic troubleshooting by activating a known theme that works well with BP like Twenty Twelve or bp-default as well as disabling any plugins other than BP. Good luck!

Viewing 25 results - 1,426 through 1,450 (of 3,575 total)
Skip to toolbar