Hey guys,
I added a few extra areas to my xProfile fields and there seems to be an issue with the CSS issue I can’t seem track down that makes colors alternate by row.
Here’s what it looks like right now:
http://screencast.com/t/xYuFwMIEs
I’m on 3.8.1 and I just upgraded to BP 2.0 to see if that would help but I didn’t have any luck. Has anyone else ran into this issue that they could give me a hand?
We provide a premium plugin for reporting:
BuddyReports
But it does not show data re profile fields.
Re ‘checked boxes’ – you would want a total of the number of members who have checked box ‘x’ or a list of all members who have done so ?
If ‘offer service’ and ‘search service’ are extended profile fields, you can adapt this example:
BP_User_Query
Thanks for the feature request. At this time BuddyPress only provides visibility settings for individual profile fields. We’ve been putting off building a robust member to member permissions component until after we have attachments. Right now, everything in BuddyPress is loosely considered public.
Remember that BuddyPress is still powered by WordPress, and WordPress’s roles and capabilities system isn’t really powerful enough or scalable enough to handle permissions for millions to millions of users.
That said, there have been plugins that attempted to fill this void, but none of them gained a whole ton of traction unfortunately. We’ll get there, but it’s a bit of a long road.
Hi Hugo,
Thanks for the quick reply.
I have a child theme already set up and i have put the following code into member-header.php but i am unsure of exactly where to put it and if the code is 100% accurate?
<div id=’member_profile’>
<div class=’profile_fields’>Category: <span><?php echo bp_get_profile_field_data(array(‘Type of account’ => ‘Type of account’));?></span></div>
</div>
<?php
Ok I was able to fix this issue.
I added this code to my members-header.php
<?php $Name = bp_get_profile_field_data( 'field=Name' ) ;
echo '<h2 class="Name-fields_main">' .$Name. '</h2>';
?>
added the code on line 22 just under this
<div id="item-header-content">
Ok
After allot more research I found a solution. looks like I was putting your code in the wrong spot sure it would have worked as well @Barney
I used this code
<?php
$state = bp_get_profile_field_data( 'field=State' ) ;
echo '<p class="profile-fields">State: ' .$state. '</p>';
?>
This displays my custom field state that i added via users > profile feeds in backend of wordpress
I put this code under
<span class="activity"><?php bp_last_activity( bp_displayed_user_id() ); ?></span>
this is all in the members_header.php in the bp_legacy section
@Barney
Thanks for pointing me to that.
I’m still struggling though PHP aint my thing 🙁
So the primary field “Name” and my other fields are called “State: and “Organization” and “Website” these are the field names I insert ?
Heres where i put it..But doesnt show full member-header
` </div><!– #item-buttons –>
<?php
/***
* If you’d like to show specific profile fields here use:
* bp_member_profile_data( ‘field=About Me’ ); — Pass the name of the field
*/
do_action( ‘bp_profile_header_meta’ ); // Here is one way you could add xprofile fields name as well as the value to the members directory!
// Just remember to replace “Field-Name” with the names of your fields in the 5 variables in my code.
// Also remember the field name is case sensitive. If you notice the pattern of 5 in my code you can
// easily see how to add more fields if you need them. You can also use the div class bph_xprofile_fields
// to adjust the CSS in your stylesheet. Place this code in bp-custom.php:
add_action(‘bp_directory_members_item’, ‘bphelp_dpioml’);
function bphelp_dpioml(){
$bphelp_my_profile_field_1=’Name’;
$bphelp_my_profile_field_2=’State’;
$bphelp_my_profile_field_3=’Organisation’;
$bphelp_my_profile_field_4=’Website’;
$bphelp_my_profile_field_5=’About-you’;
if( is_user_logged_in() && bp_is_members_component() ) { ?>
<div class=”bph_xprofile_fields” style=” margin-left: 25%;”>
<?php echo $bphelp_my_profile_field_1 ?>: <?php echo bp_member_profile_data( ‘field=’.$bphelp_my_profile_field_1 ); ?><br />
<?php echo $bphelp_my_profile_field_2 ?>: <?php echo bp_member_profile_data( ‘field=’.$bphelp_my_profile_field_2 ); ?><br />
<?php echo $bphelp_my_profile_field_3 ?>: <?php echo bp_member_profile_data( ‘field=’.$bphelp_my_profile_field_3 ); ?><br />
<?php echo $bphelp_my_profile_field_4 ?>: <?php echo bp_member_profile_data( ‘field=’.$bphelp_my_profile_field_4 ); ?><br />
<?php echo $bphelp_my_profile_field_5 ?>: <?php echo bp_member_profile_data( ‘field=’.$bphelp_my_profile_field_5 ); ?><br />
</div><?php
}
}
?>’
@espellcaste, I had already read through that WP doc you referenced. That’s actually where I learned what lines of code to add to my wp-config.php file that I mentioned above.
And yes, it is redirecting to the BP Registration page. That’s expected behavior since I have my BP settings that way. (I have some custom BP profile fields that I want users complete during registration.)
I have posted my question here (as opposed to WP support) because it seems to me the issue may have something to do with how I have BP setup to interact with WP. And so I would think that someone else perhaps has encountered this same issue with BP and the Registration page.
Anyone?
@cdb3212 As far as I understood your problem, there are two articles that would save your life if you had a chance of looking in the Codex. These are:
https://codex.buddypress.org/getting-started/guides/displaying-extended-profile-fields-on-member-profiles/
bp_profile_field_data()
Take a look at those and try it out. =)
Hi @theatereleven,
I’d say that what you aim for is perfectly possible with BuddyPress. You could the following, just suggestions:
- Your users could register themselves;
- Just active the Extended Profile component;
- Use Extended Profiles Fields so that your users can add information when signing up or later;
- And you could customize the appearance customizing the template the way you want.
Maybe there is a better solution, but with BuddyPress you would get already built-in, profiles, profile fields, register process/page, user roles and etc.
If anyone can help me with this, I’ll owe you big time. I’d even be willing to pay for a consult if needed.
Here’s the deal: I have a new WordPress site with public profile pages. Right now I’m doing it with users as custom post types, and using ACF fields to build out the profile pages in precise detail including multiple image upload sections, WYSIWYG areas, etc. Then using S2 member to grant individuals rights to their profile page, but that’s a tedious pain in the arse.
Question: I want a way for a user to register and fill out their own page without me involved. But I need precise customizable options. I don’t want a social network, so I don’t want a lot of the stuff that will come on a BuddyPress profile page. Will BuddyPress let me customize the heck out of the profile page? I’m a PHP lightweight and a CSS heavyweight.
ACF and custom post types have spoiled me because I can place anything exactly where I want it.
Any help is greatly appreciated. I don’t have a lot of time to get this done.
Thank you!!!
Is there a way I can assign a value for an xprofile field to multiple users?
For example, I want to give every user on my site an uploaded image for one of their xprofile fields titled “image”, can I do that in bulk or do I need to do that 1 by 1?
@shanebp Had support from the developer of xprofile. He thinks has something to do with buddypress. I don’t know. What I do know is that if I have the following code in the members-loop file:
<?php $hidden_fields = bp_xprofile_get_hidden_fields_for_user(bp_get_member_user_id()) ; ?>
<?php if (xprofile_get_field_data(‘field_name’) && !in_array(xprofile_get_field_id_from_name(‘field_name’), $hidden_fields)) : ?>
<?php echo xprofile_get_field_data (‘field_name’); ?>
<?php endif; ?>
<?php bp_member_profile_data( ‘field=Adres’ ); ?>
The first code with $hidden_fields and xprofile doesn’t return anything.
The second code does always return data, no matter how visibility is set.
Any ideas?
Hi,
In the add profile fields menu there is an option to write a description to profile groups. The description is not showing on the user page.
How can I make the description appear in the user page?
Hi,
I am using the plugin Buddypress Xprofile Custom Fields Type and I am having a problem with it.
I have set up a some radio buttons under a custom profile tab called ‘Display Options’.
Each radio button is basically just a ‘Show’ and ‘Hide’ for a specific element around the website.
For example, one of them is to show or hide a particular widget (which I have gotten to work using a conditional statement and Widget Logic plugin).
Also there are a whole lot of options for css changes etc.
If anyone wants it, I can provide details on how I achieved the above.
Anyway, all that is fine and working. The only problem I am having is that when a new user signs up to the site, even though these ‘Show’ and ‘Hide’ settings are all correctly defaulted in their profile, they aren’t activated until the user actually goes to that ‘Display Options’ tab and clicks the save button. Only then does everything take effect.
Any ideas as to how this can be fixed?
Thanks in advance to anyone for any help.
Wordpress 3.8.1
Buddypress 1.8
Serks
Hello,
I will try to be concise for explain to you what I want to do. Sorry if you have some difficulties to read my message, I’m not very fluent in english, I will do my best.
For a final project of a course at my university, my group have to make a website were the students and past students can login and see intern and job offer, add also see other users profile. For this project, we need to have a detailed profile, so we have chosen Buddypress.
We doesn’t have any difficulty to create the profile fields. on the other side, in the profile, we need to have all professional and academic experience, like in a curriculum vitae. A user can have on or many experience(s).
Now, in a group name “Professional experience(s)”, where we put some field :
- responsibility
- name of the company
- year
So for now, the users can only inform one professional experience. Ideally, the user must add more than one experience, and with no limit(there will be a limit, but not yet define).
THE question : It is possible to add a button after the profile field that I’ve define above “Add a professional experience”. Like this, the user can add as many professional experience he want, and we are not force to create X time the profiles fields for nothing, in the case of a user that have only one processional experience.
I hope I was able to express myself well and that you understand the issue.
Thank you for your help,
Benjamin Dubé
SKParticipant
It’s that time in the development cycle again.
BuddyPress 2.0 Beta 1 is out.
As the core team quashes bugs, and hopes for a breather to revel in the glory, here’s the last call for 2.1 features scope. What are your top 5 feature requests for 2.0?
(if there are Trac tickets, feel free to post links, but please ensure they are for features not bugs)
I’ll get the discussion going with my top 5:
- Upload profile image at activation https://buddypress.trac.wordpress.org/ticket/4132
- Use taxonomies instead of/in addition to BP Xprofile tables https://buddypress.trac.wordpress.org/ticket/4796
- Hierarchical groups https://buddypress.trac.wordpress.org/ticket/3961
- Find members or friends close to me (my address or current location)
- Allow admin to select fields to display in user “excerps” on Groups’ user list page https://buddypress.trac.wordpress.org/ticket/4126
Thanks Renato, that makes sense. Hopefully someone might know how to add the text in the profile fields searchable so they appear in the search results.
@shanebp Thanks. I used the code and put it in the members-loop. No result. I can see the fields in the admin section as well as in the profile. I can change visibility to one of the four possibilities. But none shows up in the members listing. I don’t get it.
Hi,
trying to display profile fields. In the admin or user settings I can set the visibility to public, members or me only.
When in the members-loop.php I can set certain fields to show up. However these fields will always show up, no matter how the visibility is set.
Is there a way to do something like: if bp_field_visibility of field xyz is public then show else don’t. Or do I miss something?
Thank you, have a nice day !
Leendert
I have a custom field in registration and asking to user membership type with radio button.
There are two selections like “A” and “B” when he registered, as always does in wordpress, i’m getting notification email that “New User Registered on you site bla bla…” i want to add this selection to this email and see fastly which one he/she choosed.
Ex.:
New user registration on your site
Username: John Doe
Email: johndoe@gmail.com
Membership Type: B
Please help if you have an idea..
Okay, so I’m building a site for a local EMS agency and their officers need to have access to all the extended profile fields for all their members, but I really don’t want to give them full site admin access if I don’t have too. Is there any plug-in out there for this or mod/hack to accomplish this?
I’ve created a role called Officers in WP and just need to be able to let that role view and edit all the members extended profile fields.
Any help would be greatly appreciated!
I’m on WP 3.8.1 & BP 1.9.2
Thank you