Search Results for 'profile fields'
-
Search Results
-
I am helping a nonprofit I support by building a site totally built on Buddypress: http://parishcollective.org/beta
We are allowing users to create a profile with minimal information (via Social Login) but we want to keep the user role at ‘subscriber’ until they fill out the required profile fields. At that point, we need to be notified that they updated their info so an admin can check their info and up their role to ‘contributor.’ (It gives them access to creating blog posts and other things)
Initially I started with something basic from this post: http://buddypress.org/support/topic/notification-on-profile-update-2/
However, wp_mail() is conflicting with something in our site and causing a fatal error.
So I’ve been attempting to add a user meta key (when a user updates their profile) that can be queried in the backend in a custom admin menu so the users with completed profiles can be displayed.
Here was the adapted code based on the post above:
function my_update_profile_mark() { $user_ID = get_current_user_id(); $power_level = 9000; add_user_meta( $user_ID, '_level_of_power', $power_level); } add_action( ‘xprofile_updated_profile’, ‘my_update_profile_mark’ );If I understand the ‘xprofile_updated_profile’ hook correctly, it should just fire anytime any field is updated on a profile, right?
From there I planned to experiment with something like this based on the Force Profile Update plugin to make the function fire when the profile is totally updated:
function my_update_profile_mark() { global $wpdb; $bp_prefix = bp_core_get_table_prefix(); $xprofile_fields = $wpdb->get_results("SELECT count(*) AS empty_fields_count FROM {$bp_prefix}bp_xprofile_fields WHERE parent_id = 0 AND is_required = 1 AND id NOT IN (SELECT field_id FROM {$bp_prefix}bp_xprofile_data WHERE user_id = {$user_id} AND valueIS NOT NULL AND value` != '')"); foreach ($xprofile_fields as $field) { if ($field->empty_fields_count > 0) { $user_ID = get_current_user_id(); $power_level = 9000; add_user_meta( $user_ID, '_level_of_power', $power_level); } add_action( ‘xprofile_updated_profile’, ‘my_update_profile_mark’ );I’m a pretty new to programming and I don’t totally understand all the code here, but I’m trying hard to make something work here. Any ideas/guidance?
I also realize this solution, even if it worked, would update the meta key ‘_level_of_power’ to the specified value “9000” every time the user updated their profile after their profiles were filled out. But that’s an annoyance we can live with for now. Not knowing the user is ready to be upgraded wouldn’t work at all for the site. Any help would be appreciated. 🙁
Hi there.
After searching this, and other, forums i give up.
Ive installed the latest buddypress (1.9.1) along with gamepress theme. WordPress version (3.8). My site: http://www.lolhouse.net.
Ive tried to activate twentyelleven themes and others to see if it was the theme that didn work along with buddypress.Ive set the “anyone can register” under “setting->general”
Ive made a bunch of profile fields under “users”My problem:
The second i “Associate WordPress Pages with the following BuddyPress Registration pages” – and saves, that specifik page i associated with disapears from my website!?Can anyone please help me?
Thankx, Kristian.
Hi there.
After searching this, and other, forums i give up.
Ive installed the latest buddypress along with gamepress theme.
Ive tried to activate twentyelleven themes and others to see if it was the theme that didn work along with buddypress.Ive set the “anyone can register” under “setting->general”
Ive made a bunch of profile fields under “users”My problem:
The second i “Associate WordPress Pages with the following BuddyPress Registration pages” – and saves, that specifik page i associated with disapears from my website!?Can anyone please help me?
Thankx, Kristian.
Hello everyone!
I am trying to make some fields to be filled as user registers to my site.
My goal is to make this condition:
if [gender=male] then [interested_in=female]
if [gender=female] then [intersted_in=male]i have written a code for that and applied it on my functions.php file and add_action to user_registration. but no luck so far.
this is my code:function changeinterest( $user_id ) { $args = array( 'field' => 'My_Gender', 'user_id' => $user_id ); $field_name = 'My_Interests'; $original = bp_profile_field_data($args); $value = maybe_serialize('male'); $femalevalue = maybe_serialize('female'); if ($original = 'female') { xprofile_set_field_data( $field_name, $user_id, $value);} elseif( $original = 'male' ){xprofile_set_field_data( $field_name, $user_id, $femalevalue);}; } add_action( 'user_register', 'changeinterest', 10, 1 );To me it seems correct and written ok, but I cannot understand why it’s not working.
any help would be much much much appreciated !!Ok guys I have been going down a rabbit hole on how The User Profiles work when you have Buddypress installed. Because what I understand is that buddy press hooks into the native wordpress profiles and extend it in your install.
So my question is this how do you create User/Member Profile Register by creating a extended profile fields so that you can segment roles.
In my example I am wanting to create users based on Neighbors fields:
I am a: Resident
I am a: Business Owner
I am a: Friend/Fanof x community/neighborhood.
I hope that make sense. So my questions is how does that relate to the User Fields/Roles in the general WordPress Profiles.
Hello all
Well I tried doing this myself but I managed to completely ruin one of my sites so I thought I better ask you guys about this one.
Basically I am trying to use buddypress on more then 1 site, but buddypress needs to use the same database tables or atleast sync the database tables of the main installation onto the other database tables of my other websites as I am currently running 4 different sites 2 of which have completely different domains I can’t really enable wordpress multisite and do it that way.
Basically I want to have the same profile fields on all of my sites and have the notifications, messages and etc
Wordpress Version: 3.8 (On all sites)
BuddyPress version: 1.9.1 (On all sites)So if anyone can help it would be appreciated.
Thanks, LiamTopic: Segregating for Multisite
I’ve read this article on Segregated X-Profile Fields for Multisite which explains how to “create separate tables for each site, so Extended Profile Fields work independently on the network”.
Looking at the example code, it only shows how to segregate X-Profile fields.
Before I go down a path that could lead to much frustration, can anybody tell me if the same is possible with groups?
Perhaps by adding a few lines of code to the example:
function add_custom_bp_groups_tables($sql) { ... $sql[] = "CREATE TABLE {$wpdb->prefix}bp_groups ( // bp_groups table fields would go here ) {$charset_collate};"; return $sql; } add_action( 'bp_init', 'modify_bp_global_groups_tablenames' ); add_action( 'switch_blog', 'modify_bp_global_groups_tablenames' ); function modify_bp_global_groups_tablenames() { global $bp, $wpdb; $bp->groups->table_name = $wpdb->prefix . 'bp_groups'; $bp->groups->table_name_groupmeta = $wpdb->prefix . 'bp_groups_groupmeta'; $bp->groups->table_name_members = $wpdb->prefix . 'bp_groups_members'; }And, by default, does the member’s loop only query users of the current blog, or does it query users for the entire network?
Currently I don’t see a plugin for this but wanted to know if there was an alternative to show users country flag based on selection of profile fields. And if it was possible to place around the user name area. Thanks in advance!!!
Currently I don’t see a plugin for this but wanted to know if there was an alternative to show users country flag based on selection of profile fields. And if it was possible to place around the user name area. Thanks in advance!!!
Topic: Adding membership types?
I’m attempting to create a site for two types of users, one is a list of content creators, and the other type of member would be users who want to track or interact with those content creators.
Can anyone recommend a way though for me to separate those users? I don’t necessarily want the content people browsing the list of the other members, and I also don’t want to have the other members join the content group.
I’ve been testing out BuddyPress for a while now and it seems to fit most of what I need (custom profile fields, membership lists, favoriting of users, etc.), but I also need to figure this part out as well.
Am I perhaps best served by integrating S2Member? Or does anyone have another recommendation?
Thanks!
I have an alumni site and added fields for Graduation Year (drop down) and current residence (City (optional), State (drop down) and Country (drop Down) and About Me (multi line text)
I also added fields for current last name versus name while in school.
The registration form looks fine but when I pull up a member record the data is messed up. An example would be
Last Name while in school: John Smith
Last Name current: EH
First Name: CM
Class of : 1995
City: WK
State: MB Manitoba
Country: Swaziland
About me: BDThe class of is a drop down and the 1995 is correct.
The State is a drop down but MB was not correct for this person.
Country is a drop down but Swaziland is incorrect for this person.I read that changing the name of the Name field might cause a problem but that post was 2 years ago and appears to have been corrected.
Any ideas what I set up incorrectly?
Note: Some registrations go through cleanly but most are coming through with these types of errors.
Hi,
I have a fresh install of WP 3.8 + BP 1.9 and have issue with “adminsonly” visibility.
A previous post says that it was an issue for BP 1.8 too. In the documentation is said that display of hidden xprofile fields has been worked out.
In the profile field editor “default visibility”, there is no option for “admin only”. I checked “Only me” and the result in bp_xprofile_meta table is “adminsonly”.
BUT a member (user_role = subscriber) can view and even edit the field ! This is not what I expect … but is consistent with “only me”.
What did I do wrong ? Or is it a bug ?
Thanks for help!
And merry Christmas too!How can I set some of the extended profile fields to show up in the admin section under the user list screen?
Or if that can’t be done – can I set a link to the user profiles fields from that screen?
I am currently setup to manually approve new registrations before they can access buddypress, but from the user page in admin I have no way of knowing anything about the subscriber other than their email address.
Thanks!Hi,
I’m using WordPress v3.8 and BuddyPress v1.9. I’ve also disabled all not core Plugins (i.e. only leaving the core BuddyPress plugin and switched to the Twenty13 theme for testing.
When I select Profile > View; all I see under the ‘Base’ heading is the user name.
But when I select the Profile > Edit tab, I then see all the additional fields.Is there a way to expose all the profile fields in the View section?
Many thanks, Andre
I am trying to create a Jobs website that reflects both sides – the job seeker and the employer. I am using extended profiles for the Job Seeker to create a resume/profile. I have added Resume type fields and it works as expected. The problem is when an Employer registers to post jobs they need a basic registration process – they do not need to fill out the long Resume type profile. Is there a way to have 2 different types of profiles on the site?
Dotty
