Forum Replies Created
-
In reply to: Preview New Forum Post
@lesd1315 it’s more specific customization related to bbPress, you can override the form-topic.php template and add some additional custom codes.
@agajania The User Groups accordion panel will only be accessible once you have disabled BP Classic. With BP Classic, you will have access to page options, which is the older approach. If your theme and other plugins are compatible with BP v12, then you can safely deactivate BP Classic.
In reply to: Redirect after login@adjunkten might be some typo error in copy-paste, but the code is fine
You can use the Code Snippet plugin to use custom snippets.In reply to: Help with labelsCode Snippet is for labels, not for main components; you can change component names from BuddyPress URL options
@thinlizzieIn reply to: Redirect after loginuse the following code snippet
function redirect_to_activity_page_after_login($user_login, $user) { // Redirect to the activity page after login wp_redirect( home_url( '/activity' ) ); exit; } add_action('wp_login', 'redirect_to_activity_page_after_login', 10, 2);@locker17 yes, you can create registration pages like that after disabling BuddyPress Registration
Please check following thread of disable BP registration https://buddypress.org/support/topic/how-to-edit-register-page-for-buddypress/#post-332492In reply to: BP Extended – Post format falls apart@kmp2 It’s a theme-specific sidebar setting single blog; Customizer has the option to tune up the single post layout. https://youtu.be/htQG6xfTFzE?feature=shared
@agajania, Please ensure you have enabled the group component from the component tab.
In reply to: Member pages are empty after upgrading to version 12@jgflores check once with your hosting; they can tell you more about possible 403 errors
regarding which theme you are using; try to test once with default https://wordpress.org/themes/twentytwentyone/@locker17, there is no option to edit BuddyPress Directory pages with Elementor like members Groups, Activity, or Registration.
For the login & 404 page, you can create a template for it, as it can be a regular page with an Elementor widget on it.For registration pages, that’s template driven, and you need to override the template to make those changes, or you can also use some 3rd party plugins like Gravity Forms and WP Forms with their user registration addon to create custom registration forms.
In reply to: New Link-System on BP@werny seems to be working fine https://www.loom.com/share/8a63c19245f949859dcfac1d0ac80598
In reply to: Display output Xprofile checkbox@agorafolk You can achieve this by customizing your theme or creating a custom plugin to manipulate the output of the xprofile field data.
// Assume $user_id is the ID of the user and $field_id is the ID of your checkbox field $selected_options = bp_get_profile_field_data( array( 'field' => $field_id, 'user_id' => $user_id ) ); // Split the selected options into an array $options_array = explode(', ', $selected_options); foreach ( $options_array as $option ) { // Sanitize the option to create a valid CSS class $class_name = sanitize_title( $option ); echo '<li class="option-' . esc_attr( $class_name ) . '">' . esc_html( $option ) . '</li>'; }In reply to: xprofile date output@agorafolk you can use the date_i18n() function provided by WordPress, which formats the date according to your WordPress installation’s language setting.
// Assume $member_birthday contains the birthday date from the member's profile in the format '1984-06-27 00:00:00' $member_birthday = '1984-06-27 00:00:00'; // Replace this with the actual code to get the member's birthday // Convert the birthday string into a Unix timestamp $timestamp = strtotime($member_birthday); // Format the date in French (e.g., "27 juin 1984") $formatted_birthday = date_i18n('j F Y', $timestamp); echo $formatted_birthday;One approach is to use the pre_get_posts action hook to check if the current page is a BuddyPress page using BuddyPress conditional tags like bp_is_directory() or bp_is_user(). If the page is not BuddyPress, you can remove or modify the rewrite rules.
In reply to: Member pages are empty after upgrading to version 12To resolve a Server Error 403 Forbidden, consider these steps: First, refresh your permalinks in the server settings. Then, activate the debug log feature to identify specific error logs for deeper insight into potential issues. This could be due to incompatible custom code or plugins.
In reply to: Help with labelsYou can use the WordPress gettext filter.
This filter allows you to intercept and modify text before it’s displayed on the page. Here’s an example of how you can use it to change a specific string in BuddyPress:
/** * Translates specific strings in BuddyPress to new values. * This function hooks into the 'gettext' filter provided by WordPress, allowing for the modification * of text before it is displayed or used on the site. It specifically targets text within the 'buddypress' domain, * making it suitable for customizing or translating BuddyPress strings without altering language files. * * @param string $translated_text The text after being translated. * @param string $text The text before being translated. * @param string $domain The domain of the text being translated. This function specifically targets 'buddypress'. * @return string The modified or translated text. */ add_filter( 'gettext', 'wbcom_translate_buddypress_strings', 20, 3 ); function wbcom_translate_buddypress_strings( $translated_text, $text, $domain ) { // Target only BuddyPress strings to avoid affecting other texts. if ( 'buddypress' === $domain ) { switch ( $translated_text ) { // Example: Translate "Friends" to "Connections". case 'Friends': $translated_text = 'Connections'; break; // Add more strings to translate as needed, following the pattern above. } } return $translated_text; }Inside the switch statement, you can add cases for each specific string you wish to translate or modify. Replace ‘Friends’ with the BuddyPress string you want to change, and ‘Connections’ with the desired new text.
In reply to: Buddypress don’t genere member pageBuddypress: v2.6.9 ?
the current version is 12.2.0
@rodrigolzd, try this: https://wordpress.org/plugins/bp-activity-filter. You can disable a certain type of activity posting. This feature will only be effective on new activities, and will not remove existing ones. For example, when someone adds you as a friend or registers on the community.
@yatesa01 If this is a fresh installation, you can choose to keep the BuddyPress Classic plugin deactivated. This plugin is designed to provide support for legacy versions of the BP plugin that have not been updated or if you have custom development that uses deprecated codes.
In reply to: Is BuddyPress compatible with Ultimate Member?@jerrythemouse https://wordpress.org/plugins/mailpoet-paid-memberships-pro-add-on works fine with Mailpoet 3.
There is no specific limitation from Paid Membership Pro I have seen upto so far where it limits you to fetch registered user email and sync it to any 3rd party integration.
In reply to: How do you edit buddypress form?@erisf it’s more like template driven; you can add additional fields to the registration field
You can find the ref for template override here https://codex.buddypress.org/themes/theme-compatibility-1-7/template-hierarchy/Will suggest checking for BuddyPress themes to avoid excessive work for template override and custom CSS
In reply to: BP-12. – BP Classic@giszech, you can protect them using a custom post-type approach instead of pages.
inside the restriction section, you will find a new option inside the dropdown
like Post, Pages, BuddyPress DirectoriesIn reply to: How up to date is the Codex Documentation?New document preparation is in progress: https://github.com/buddypress/buddypress/tree/master/docs/developer.
In reply to: New post not visible until refreshed from browser.Please make sure you have enabled the following option for BuddyPress Settings >> Options.
Activity auto-refresh >> Automatically check for new items while viewing the activity streamIn reply to: Is BuddyPress compatible with Ultimate Member?@jerrythemouse To add a membership layer, you can use Paid Membership Pro, which also comes with a BuddyPress addon.
Paid Memberships Pro – Content Restriction, User Registration, & Paid Subscriptions