Search Results for 'profile fields'
-
AuthorSearch Results
-
April 28, 2010 at 7:41 pm #75793
In reply to: How to DIsplay Only Required Fields on Signup
Brajesh Singh
Participanthey Boone, you got me

Yes, the operative is the line which @boonebgeorges mentioned. But the file is itself more versatile than the default bp-register.php to allow you show all the profile field groups fields and so on.
Must check line 157 to 160.
But for sarah’s case, that is not required
April 28, 2010 at 7:24 pm #75784In reply to: How to DIsplay Only Required Fields on Signup
Brajesh Singh
Participantthat’s easy to do. I had posted a solution for showing all the fields from all the profile groups on a buddypress install which is here
http://bpdev.pastebin.com/RLreXE7XYou just need to modify the while loop, well, I have already modified it.
here you go
http://bpdev.pastebin.com/0GeJKXUj
Let me know if it works for you or notApril 28, 2010 at 7:09 pm #75775In reply to: How to DIsplay Only Required Fields on Signup
Paul Wong-Gibbs
KeymasterNot bp_profile_fields; function bp_has_profile() does if that’s any use? It only takes user_id and profile_group_id.
April 28, 2010 at 6:42 pm #75763In reply to: How to DIsplay Only Required Fields on Signup
Sarah Gooding
MemberDoes this part of the profile loop accept any parameters?
while ( bp_profile_fields( ) ) : bp_the_profile_field( );For example I’d like to only include the name field, which is the core field that is required, and not all the other extra fields. So I tried this but it does nothing:
while ( bp_profile_fields( ‘field_id=1’ ) ) : bp_the_profile_field( );Since that’s the only required field I have, it would work if I can customize the loop to show only required fields, only that one field, or a max=1 but none of those seem to work. This is on the signup page, by the way. Is there an easy way to do this that I’m missing? Could anybody point me in the right direction? Thanks!
April 28, 2010 at 6:41 pm #75762In reply to: How to DIsplay Only Required Fields on Signup
Sarah Gooding
MemberWhoops , it stripped the code… lemme try again:
Does this part of the profile loop accept any parameters?
”
For example I’d like to only include the name field, which is the core field that is required, and not all the other extra fields. So I tried this but it does nothing:
”
Since that’s the only required field I have, it would work if I can customize the loop to show only required fields, only that one field, or a max=1 but none of those seem to work. This is on the signup page, by the way. Is there an easy way to do this that I’m missing? Could anybody point me in the right direction? Thanks!
April 28, 2010 at 6:04 pm #75738r-a-y
KeymasterHey @scotm – That’s not the correct usage.
What I meant was copy the the template file I listed above in your child theme and remove everything in it.
Then use bp_profile_field_data(‘field=YOURFIELD’); to list only the xprofile fields you want to list (no need to use functions and remove actions here).
The other method is using a variation of this:
https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/faq-how-to-code-snippets-and-solutions/#post-13243April 27, 2010 at 5:57 pm #75510In reply to: Integrate WordPress profile fields
Mark
ParticipantI kind of figured there was slim chance that I was the only person to ever encounter this and wonder about it… in fact I should have looked on trac first before I posted, because I just discovered xprofile_sync_wp_profile() and ticket #2315. I’m going to have to look closer at it when I get time because this seems to be exactly what I’m referring to.
April 27, 2010 at 5:53 pm #75508In reply to: BP Member Filters was just Updated…how do we use it?
gaysurfers
ParticipantSame here!
I have installed it, copied the form to members/index.php
All it did was create a submit button + “by name” next to search
Wasn’t it supposed to add filters with my x-profile fields to filter the search?April 27, 2010 at 4:47 pm #75491In reply to: Integrate WordPress profile fields
Scotm
ParticipantThis is a longstanding issue with WP/WPMU/BP. I’m not sure why in 3.0 the existing profile page wasn’t discontinued in favour of something that doesn’t require access to admin and that would be trumped if a BP install was present.
April 25, 2010 at 7:41 pm #75177In reply to: BP 1.2 : problem with bp_profile_group_has_fields()
nig3d
Participantthis hasn’t be fixed yet. Has the ticket been created?
Moreover what was bp_fields_has_data supposed to do originally? Because if it should check if the field exists, it seems straightforward to fix.April 25, 2010 at 1:54 pm #75094In reply to: Groups vs Roles vs Custom Profile Fields
Heiner
ParticipantSorry, no answers, just additional questions:
@katendarcy Which plug in do you recommend or use for facilitating the payments?In the front end I would like to display custome fields of paid users only. Still I want all users to see all custom profile fields when setting up their profiles so they see what they are missing when they have a free membership.
designodyssey: I found that role scoper helps to shape the user types and their capabilities. So the user role should be the key. In future there might be two or more categories of paid users.
I see there are a few more of you working on this, so any hints are appreciated.April 24, 2010 at 6:44 pm #74982Jeff Sayre
ParticipantApril 23, 2010 at 3:26 pm #74886In reply to: Badge Maker
gregfielding
ParticipantI’m playing with 1.3 and it’s working great…
2 suggestions:
1. Create an option in the admin menu to hide the names of the profile fields. Most of the fields are pretty self explanatory anyway and the extra words just clutter things up.
2. Create an extra field for users to type in a short message or description, giving them some other way to personalize their badge.
It looks great warut!
April 23, 2010 at 1:02 pm #74868In reply to: Turn Bp in a complete Social Network
gaysurfers
ParticipantCan anyone help?
We desperately need :
– Privacy Features
– Advanced Search & X-Profile Fields
– User-Blogs-Posts from Front-end
When will that be?
April 21, 2010 at 6:28 pm #74630In reply to: New User Actions for BP
techguy
ParticipantThanks r-a-y. I was actually ok with them having to activate it, but I guess if they don’t agree to give their Facebook email there’s no sense. Plus, if they already verified with Facebook, we should be good to go.
However, should we still do something like this:
/* Multisite installs have their own install procedure */
if ( bp_core_is_multisite() ) {
wpmu_signup_user( $user_login, $user_email, $usermeta );
} else {
wp_insert_user($user_data) ;
}
Although, maybe that doesn’t matter so much once WPMU and WP are merged?
I also think it’s better to offer the code to the plugin developer instead of using his hook, no? Then, future BP users it will just work out of the box.
I’ll try out the x-profile field stuff. Is there any documentation anywhere on the x-profile fields? What’s required? What’s available, etc?
April 21, 2010 at 2:01 pm #74591In reply to: Profile Hooks?
Boone Gorges
KeymasterDownload this plugin and check out the code: https://wordpress.org/extend/plugins/custom-profile-filters-for-buddypress/ It will show you the basic method I used to modify specific xprofile fields. Short version: you can filter the output of xprofile fields in general, and then you use a conditional to detect the name of the profile field that you want. Not enormously elegant, but hopefully that code will get you part of the way there.
April 21, 2010 at 1:53 pm #74590Windhamdavid
Participantthe api eh? (a large percentage of shared hosts are poor quality, we’ll never be able to fix that) my take is that at it’s core, it’s “the missing extended user profile framework for WordPress”. It would, in my feeble opinion act primarily as a framework api for extending those profiles. Some of the issues and limitations are really presented by wordpress and mu.. not Buddypress and in much the same way that bp extended the wordpress user profiles/functions we should tackle those head on as had been done with the improvements in the BP1.2 registration. There are infinite ways to build on those relational database fields. Focus exclusively on bp_xprofile _fields, and _data. It’s not that I’m anti-activity stream and the terms social network, life stream or whatever just seem to incorporate user profiles into some sort of relational scheme, be it friends, followers, ‘like’-ing, sharing or chronological micro blogging. Extending the stability, functionality, and interactivity of each component is the goal, but I’d prefer to see no dependency among core elements with one another. It’s fairly simple to build out a “social network” in other popular content management systems by extending the user database fields and in my day to day practice, I typically use only about 20% of the Buddypress core components for a WordPress project. Even though the hype is in the activity stream and the extensions for it (more facebook or twitter like), I side with @stwc in that “It also means that the platform has to have a robust set of tools for the administrator and moderators of the community “. A community (or ‘social network’) is just a set of users and to me, key items are a small footprint on the database and tight the integration with the existing wordpress user roles, permissions, registration and management. The api should ideally be flexible enough to accommodate any possible relational data between user profiles that a plugin author may dream of. I think the core integration between user profiles and the activity/blogs/groups/forums/friends illustrate the foundation of the api and should be as unified, consistent, and simple as possible with very little dependency or overlap in functionality. This would be impetus for creating a more standardized way to interact with the xprofile and be a good foundation for a solid api. lastly, thanks @mrmaz for starting the thread, being pro-active, getting the trac and api.buddypress and generally illustrating the potential of a solid api in regards to how well your links plugin and others can interact with the core.
ps.. death to PHP4 and fsck backwards compat
April 21, 2010 at 1:16 pm #74585In reply to: Profile Fields
peterverkooijen
ParticipantWP, WPMU and BP each have their own member admin areas, both frontend and backend, and data tables in MySQL, some of them synced, most not. Member management is an afterthought for Automattic. Hopefully it will be fixed in 3.0.
April 21, 2010 at 12:36 pm #74580In reply to: Profile Fields
Brajesh Singh
ParticipantIf you mean the User entered data, it is available on their profile not inside the wp-admin. You will need to visit their profile to see the data.
April 21, 2010 at 12:35 pm #74579In reply to: xprofile vs usermeta syncing problems
peterverkooijen
Participant@Andy Peatling, so version 1.2 does sync separate firstname and lastname from the xprofile field to the fields in wp_usermeta?
I will upgrade when WP 3.0 is out, probably this Summer when my day job work is slow. I have a custom theme. It will be a complicated operation.
April 21, 2010 at 4:18 am #74542In reply to: Badge Maker
Nahum
Participantnice one. would be good to admin what profile fields should be made available to user. I have long list of fields that only get used as custom fields for other purposes than regular display. but yea some changes on backend don’t update on front, specifically the V/H Layout option didn’t work by setting it in admin, only when i set to allow user to decide layout does it update on hitting update badge. btw what’s the best way to overwrite the default logo image. thanks.
April 21, 2010 at 12:43 am #74516In reply to: New User Actions for BP
r-a-y
KeymasterJust looking into the bp_core_signup_user() function again. Sorry for pointing this to you in the first place!
I would not recommend using this function because it sets a user’s status to “not active”, then sends an email to activate the account (which makes sense because that’s the default registration behavior in BP!).
Since we don’t want to ask a FB user to activate their account, stick with the wp_insert_user() function, then use some code to sync up the xprofile fields like:
// set xprofile field 1 (Name) with the fbuser's first name
xprofile_set_field_data(1,$user_login_id,$fbuser['first_name']);
/*
* @param $field The ID of the field, or the $name of the field.
* @param $user_id The ID of the user
* @param $value The value for the field you want to set for the user.
*/To initialize BP, look at using the bp_init action:
https://codex.buddypress.org/how-to-guides/checking-buddypress-is-active/
[EDIT]
Just looking into the WP-FB-AutoConnect plugin, Justin (the author) has a do_action that you could hook into:
do_action('wpfb_login', array('WP_ID' => $user_login_id, 'FB_ID' => $fb_uid, 'facebook' => $facebook) );Here you can sync up your xprofile fields, etc. Unfortunately, this action occurs every time a Facebook user logs in. You could view this as a positive or a negative!
I think it would be nice if Justin added another do_action right after the wp_insert_user() function in _process_login.php.
[EDIT #2]
Requested a new do_action on Justin’s plugin page – http://www.justin-klein.com/projects/wp-fb-autoconnect/comment-page-5#comment-11638.
April 20, 2010 at 10:49 pm #74501In reply to: New User Actions for BP
r-a-y
KeymasterThat’s correct the $usermeta variable holds the submitted xprofile fields from the BP registration page.
eg. you could do this:
$usermeta['field_1'] = $fbuser['first_name']; // field_1 = "Name" on BP registration pageYou’ll have to grab the correct field_x name for each xprofile meta you want to sync up with the FB auto plugin.
—
BP_VERSION might not be working because WP-FB-AutoConnect is probably loaded before BP, so WP-FB-AutoConnect (man that’s a mouthful!) doesn’t know that BP exists.
April 20, 2010 at 10:20 am #74379In reply to: How to order members list alphabetically by default
leftblanx
ParticipantAnybody have any idea about these questions?
With regard to the point in the final paragraph – when you sort the members list alphabetically, and then use the search facility, the SQL query looks like:
SELECT COUNT(DISTINCT u.ID) FROM wp_users u LEFT JOIN wp_usermeta um ON um.user_id = u.ID LEFT JOIN wp_bp_xprofile_data pd ON u.ID = pd.user_id WHERE u.user_status = 0 AND (pd.field_id = 1) AND pd.value LIKE ‘%%searchterm%%’ ORDER BY pd.value ASC;
It assumes pd.field_id = 1, which is the Name field – why does it assume you only care about searching on the Name field when ordering alphabetically? And how would I best modify this to search on a) the text values of all my text profile fields, and b) the labels on multiple option profile fields?
April 19, 2010 at 1:10 pm #74179In reply to: Ning.com Migration Tool (NMT)
Aaron Edwards
ParticipantI worked nonstop this weekend to finish up our own advanced importer we started a few months back. Allows you to do a full import of a Ning network’s users, their custom profile fields, and avatars to BuddyPress! It reallywas a bit of work to scrape avatars from the profile pages but looks real cool while importing. Full support for very large member lists via optional FTP upload and batch processing so it won’t timeout on you.
http://premium.wpmudev.org/project/ning-to-buddypress-user-importer
-
AuthorSearch Results