Forum Replies Created
-
In reply to: Group header file problems
Hi @jaumearagay & @JeffWillia.ms-
Thanks for posting the results of your testing. @jaumearagay, your results match what I expected. Can you try another test for me that checks the value after the foreach?
http://pastie.org/10964506Thanks for your patience as we figure this one out.
-David
In reply to: Group header file problemsHI @JeffWillia.ms-
Can you do the troubleshooting step requested above?
Thanks,
-David
In reply to: Group header file problemsHi @jaumearagay-
Unhappily, I’m not able to reproduce your problem on my servers. Can you test something for me in your environment where we know the problem exists? I’d like to know what the value of
$group_modsis before it’s passed to theforeachinget_group_moderator_ids().I’ve added a
var_dump()in this snippet: http://pastie.org/10962912Please let me know what you find.
Thanks!
-David
In reply to: Registration and activate pageHi, you have to enable WP registration at Settings > General > Anyone Can Register:
http://www.wpbeginner.com/beginners-guide/how-to-allow-user-registration-on-your-wordpress-site/
Hi r083r7-
Within the same site, you could write a short code that would render the profile. Outputting profile data is pretty straightforward: https://codex.buddypress.org/themes/guides/displaying-extended-profile-fields-on-member-profiles/
One another site, I’m less sure. You’d need BP API or similar, which we’re just now writing.
Check our Bowe Codes for some other useful short codes and examples for your own: https://wordpress.org/plugins/bowe-codes/screenshots/
In reply to: These field options are invalid errorI really have no idea, but checking the code base, that error is thrown when a field type supports options (like a dropdown or checkbox set) and the data posted at save is unpopulated or is not an array. If you’re familiar with the developer tools in Firefox or Chrome, visit that page and submit the form, then see what the
$_POSTpayload looks like.Code reference: https://buddypress.trac.wordpress.org/browser/trunk/src/bp-xprofile/classes/class-bp-xprofile-field.php#L1074
I can’t see what moving hosts would change here, but the internet is a fragile thing. 🙂
In reply to: Registration and activate pageHi isavarg-
You’ll have to be logged out to see the registration or activation page, otherwise they redirect to the home page. Have you tried it while logged out?
In reply to: Remove header imagesSince it’s theme specific, your best choice is to create a child theme and override that template part when you don’t want to see the image. (There are lots of conditional you can use, like
is_buddypress()which returns true on a BP page.)It’s extremely unlikely that there will be a plugin that changes one aspect of a specific theme.
Child themes: https://codex.wordpress.org/Child_Themes
In reply to: BuddyPress 2.6.2 is now availableHi Kineta-
Your best bet is to start a new topic for support with your issue. In that topic, it would be helpful to know which version of bbPress you’re using, what version of BuddyPress you upgraded from (to 2.6.2) as well as the usual stuff.
Thanks!
-David
In reply to: BuddyPress 2.6.2 is now availableVisit a forum, like https://buddypress.org/support/forum/how-to/ and scroll to the bottom of the topic list. The new topic form should be down there.
In reply to: BuddyPress 2.6.2 is now availablewadece1979- You should start a new topic for your support request. In that topic, describe your WP setup (single site, multisite) and whether the problem persists if you use a different theme. Thanks!
In reply to: Autocomplete usernames when cosing private messageThat’s the default behavior. If you’re not getting a list of matches, open your browser console to see what’s going wrong with the AJAX request that fetches the list of matches.
Note that if you type the @ symbol, you won’t find matches, so just start typing the username or display name.
Hi there-
Yes, 2.6.1 (and 2.6.1.1) have a conflict with BP Group Hierarchy. The problem is caused by the addition of the autoloader check in
bp-loader.phpbecause BPGH instantiates its class before BP knows if the groups component is active or not. The short term fix is, unhappily, to changebp-loader.php. Comment out the line that readsreturn(add a//beforereturn) here:
https://github.com/buddypress/BuddyPress/blob/master/src/bp-loader.php#L621In reply to: Help me sort out my BuddyPress installTo add your own create group button output function, unhook the current ones:
remove_action( 'bp_groups_directory_group_filter', 'bp_legacy_theme_group_create_nav', 999 ); remove_action( 'bp_groups_directory_group_filter', 'bp_group_backcompat_create_nav_item', 1000 );and add your own to
bp-custom.php:add_action( 'bp_groups_directory_group_filter', 'my_dolla_bill_group_create_button', 82 ); function my_dolla_bill_group_create_button() { if ( dolla_bill_has_dollas ) { bp_group_create_nav_item(); } }Your other issues can probably be solved in the similar way. Read up on hooks and actions in WP: http://blog.teamtreehouse.com/hooks-wordpress-actions-filters-examples
In reply to: Link to User’s Group’s ForumsMenus aren’t very php-friendly, usually, but you could do something like this:
<?php if ( groups_is_user_member( bp_loggedin_user_id(), $group_id_of_group_A ) ) { $group = groups_get_group( array( 'group_id' => $group_id_of_group_A ) ); ?> <li><a href="<?php echo bp_get_group_permalink( $group ) . 'forum/'; ?>"><?php bp_group_name( $group ) ?> Forum</a></li> <?php }You may have to hook onto
wp_nav_menu_itemsor similar to inject the link. It depends on your theme. That would look like:add_filter( 'wp_nav_menu_items', 'my_inject_group_forum_link_into_menu' ); my_inject_group_forum_link_into_menu( $items ) { if ( groups_is_user_member( bp_loggedin_user_id(), $group_id_of_group_A ) ) { $group = groups_get_group( array( 'group_id' => $group_id_of_group_A ) ); $items .= '<li><a href="' . bp_get_group_permalink( $group ) . 'forum/">' . bp_get_group_name( $group ) . 'Forum</a></li>'; <?php } return $items; }In reply to: Confirmation EmailI’m not sure what behavior you’re aiming for, but this snippet will disable the confirmation email and log the user in automatically upon successful registration.
<?php add_action( 'bp_core_signup_user', array( $this, 'disable_validation_of_new_users' ) ); add_filter( 'bp_registration_needs_activation', '__return_false' ); add_filter( 'bp_core_signup_send_activation_key', '__return_false' ); function disable_validation_of_new_users( $user_id ) { // Get the user's activation key for BP. This is the activation_key in user_meta, not the key in the user table. $user_key = get_user_meta( $user_id, 'activation_key', TRUE ); // Activate the signup $awuser = apply_filters( 'bp_core_activate_account', bp_core_activate_signup( $user_key ) ); // Automatically log the user in. // Thanks to Justin Klein's wp-fb-autoconnect plugin for the basic code to login automatically $user_info = get_userdata($user_id); wp_set_auth_cookie($user_id); do_action( 'wp_signon', $user_info->user_login ); bp_core_add_message( __( 'Your account is now active!', 'my-plugin-slug' ) ); buddypress()->activation_complete = true; }In reply to: restrict messages to user-admin-user@Earl_D: No. The above snippets are added to a custom version of the
buddypress/members/single/messages/compose.phpfile. Basically, if you add this file to your theme (following the structurebuddypress/members/single/messages/), it will be used in preference to the one BuddyPress ships with. Read more about adding custom template parts: https://codex.buddypress.org/themes/theme-compatibility-1-7/a-quick-look-at-1-7-theme-compatibility/Hi Ben,
You are correct that it’s best to leave the bp stylesheet in place so that you get updates to that file. You can add a custom stylesheet, though, and increase the selector power of the rule, so that it overrides the bp.css rule, like
.site #buddypress #item-body { border-left: none; }Here’s the basic concept.
https://developer.mozilla.org/en-US/docs/Web/CSS/SpecificityAdding a stylesheet:
In reply to: Group Email Subscription: Editing the templateHi pckelly123: WP Better Emails works well for applying a template to all mail sent via the function
wp_mail(), which is what the group email subscription plugin uses.
https://wordpress.org/plugins/wp-better-emails/In reply to: How To Get Plaintext Multiline Field?Correct. My answer only disables rich text for specific fields; the other answer disables rich text for all fields. Pick your poison. 🙂
I suspect that BP is trying to use the new cover-header-specific member and group header template files. You can disable them until you have a chance to retheme for cover headers by visiting wp-admin > Settings > BuddyPress > Settings and unchecking the check boxes for group and user cover images:
Allow registered members to upload cover images
Allow customizable cover images for groupsIn reply to: How To Get Plaintext Multiline Field?Hi Johnywhy-
You can disable the rich text editor on a per-field basis using the filter
bp_xprofile_is_richtext_enabled_for_fieldwhich was added when the wp_editor was added.You might do
add_filter( 'bp_xprofile_is_richtext_enabled_for_field', 'my_disable_rt_function', 10, 2 ); function my_disable_rt_function( $enabled, $field_id ) { // 14 is the id of the field I want to be plain text. if ( 14 == $field_id ) { $enabled = false; } return $enabled; }This plugin automatically activates new user accounts: https://wordpress.org/plugins/bp-disable-activation-reloaded/
I sure hope that you’re weeding out spammers on the way in, or this site isn’t open to the world.
In reply to: Few IssuesThat’s quite a laundry list.
1) https://premium.wpmudev.org/blog/limit-access-to-your-wordpress-dashboard/
2) http://wptavern.com/wordpress-tip-disable-the-toolbar-on-a-per-user-role-basis
3) Can’t help there.
4) Check out “Edit activity” plugin here: http://www.buddyboss.com/free-buddypress-plugins/In reply to: Registration Site is blank and link problemsIt sounds like you need to update your permalink structure: https://codex.wordpress.org/Using_Permalinks#Choosing_your_permalink_structure