Search Results for 'profile fields'
-
AuthorSearch Results
-
June 27, 2012 at 6:36 pm #136491
Roger Coathup
ParticipantHave a look at the member-header.php file in bp-default theme. It documents how to add fields.
Follow those instructions to add them in the member-header equivalent in your child or standalone theme… or add them in an action hooked on to bp_profile_header_meta
June 25, 2012 at 3:22 pm #136380In reply to: [Resolved] how can Modify Registration Form ?
Mathieu Viet
ModeratorOk, to set new fields for your members you should read the paragraph ‘Optional: Set Profile Fields’ of this tutorial
http://wpmu.org/the-illustrated-guide-to-installing-and-setting-up-buddypress-1-5/if you mean login in with email, then you can try this interesting plugin https://wordpress.org/extend/plugins/wp-email-login/
then you can add a function in the functions.php file of your active theme to change the label of the sidebar login form :
add_action('bp_after_sidebar_login_form', 'bp_login_by_email_adapt_login_form'); function bp_login_by_email_adapt_login_form() { ?> jQuery(document).ready(function($){ usernameoremail = $("#sidebar-user-login").parent().html().replace(/Username/ig, 'Username or email' ); $("#sidebar-user-login").parent().html(usernameoremail); }); <?php }or if you’re using a child theme of BP-default theme, you can add/edit the template sidebar.php and replace the label for=sidebar-user-login by Username or email.
June 25, 2012 at 2:01 pm #136378In reply to: Multiple Profiles on BuddyPress
Roger Coathup
ParticipantTo build this kind of feature, you need to be a PHP developer:
- You’d add new profile field groups for each type of stat (or if the stats are too complex for profile fields – a custom component to handle them).
- You’d then assign a role to each member based on whether they are a batter, pitcher or fielder – ideally implemented using the underlying WordPress user roles.
- Finally, you’d implement conditional logic in your templates to display appropriate profile field groups based on the member’s role.
June 25, 2012 at 1:10 pm #136376In reply to: [Resolved] how can Modify Registration Form ?
Mathieu Viet
ModeratorHi websitevala,
To add custom fields to your registration page, you’ll need to add xprofile fields. To do so in WP Backend, you should go / BuddyPress menu / Profile fields submenu
And for the other thing, as you noticed emails are hidden, there might be a spam risk reason to that. And as a user, i wouldn’t like to have my email shown on my profile.. So i dont think it’s a good idea.
June 22, 2012 at 1:23 pm #136238edinchez
ParticipantOh. That’s sad to hear. Nevermind then, it’s not a huge problem anyway.
June 22, 2012 at 10:59 am #136233Paul Wong-Gibbs
KeymasterFrom time to time, we hear reports of this. No-one has figured out if it’s a theme issue, or a plugin issue, or a BuddyPress issue, or some sort of WordPress config issue. I’ve never been able to recreate it, nor have the other core developers, which suggests it’s something outside of BuddyPress or the BP-Default theme.
June 22, 2012 at 8:57 am #136228edinchez
ParticipantI doubt it’s the second one because I just changed the theme, and that used to happen with the old theme as well. I recently changed the SEO plugin to the Yoast one, but I was using the All in one SEO plugin earlier, so I doubt it’s that one too. The only thing not changed is the captcha plugin, which I’m going to try disabling it now.
June 22, 2012 at 1:30 am #136209@mercime
ParticipantThis has been brought up in the forums before. I recall some causes to pre-filled profile fields in registration page:
– plugin conflict with an SEO plugin and a captcha plugin – can’t recall specifically which ones but deactivating all plugins except BuddyPress, then activating plugins by batches of three helped them identify the culprit/s.
– theme conflict where theme added options for SEO and the likeJune 22, 2012 at 12:11 am #136206Mathieu Viet
ModeratorHi @creaturis,
I think the best solution is to avoid recording an activity if the post has one of the category you want to exclude from activity stream, in the functions.php file of your active theme, you can try this code :
function do_not_record_this_category( $post_id, $post ){ /* this is the array that contains the category to exclude */ $ids_to_exclude = array( 4 ); if ( 'publish' != $post->post_status ) return false; $categories = get_the_category( $post_id ); $in = false; if( count($categories) > 0 ) { foreach ( $categories as $category ) { if( in_array( $category->cat_ID, $ids_to_exclude) ) $in = true; } /* if the post has at least one excluded category, then we remove the BuddyPress hook that records an activity */ if( $in ) remove_action( 'save_post', 'bp_blogs_record_post', 10, 2 ); } } add_action( 'save_post', 'do_not_record_this_category', 9, 2 );In 1.6 you can set the visibility of profile fields to logged in users, friends or anyone. I haven’t seen the behavior you’re describing.
June 19, 2012 at 3:52 pm #136060enderandrew
MemberI believe everything in the Base profile field group is on the registration form.
If you create a new group of profile fields, those won’t be on the registration form.
June 17, 2012 at 9:59 am #135953In reply to: Profile fields and Activity Stream not working.
ninjaface
ParticipantSwitching to the default buddypress theme does not correct this issue. Could this be some sort of issue when during an install maybe of buddypress? If so how would I do a clean reinstall and would this affect my existing content?
June 16, 2012 at 2:47 pm #135910In reply to: [Resolvd] SVN Version and profile fields
Sergio De Falco
ParticipantGuess that’s for the spam control. So that’s why the DB needed to upgrade, I see it already on the current SVN.
Thanks Paul
June 16, 2012 at 1:32 pm #135904In reply to: [Resolvd] SVN Version and profile fields
Paul Wong-Gibbs
KeymasterThe only change to the database structure for BP 1.6 is to the bp_activty table. We’re adding the following column, and index:
is_spam tinyint(1) NOT NULL DEFAULT 0,
KEY is_spam (is_spam)June 16, 2012 at 11:08 am #135899In reply to: [Resolvd] SVN Version and profile fields
Sergio De Falco
ParticipantHere they are

These improvements will affect the database structure?Thanks
June 16, 2012 at 6:04 am #135892In reply to: How Do I Join this Group?
@mercime
ParticipantYou’re welcome. testbp.org’s running BP 1.6 trunk and the registration page just has the profile fields you can add as site/super admin.
June 16, 2012 at 4:19 am #135887In reply to: [Resolvd] SVN Version and profile fields
@mercime
ParticipantYes, there are major changes in upcoming BP 1.6. You can add profile fields via dashboard menu Users > Profile Fields
June 15, 2012 at 5:40 pm #135856In reply to: Profile fields and Activity Stream not working.
@mercime
ParticipantUsually a custom theme issue. Change to bp-default theme and check if issue is corrected.
June 14, 2012 at 6:27 pm #135776perywinkle
ParticipantThis seems to happen in the regular profile loop output too.
I’m looking around for ways to have the profile fields
‘respect’ line breaks or carriage returns….June 14, 2012 at 6:57 am #135757In reply to: Different Profile for different user type
modemlooper
Moderatoryou could create custom profile php. save the user type to user meta. then do an if statment to populate page.
Id have one page that switches through user type and then calls a seperate page with profile code
you might have trouble with different fields
June 13, 2012 at 4:43 pm #135735Stanley Ojadovwa
MemberI working on getting a list of members based on the fields they selected on the extended profiles fields in buddypress. Here is my code
{
global $wpdb;
$membership_group = “Orange Membership (30,000 Naira/Year)”;
$db_query = “SELECT user_id FROM wp_bp_xprofile_data WHERE field_id = 33 AND value = “” .$membership_group .”””;
$match_ids = $wpdb->get_var($db_query);
$get_these_members = ‘include=’ .$match_ids;if (bp_has_members($get_these_members, ‘per_page optional=9’)) { ?> //Some Codes here
?>
}The result is returning just the first member it gets from the query instead of a list of members. Please what i’m i doing wrong.
Thanks
June 9, 2012 at 11:13 am #135611In reply to: Group Friend invite
wiesson
MemberThanks for reply. I’ve found my error! I habe made a big mistake. I deleted the wp_bp_xprofile_fields id=1 (name) …
i created a new tab for the profile, switched the name field to the new tab and then deleted the new tab (forget to pull the name-field out^^) …. no its working correctly. thanks for your help!
June 7, 2012 at 12:53 pm #135547In reply to: Private profile fields
differentflies
MemberJohn – have you resolved this question? I’m interested in doing the same thing… would be grateful for guidance if you’ve been able to achieve what you described.
June 6, 2012 at 1:59 pm #135519shanebp
ModeratorWhat does this mean “matches the page” ?
You need to know the field_id (numeric) of the profile field(s) you want to match.
Take a look at this:
https://buddypress.org/community/groups/creating-extending/forum/topic/search-member-profile-fields-by-url/June 4, 2012 at 4:34 pm #135465In reply to: check if field has new value in buddypress xprofile
shanebp
ModeratorUntested, but try this:
`
add_action (‘xprofile_updated_profile’, ‘profile_change_notify’);
function profile_change_notify ($id, $posted_field_ids, $errors) {
$global $wpdb;if( $errors )
return;$names = ”;
foreach( (array)$posted_field_ids as $field_id ) {
$sql = ” SELECT name FROM wp_bp_xprofile_fields WHERE id = ‘$field_id’ “;
$name = $wpdb->get_var( $sql );
if( $name == ‘Country’ || $name == ‘City’ )
$names .= ‘ ‘ . $name;}
if( $names != ” ) {
$user = new WP_User ($id);
wp_mail (‘myname@mydomain.com’, ‘Subject ( ‘ . $user->user_login . ‘ just updated the Profile )’, $names);
}
}
`June 2, 2012 at 2:22 pm #135399fmeroney
MemberThis Plugin may help, tested on a single site, hasn’t been tested on a multi-site install. I was having the same issue, so I had this developed. Let me know if it works for you.
FYI: I submitted it to WP for inclusion in their repository, should be there soon.
-
AuthorSearch Results