Forum Replies Created
-
Hi ya,
hmmm… What do you mean by disposable email? The receiving email address? Or the sending one?The Sending one is from our server, which is owned by us.
Thanks
Thanks!
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.
Actually, ignore the last part about the forums dropdown. I found it my menu. In the Forums section. Doh!
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?
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…
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. 🙂
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.
So I realised looking at this page:
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…
Ah! Thanks for the link!
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….
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,
NormOK, 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.