Hello !
I would like to redirect the user to another profile group fields when he clicks on “edit profile”, in order to display the second profile group as default tab. Is there a way to do that ?
I tried that:
`<?php global $bp;
if(bp_get_current_profile_group_id()==1)
bp_core_redirect($bp->displayed_user->domain.”profile/edit/group/2″);
?>`
But it displays me an error :
Warning: Cannot modify header information – headers already sent by (output started at mydomain.com/wp-content/themes/buddyboss/header.php:3) in mydomain.com/wp-includes/pluggable.php on line 934
Thanks.
I apologize. This was a false alarm on my part. I was testing on my profile, where I swore I had saved information. That was back when Ajax was broken, and I think it didn’t save my profile so all the fields were empty. I added information to my profile and it is showing up correctly now.
+1
That really would interest me too. Ideally showing the different group names as headings for the sections if there is any data in any of those fields.
I don’t want to have this massive registration form with tons of fields you have to fill in during sign-up. So I don’t have any extra xprofile fields in the base group. But when when I go to display a profile on my site, all I see is the username. I don’t see links to pull up the other xprofile field groups.
Can I change the profile page to show all xprofile fields from all the groups if the values aren’t empty?
Yeah I did post something similar but this is to take profile fields from a members profile and give them up as digital download, but the other one was to have uploaded PDFs by a member to be for sale. I felt this was two different things so posted two different posts.
Thanks for your help on the other post, any ideas on this one? Have you seen the working of the cart I found?
Hi
I’ve got a client that is after a community website that has the ability to buy and download a members contact details.
So Buddypress is the obvious answer to run the community with the great member profile options, but does anyone have a clue of how I could integrate a “Shopping cart” for the members contact details.
Here is the working for what my client needs:
Member1 signs up and fills in all the fields of their profile. This includes the contact details that are hidden from general view (this I can do)
Member2 finds Member1’s profile and wants to get in touch with them. They click the button on Member1’s profile “add to cart”. This adds to the contact details to the cart. Member2 then searches and adds more contact details from other members to the cart. They then checkout using PayPal and the contact details that Member2 has requested are emailed to them.
I’ve looked at http://www.mals-e.com and know that it uses code to create the add to cart buttons on the page, could I call hidden fields out from the profile using this??
I know this sounds like the impossible but has anyone got any ideas or know of a plugin that could be adapted to fit?
Cheers
Thanks @modemlooper. I had been considering having to do an option like that. I’ll give that one a whirl tomorrow and see how I go.
Hey @djpaul, yeah they all have spaces in them. All the existing users come in with spaces in their name in a First Name, Last Name kind of way. I tried changing the ‘Nickname’ and ‘Display Name publicly as’ fields in my own profile to see what would happen yesterday and that obviously doesn’t have anything to do with it as you can see here: http://edgeqld.org.au/members/Bronson%20Quick/
I know the site was originally WordPress MU then it went to WP 3.0 then up to WP 3.2 and installed the BP theme and plugins on top of that. I didn’t have any existing users on my staging site so didn’t hit this problem til we went live….now I’m cowboy coding fixing bugs and I’m completely stuck with this one!
@untilthen5 my PHP knowledge is adequate to zero , so I didn’t find any solution , I was studying @slaffik ‘s plugin to find something what should help us to display those fields , with my PHP knowledge I gave it up immediately.
Slaffik’s Group Extras plugin is great , even greater now with adding unlimited group pages, it miss only function to memorize the sets of fields for all groups (you should create for every single group those sets of fields over and over again , @slaffik promised to finish it too).
boone’s & modemlooper’s code is very quick and for me perfect solution because I don’t need the sets of fields. I need only 1 set of 10-15 extra fields on first Group creation step page which will better describe every group . Fields thanks Boone and Modemlooper we managed to get to insert into database, so group admins should see them now , fill them out , but without displaying those fields for public is now at least for me unfortunately useless .
It looks like displaying those fields in groups doesn’t seem so simple as we were thinking (the way of displaying the fields in profiles as we know is very easy). @modemlooper said after he will finish his other works he has also intention to finish this small but very useful plugin – I suppose he meant with displaying all those fields in the template so I am going to wait when someone of them will come with fully working plugin.
That’s what I want to know too , I hope that displaying group’s custom fields is a similar as the displaying profile’s custom fields code in the members-header.php. I will study it further.
couldn’t you use the same basic technique as you would for displaying information for members int he profile header?
Hello,
When we launch a user profile, how can we do to make BuddyPress loads first the profile user with his fields rather than the Activity stream user page ?
Thanks.
php if ( $data = bp_get_profile_field_data( 'field=State' ) ) :
State/Region: php echo $data
php endif
Thanks modemlooper , type=”checkbox” will not be enough I guess , adding the options works the same as for dropdown menu? I will study it farther , your little plugin works nice for me at the moment, I don’t need nothing else than the correct code to display those custom fields within the groups(groups-header.php) , if somebody can tell me the code for groups to display it for a public I would be very grateful :
This is the code for the profile field “State” I use.
State/Region:
Custom fields for groups should work on similar basis I hope.
type=”checkbox”
When I’m done with next version of BP mobile I’m creating a plugin that does what the profile fields does
For displaying member profiles fields I use this code in member-header.php:
php if ( $data = bp_get_profile_field_data( ‘field=State’ ) ) :
State/Region: php echo $data
php endif
(the code will be broken because I have forget how to insert the code on this site)
How can we display group custom fields in group-header.php?
For displaying member profiles fields I use this code in member-header.php:
State/Region:
How can we display group custom fields in group-header.php?
oops, missing global. Making this into a plugin but might need some help. i’ll post it on git hub. Think we need same extra field functionality as profiles
`function group_details_markup() {
global $bp, $wpdb;`
You can specify profile field groups like links or interests. The default group of fields is called Base but you can change it to something like info or about
@Stigmartyr – no need to thank me, Paul did the heavy lifting.
I’m not 100% sure but I don’t think that any tables get created when a new group is made, rather the existing tables are populated. Usually any tables to be are created are done initially when the mod is first installed.
If you’re trying to add more fields to the group profile like Paul said: you probably want to make a plugin that does this. Unfortunately like you I’m merely dangerous with php.
Oh, that should be working. At least, I know it does in the latest version (1.5). We use 1.5 on this site, and I got an email and a notification (in admin bar) from you 
@alfredojp, thanks for your input, i know i can use that code to get some profile field but if you read my post you will know that what am trying to achieve is more than just profile field.
thanks anyways
Try this:
`<?php
bp_profile_field_data( ‘field=Country’ );
?>`