Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 13 replies - 1 through 13 (of 13 total)

  • Norman Cates
    Participant

    @normancates

    Thanks


    Norman Cates
    Participant

    @normancates

    Thanks!


    Norman Cates
    Participant

    @normancates

    I don’t understand.

    Isn’t all the xProfle extra information part of Buddypress?

    I haven’t installed an extra plugin that has anything to do with xProfiles.

    AFAIK.


    Norman Cates
    Participant

    @normancates

    Actually, ignore the last part about the forums dropdown. I found it my menu. In the Forums section. Doh!


    Norman Cates
    Participant

    @normancates

    Thank you.

    However, I am using a plugin that sends an email invite to people whoare to become users.

    They fill in a simple registration form, then submit it.

    And then log in to the website.

    At that point, they have access. They haven’t gone through any Buddypress registration forms.

    So I can’t hook those actions.

    At what point in the user registration process do the xProfile fields get created/populated for a new user. eg. When does the default Name field get populated in the user registration process.

    And is there a corresponding action I could hook?


    Norman Cates
    Participant

    @normancates

    I’ve tried xprofile_get_field_data using this code:

    $args = array(
        'field'     => 'Nickname'
    );
    
    $result = xprofile_get_field_data($args); 
    print ("<br><br>");
    print ("XProfileData");
    print ("<br>");
    var_dump($result);

    But all it does is return “FALSE”

    That xprofile field definately exists

    Thanks to someone on WPMU dev, I tried this:

    $profile_data = BP_XProfile_ProfileData::get_all_for_user( 1 );
    echo '<pre>';
    print_r($profile_data);
    echo '</pre>';

    This returns the Profile fields…


    Norman Cates
    Participant

    @normancates

    Sweet.

    The problem I have is that I’m used to using variables in loops. $variable etc.

    But the loop page is only using functions (AFAIK).

    I assume that’s a standard PHP capability, but I don’t know how to search for what that’s called to read up on it…

    I also was ignorant of the alternative syntax for control structures. I’ve read up on it and wanted to check that:

    while ( bp_profile_groups() ) : bp_the_profile_group();
    
    endwhile;

    was 100% equivalent to:

    while ( bp_profile_groups() ){
          bp_the_profile_group();
    
    }

    I’ve actually tried putting that exact code, in both syntaxes, into my test page.

    And it kind of silently fails. It brings up bits of the page, but then stops. And I can’t even pull up the source or the Chrome Developer window.

    How do the functions in the loop get their parameters to return values?

    Is everything being set globally? If so, then how do we know which functions have to be caleld first to set up the variables?

    Thanks for all your help. 🙂


    Norman Cates
    Participant

    @normancates

    I’m lookig to get the xprofile data out. And also poke it in.

    I’m afraid that you might have to get more basic than what you’ve said.

    What’s a loop function and how does it pass data from one function to another. I interpret a loop as a “for each” or a “while” or similar that loops through an array or whatever.

    Are these objects or classes that are doing something I don’t understand?

    Glad to be told that I need to read up on xxxx or yyyy.

    At the moment it just looks like black magic.


    Norman Cates
    Participant

    @normancates

    So I realised looking at this page:

    Profile Fields Loop

    That I have no idea how it’s getting its data.

    There’s no arrays or variables being set. There’s these functions:

    bp_has_profile()
    bp_profile_groups()

    and so on.

    But none of these do any assignments of variables or results.

    I suspect my PHP/programming knowledge is way out of date. Because there’s something sophisticated or hidden going on here with those functions that I just don’t understand.

    As usual glad to be pointed at background reading…


    Norman Cates
    Participant

    @normancates

    Ah! Thanks for the link!


    Norman Cates
    Participant

    @normancates

    Thanks.

    yeah, that plugin is useful, but it’s only one way. It only goes from BP to WP not WP to BP.

    It also has limited WP profile fields available. Although that’s easy enough to fix by adding items to the array in the plugin…

    The core problem is that once you have BP, there’s two different places to change the basic profile data. Having BP be able to take over the appropriate WP profile areas would make things so much easier….


    Norman Cates
    Participant

    @normancates

    That’s awesome.

    Why is this not a standard part of Buddypress? (Rhetorical question)

    IMO, any fields should be designated (or able to be designated) as linked to the WP profile information.

    THis is a CONSTANT source of confusion for me and any users. Because some plugins use the WordPress profile info, and some the Buddypress info.

    I get that they probably need to do that. But at least let us synchronise the data.

    Including display name options…

    Please, BP / WP developers, slam an interface on this and let us keep our data consistent.

    Cheers,
    Norm


    Norman Cates
    Participant

    @normancates

    OK, thanks.

    So am I misunderstanding what a template pack is?

    I had thought it was a way of displaying BP information inside other templates, assuming they don’t override the BP formatting.

    So there is only one way at the moment by default?

    It’s really hard to find free templates for BP. Are there any recommended ones that look nice and are responsive?

    Looking at https://buddypress.org/ there is a screen shot of a nicely laid out profile screen that is a lot more attractive than the default one.

    Does anyone know what that template is and if it’s generally available?

    Thanks.

Viewing 13 replies - 1 through 13 (of 13 total)
Skip to toolbar