Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'profile fields'

Viewing 25 results - 1,501 through 1,525 (of 3,589 total)
  • Author
    Search Results
  • #167906
    maikunari
    Participant

    @shanebp Thanks for the tip, that may be just what I need!

    #167905
    maikunari
    Participant

    @bphelp Thanks for the answer, but that doesn’t seem to be it ๐Ÿ™

    I tried <?php echo bp_member_profile_data( 'field=Profile:' ); ?> but no dice.
    Also it seems to work fine without echoing it on members/members-loop.php.

    It may be that the function only works inside the members loop, but I’m not sure?

    #167904
    shanebp
    Moderator

    Use bp_get_group_member_id() and pass the id to xprofile_get_field_data(…)

    If you can’t figure it out and/or you want to honor field visibility settings,
    there is a premium plugin available: BuddyProfileData

    #167903
    bp-help
    Participant

    @maikunari
    Looks like you forgot to echo it. Try this!

    
    <?php if ( bp_get_member_profile_data( 'field=Profile' ) ) : ?>
         <?php echo bp_member_profile_data( 'field=Profile' ); ?>
     <?php endif; ?>
    
    #167896
    4ella
    Participant

    I am trying something similar with gravity forms, I am trying to pre-populate gravity forms fields with buddypress profile data fields and I can’t get it work too, I am using something like this in functions.php if it helps:

    // Buddypress pre-populate phone
        add_filter("form_field_value_phone", "populate_phone");
        function populate_phone() {
                $current_user = wp_get_current_user();
                $current_user_id = $current_user->ID;
                $phone = bp_profile_field_data( array('user_id'=>$current_user_id,'field'=>'phone' ));
                return $phone;
        }
    #167867
    Tammie Lister
    Moderator

    Is this a plugin or BuddyPress? I’m asking as you say custom subscribe fields. Are those profiles or using a custom plugin?

    #167809
    4ella
    Participant

    This is the old thread but the same question, I didn’t want to spam here that’s why I will ask the same question here again, I would like to dynamically populate buddypress data into custom post types gravity forms when the user is logged in, I am succesfully populating wordpress user meta, but I don’t know the code in functions.php for buddypress profile fields to make them work, I have already asked on Gravity Help forum, but there are plenty of questions like that and the same as mine question they have never been answered, I hope that maybe somebody from this forum already had to resolve that problem in the past.

    #167792
    nobodymove
    Participant

    @bphelp. I think I have discovered the culprit to this little mystery.. I have been using the Buddypress Members Import plugin: http://www.youngtechleads.com/buddypress-members-import/

    For some reason when I import my database, the plugin does not seem to process the xProfile Field visibility settings properly.. The profile fields are still listed as “Admins Only” But for some reason they are still visible to all users.

    Earlier, I manually added some new test profile fields and they worked fine. I also discovered, that if I edit, and re-save a user’s profile field after import, all profile fields for that user will then revert to the proper visibility settings.

    I have contacted the plugin author to make him aware of the issue, hopefully he can fix it. If you have any suggestions that might be a quick fix for this I’m all ears! ๐Ÿ™‚

    #167767
    nobodymove
    Participant

    @bphelp. Upon a little further research, I wanted to note that I created a new User Profile Group, created a private field seen by Admins Only in that group, and the settings seem to be working fine in that group. In my Base (Primary) group though, all profile fields still remain visible to all users. Does the Base (Primary) group automatically force all fields visibility public by default? If so, is there way to override?

    If there is no way to change the visibility in the Base (Primary), I suppose I can just put private info in the other Profile Group, but I’m curious if or how that may effect my database import..

    #167443
    nobodymove
    Participant

    Thanks @bphelp. Info listed below:

    1. Which version of WordPress are you running?

    3.5.2

    2. Did you install WordPress as a directory or subdomain install?

    Directory

    3. If a directory install, is it in root or in a subdirectory?

    root

    4. Did you upgrade from a previous version of WordPress? If so, from which version?

    3.5

    5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting.

    Wordpress seems to be working fine

    6. Which version of BP are you running?

    1.7.2

    7. Did you upgraded from a previous version of BP? If so, from which version?

    1.7

    8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones?

    Yes, a lot. ๐Ÿ™‚

    Allow Multiple Accounts
    amr users + buddypress
    buddypress group email subscription
    buddypress member import
    buddypress message attachement
    Buddypress Toolbar
    Buddypress Xprofile custom fields type
    comprehensive google map
    contact form manager
    events manager pro
    easy table
    form lightbox
    GRAND Flash Album Gallery
    Lightbox Galleries EWSEL
    Mass Messaging in Buddypress
    Online Backup for WordPress
    Peter’s Login Redirect
    SHortcode Widget
    User Switching
    WP Full Calendar
    WP Wunderground

    9. Are you using the standard BuddyPress themes or customized themes?

    I’m using Razor 1.1.3 from Themeforest/Parallelus

    10. Have you modified the core files in any way?

    No

    11. Do you have any custom functions in bp-custom.php?

    No

    12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in?

    13. Please provide a list of any errors in your serverโ€™s log files.

    14. Which company provides your hosting?

    Network Solutions

    15. Is your server running Windows, or if Linux; Apache, nginx or something else?

    VPS hosting package

    #167393
    modemlooper
    Moderator

    If you look at this snippet for allowing youtube link to embed instead of showing a link you can wrap a function in an if this field is X then don’t remove link.

    https://gist.github.com/modemlooper/4574785

    #167360
    blg002
    Participant

    I am also curious if there is an answer to this.

    #167277

    In reply to: Creating New Plugins

    bp-help
    Participant

    @modemlooper
    I can understand that. It is better for everyone. Once I downloaded a plugin that was supposed to let you have conditional profile fields or something to that effect and it did not even work at all so I can appreciate them taking a closer look before blindly allowing a useless plugin on the repository. Anyway I will be making the changes you suggested after I go out and get my lunch. Thanks again for the advice!

    mixali
    Participant

    Hi Jay,

    I was having a similar problem and did as suggested here:

    https://buddypress.org/support/topic/bp-default-sidebar-login-not-working/#post-166898

    Hope it serves! Good luck!

    #166760
    walvin
    Participant

    Thanks for the code @sbrajesh

    I had the same issue, so I added it to my bp-custom.php and it worked liked a charm.

    #166737
    applegateian
    Participant

    Yes it works on profiles.php… but the text widget I use on a post page works for all the other xprofile fields?

    #166722
    applegateian
    Participant

    Hi there

    I’m using it in a text widget sidebar, which works for all the other fields.

    The spelling is correct and there are multiple options selected.

    Thanks,

    Ian

    #166630
    otfromtot
    Participant

    xprofiles works perfectly so far. Is anyone else having issues using required fields for the different profile groups?

    #166595
    Sea Jay
    Participant

    Thank you for the diagnosis and recommendations.

    I am using Responsive child theme with the default template. I’ve remove all plugins remotely related to registration.

    The last thing I just removed is a functions.php script to automatically add new users to a particular group when they register, below.

    So, then the question arises: where does the “Posted in” text come from? In BuddyPress settings, I chose a page called “Register” for registration, and the page itself uses the “Default” template. However, what Responsive file is default? I’m not seeing “Posted in” in /page.php/ or /post.php/. It’s in /sidebar-content-page.php/ but I haven’t selected it.

    Also, I am using Types and Views, but no views or templates are applied to any of those page types.

    /**
    * Automatically adds members to group when they are registered
    */
    function automatic_group_membership( $user_id ) {
    if( !$user_id )
    return false;

    groups_accept_invite( $user_id, 6 );
    }
    add_action( ‘user_register’, ‘automatic_group_membership’ );

    #166576
    @mercime
    Participant
    #166574
    Ben Hansen
    Participant

    the only fields which show on the register page are the ones that belong to the “base” (unless you have renamed it) profile field group.

    the non optional fields cannot be split you might be able to rename them however. you will find the option to add/define fields is under admin (network admin for multisite) > users > profile fields

    #166566
    @mercime
    Participant

    @jcollier Tested your site registration in IE 10 and getting the same issue. Made a Responsive child theme in my test install, used default page template for register and had no issues registering/activating new account.

    Could be the custom template used for register page – noticed that there’s “Posted in” text just before footer in your register page. Change register page template back to default page template, clear cache, check if issue is resolved. if that doesn’t work, deactivate plugins batch by batch to check which is causing the timeout.

    #166548
    Hugo Ashmore
    Participant

    Always perform a quick search first, sort of topic that has come up a few times.

    https://buddypress.org/support/search/?bbp_search=profile+fields

    keep scrolling down through them, you’ll find example code to work from.

    #166516
    SadNinja
    Participant

    http://wpmu.org/add-birthdate-email-and-url-fields-to-buddypress-profiles/ lets me add custom fields which is good enough for me. IDK why I didn’t find this sooner but maybe some other dumb person will find this and it will save them some time.

    #166495
    Eugene
    Participant

    I’ll certainly look into this solution more.

    When I started I was new to WordPress. Now I’m new to BuddyPress so am looking at the feasibility of integrating or replacing what I’ve written. I have a lot of specifc business rules in the profile I’ve written so I would prefer to use what I have, not to mention not to throw away all my work. The hidden but required fields is just an example of one of the many business rules I’ve written in my plugin.

Viewing 25 results - 1,501 through 1,525 (of 3,589 total)
Skip to toolbar