Search Results for 'profile fields'
-
Search Results
-
Topic: CORRECTED support query
WP 4.4.2
X Theme 4.3.2
BuddyPress 2.4.3Hi:
This is a corrected version of a support query I raised the other day. I realised I had two plugins in use which were not helping and which are now deleted. But no change.
However the issue described below persists.
Plugins deleted: bbPress Enable TinyMCE Visual Tab (out of date) and Buddypress xProfile Rich Text Field (deprecated because rich text functionality now built-in to multi line profile field).
Where necessary I have changed all my extended profile fields to multi-line.
BUT:
When I edit and add a URL on the profile front end the dialog box is displayed incorrectly. It appears below the page footer as a set of fields rather than a properly styled dialog box. Weird. (Link editign works fine on the back end).
This screenshot here shows the link edit fields appearing below the theme footer: https://dl.dropboxusercontent.com/u/6442136/Buddypress%20link%20edit.png
The theme developer (X Theme) say this is not a theme issue.
Can anyone help me please. This is very inconvenient problem which I cannot figure out. All clues, hints and suggestions are welcomed.
Hi:
I have various rich text fields in my buddypress profiles.
When I edit and add a URL the dialog box is displayed incorrectly. It appears below the page footer as a set of fields rather than a properly presented dialog box. Weird, messy confusing to users! (Issue drawn to my attention by a user.)
Is this a known issue? Does anyone have any advice?
Screenshot here shows link edit appaering below theme footer: https://dl.dropboxusercontent.com/u/6442136/Buddypress%20link%20edit.png
I tried downgrading Buddypress to 2.4 so match the theme requirements but this made no difference
Thanks for any guidance.
WP 4.4.2
X Theme 4.3.2
BuddyPress 2.4.3Hello,
i try to let users edit their profile fields in a thickbox “popup”.
Here’s the code which is working so far BUT it’s not showing empty fields and i don’t get the clue why because it’s the same code like in /single/profile/edit.php.
<!-- Begin display edit-profile button --> <?php if ( bp_is_my_profile() ) : ?> <?php add_thickbox(); ?> <div id="edit_background" style="display:none;"> <div>"here is the code of /single/profile/edit.php"</div> </div> <div class="background-edit" style="display: block;"> <a href="#TB_inline?width=600&height=550&inlineId=edit_background" class="overlay thickbox"><i class="icon-camera"></i> Hintergrund Bild ändern</a> </div> <?php endif; ?> <!-- End display edit-profile button -->I hope someone can help me.
I do have 1 or 2 other problems as well but maybe i should raise another topic for that?
Thanks in advance and best regards,
NixXxonp.S.: If needed i can provide an test-login and of course more infos.
BP-Version: 2.4.3
Wordpress: 4.4.2edit: removed the code of /single/profile/edit.php because it was confusing in the post … if needed i can put it back in the post.
Topic: phpMyAdmin
Hi folks,
So on my site about a year ago i had Buddypress and bbpress installed on my site but recently decided to remove buddypress and keep bbpress. The only issue is that i’m not sure which database tables to delete below! I know that bbpress and buddypress are kinda related so don;t want to mess up bbress.
wp_bp_follow
wp_bp_friends
wp_bp_groups
wp_bp_groups_groupmeta
wp_bp_groups_members
wp_bp_notifications
wp_bp_notifications_meta
wp_bp_xprofile_data
wp_bp_xprofile_fields
wp_bp_xprofile_groups
wp_bp_xprofile_metaTopic: Editing ‘Base’ Profile Group
Can anyone help me about Editing ‘Base’ Profile Group when i am going on the profile is just showing me the name but the other fields is not showing can anyone help me to show the other fields ?
Best Regards
Topic: member types :xprofilegroup
How can I enable or disable xprofile fields in a group. I can see that this is possible for an individual field but I was wondering if this was also possible for a group of xprofile fields as well.
Hello,
I am trying to get user_ids of users that have field a certain filed in their profiles to show only them in a custom members loop.
global $wpdb;
$db_query = "SELECT user_id FROM wp_bp_xprofile_fields WHERE field_id = 2 AND value !empty";
$match_ids = $wpdb->get_var($db_query);
$get_these_members = '&per_page=20&type=newest&include=' .$match_ids;
if ( bp_has_members($get_these_members) ) :
I think there’s a syntax error, and !empty is not the correct way for this, I tried a lot of options non of the works.
To test it, I tried this line:
$db_query = "SELECT user_id FROM wp_bp_xprofile_fields WHERE field_id = 2 AND value = 45";
where 45 is the value of the filed for one of the members, but it still doesn’t show any member.I found that I need to implode the user_ids list from the forum, but it doesn’t help neither.
It returns ‘Sorry, no members were found.’
when I enable wp_debug appears this error
‘WordPress database error: [Unknown column ‘user_id’ in ‘field list’]’Could you please help me?
Thanks,
LeoHi to everyone,
I’m new with buddypress, so i would show some columns in the admin user view (/wp-admin/users.php).
I’ve created 2 custom field in extended profiles (/wp-admin/users.php?page=bp-profile-setup) so i would insert this 2 custom field in the panel where the admin can edit/view all users (about 30 members).
The two custom fields are numerical, so the user can update manually this value.
Please could you tell me how i can make this?
Thanks a lot
Kind regardsNote: Sorry, my english is not so good
I have a custom registration form that tweaked the registration.php template to include a couple additional inputs. The form works as expected, being processed through the buddypress channels
bp_core_screen_signup()Then I hook into the bp_core_signup_user like so:
# Capture registration form's metadata fields add_action('bp_core_signup_user', array( $this, 'add_registration_metadata' ),10 ,1);Through my custom add_registration_metadata() method I store the $_POST meta to the user_id like so:
public function add_registration_metadata($user_id){ $type = isset($_POST['team_type']) ? $_POST['team_type'] : FALSE; if ($type){ # Make sure that the post value matches the available options if (($type == "type1") || ($type == "type2")) # Save the value as user meta add_user_meta( $user_id, 'team_type', $type); } /* Save username to metadata */ $username = isset($_POST['signup_username']) ? $_POST['signup_username'] : FALSE; /* Save first name to metadata */ $fname = isset($_POST['signup_fname']) ? $_POST['signup_fname'] : FALSE; /* Save last name to metadata */ $lname = isset($_POST['signup_lname']) ? $_POST['signup_lname'] : FALSE; /* Update WordPress Details */ $userdata = array ( 'ID' => $user_id, 'first_name' => $fname, 'last_name' => $lname, 'nickname' => $username, 'user_nicename' => DIV_Helper::slugify($username) ); wp_update_user( $userdata ); }As expected all the values are set in the usermeta table. I would think this is all that is left to do but its not and there is some confusion as to what is happening next.
So now the user attempts to activate their account through their email obviously passing the activation key. This works! BUT my metadata values are gone. For some reason BuddyPress wipes the values stored in the usermeta table. So then I try to hook into the bp_core_activate_signup like so:
add_action('bp_core_activated_user', array( $this, 'setup_registration_metadata') );This custom method attempts to re-update the user information but for some reason no combination seems to work, here’s what I have at the moment:
public function setup_registration_metadata($user){ if (! empty( $user ) ) { if ( is_array( $user ) ) { $user_id = $user['user_id']; } else { $user_id = $user; } if ( ! empty( $user_id ) ) { $usermeta = get_user_meta($user_id); // This doesn't seem to work as expected $type = $usermeta['team_type']; // But this does... $type = get_user_meta($user_id, 'team_type' TRUE); # Make sure the value matches the available options if (($type == "type1") || ($type == "type2")) # Set the member type bp_set_member_type($user_id, $type); # Setup username $username = $usermeta['username'][0]; # Setup first name $fname = $usermeta['first_name'][0]; # Setup last name $lname = $usermeta['last_name'][0]; /* Update WordPress Details */ $userdata = array ( 'ID' => $user_id, 'first_name' => $fname, 'last_name' => $lname, 'nickname' => $username, 'user_nicename' => DIV_Helper::slugify($username) ); wp_update_user( $userdata ); ... }Any clues as to how I can update the first & last names (not using some xprofile field that redundantly stores the same information), as well as any other custom fields I may add in the future. It’s seems I’m on the right track, this just is working right now.
Thank youl
How can I view all of the profile fields a user submitted on registration while their account is still pending? I need to see these profile fields before I decide to accept their pending registration.
Topic: Hide field on registration
Hello!
I want to hide some profile fields on registration, and I also want that the users can fill all fields after registration.
So on the registration the users fill some basic information, and after the activation they can complete their profile.
I hope it is understandable.
Regards.
Topic: Major changes to Edit.php
Hi
I’m changing the profile edit form on the front end. What I am trying to do is:
- List each field where I want rather than BP just looping through each profile field
- I want to be able to customise the classes for the fields as I am using Twitter Bootstrap
Currently I have to this to loop through the fields and only show the field I want where I want it:
<?php while ( bp_profile_fields() ) : bp_the_profile_field(); if ( bp_get_the_profile_field_id() == 3 ) : ?> <div<?php bp_field_css_class( 'editfield' ); ?>> <?php $field_type = bp_xprofile_create_field_type( bp_get_the_profile_field_type() ); $field_type->edit_field_html(); /** * Fires before the display of visibility options for the field. * * @since 1.7.0 */ do_action( 'bp_custom_profile_edit_fields_pre_visibility' ); ?> <?php /** * Fires after the visibility options for a field. * * @since 1.1.0 */ do_action( 'bp_custom_profile_edit_fields' ); ?> </div> <?php endif;endwhile; ?>Is there a better way to do this? It seems inefficient to loop through every profile field just to get one?
Also, how can I add classes to the HTML output and/or completely change that output if I want?