Search Results for 'wordpress'
-
AuthorSearch Results
-
January 27, 2024 at 10:53 am #332972
In reply to: Buddypress and Restrict Content Pro Membership
Varun Dubey
ParticipantYou can use the following code snippet to create a new tab to display at BuddyPress Profile.
// Function to add a custom tab for Membership Details in the BuddyPress profile function wbcom_rcp_buddypress_add_membership_tab() { global $bp; // Define a new navigation item for the BuddyPress profile menu bp_core_new_nav_item(array( 'name' => __('Membership', 'textdomain'), // The name of the tab 'slug' => 'membership', // The slug for the tab, used in the URL 'screen_function' => 'wbcom_rcp_buddypress_membership_screen', // The function that will load when the tab is clicked 'position' => 50, // Position of the tab in the profile navigation 'parent_url' => bp_loggedin_user_domain() . '/membership/', // The parent URL for this sub-navigation 'parent_slug' => $bp->profile->slug, // The slug of the parent navigation item 'default_subnav_slug' => 'membership' // Default sub-navigation slug )); } // Function to handle the display of the Membership Details tab content function wbcom_rcp_buddypress_membership_screen() { // Add the title and content to the Membership tab using actions add_action('bp_template_title', 'wbcom_rcp_buddypress_membership_screen_title'); add_action('bp_template_content', 'wbcom_rcp_buddypress_membership_screen_content'); // Load the BuddyPress plugin template for displaying the tab content bp_core_load_template(apply_filters('bp_core_template_plugin', 'members/single/plugins')); } // Function to set the title of the Membership Details tab function wbcom_rcp_buddypress_membership_screen_title() { echo 'Membership Details'; // Title displayed on the Membership tab } // Function to display the content of the Membership Details tab function wbcom_rcp_buddypress_membership_screen_content() { // Use the shortcode [subscription_details] to display membership information echo do_shortcode('[subscription_details]'); } // Hook the function to add the Membership tab into the BuddyPress setup navigation action add_action('bp_setup_nav', 'wbcom_rcp_buddypress_add_membership_tab');You can use a plugin to add code snippets to your WordPress website using a plugin like “Code Snippets.” This plugin allows you to add custom PHP code snippets to your site without editing your theme’s functions.php file.
January 27, 2024 at 10:46 am #332971In reply to: Profile picture issue
Varun Dubey
Participant@fourbfb you can try to debug with the following steps.
1- Temporarily deactivate other plugins to rule out conflicts, as another plugin might interfere with BuddyPress’s upload functionality.
2- Switch to a default WordPress theme like Twenty Twenty to check if the issue is theme-related.
3- Verify PHP settings such as upload_max_filesize and post_max_size are adequate in your php.ini file.
4- Use the browser’s developer console (F12) to check for JavaScript errors that might block the upload process.
5- Ensure that the profile photo and group icon uploads are enabled in BuddyPress settings.January 26, 2024 at 11:15 am #332955Topic: BuddyPress Profile Edit
in forum How-to & Troubleshootingeluyawi
ParticipantHi there,
I have installed BuddyPress and have been testing it, and I have an error.When I edit my Name and save the changes. At the moment the changes do not appear, but I have checked in the Users section of WordPress that they have been saved.
How can I make the changes appear once you hit the save button? can you help me?
Thans
January 25, 2024 at 1:08 pm #332948In reply to: BuddyPress 12.2.0 Maintenance Release
martenw
ParticipantWarning in BP 12.2.0
[25-Jan-2024 02:32:13 UTC] PHP Warning: Attempt to read property “activity” on null in /var/www/eufort-sokolniki/wordpress/current/wp-content/plugins/buddypress/bp-activity/bp-activity-template.php on line 643
[25-Jan-2024 02:32:13 UTC] PHP Warning: Attempt to read property “id” on null in /var/www/eufort-sokolniki/wordpress/current/wp-content/plugins/buddypress/bp-activity/bp-activity-template.php on line 643January 23, 2024 at 4:29 pm #332919In reply to: Activity ‘Load More’ strange behaviour
John Simpson
ParticipantWordpress v6.4.2
Buddypress v12.1.1
BP Classic v1.2.0Page Builder by SiteOrigin
Theme SiteOrigin CorpJanuary 23, 2024 at 4:11 pm #332917teslavolt
ParticipantHi @imath,
I have a similar / related issue. I’m using Restrict Content Pro’s registration page with the latest Buddypress version (12.1.1) on a staging site and my registration page broke. It told me “Member registration is currently not allowed”, even if I disable the buddypress plugin.
I tried the gist you posted https://gist.github.com/imath/c5c34feb5d3c9b3070f7a11bc339f103 in my child theme’s functions.php but the registration page still does not work. Any ideas?
*Update* – I read through the earlier post and found the first workaround – going to Buddypress Settings -> URLs, but did not see any option to change the register slug. I had to briefly turn on wordpress general settings “Anyone can register” so that more options would appear in “URLs”. I was able to set the slug to something else like ‘sign-in’ and that seemed to allow my RCP registration to function again.
Just to check, I disabled “Anyone can register”. Seems like the BP slug change stuck and my RCP registration is operational.
January 22, 2024 at 7:07 pm #332904In reply to: What do you expect from 14.0.0?
hossin0241
Participant@imath
Thanks for your help
That note was very helpful.According to the image below, the Date Selector field is related to choosing the date of birth and…

This is the part I was looking for, which is apparently not compatible with WordPress’ core historiography system and cannot be used with Shamsi date in Persian language (after using the Shamsi-Jalali plugin).
January 22, 2024 at 4:28 pm #332900In reply to: Notify all group members
Varun Dubey
Participant@puresaian To mention all group members simultaneously, you must implement a custom solution. This could be a special shortcode or command that automatically translates into individual mentions for all group members when used by the admin.
/** * Handles the custom mention "@everyone" within BuddyPress groups. * When @everyone is used in a group's post or comment, it replaces it with mentions of all group members. */ function wbcom_custom_everyone_mention_handler( $content ) { // Check if BuddyPress is loaded and @everyone is used in the content if ( function_exists( 'groups_get_current_group' ) && strpos( $content, '@everyone' ) !== false ) { // Get the current group details $group = groups_get_current_group(); // Proceed only if we are in a group context if ( $group ) { // Fetch all members of the group $group_members = groups_get_group_members( array( 'group_id' => $group->id ) ); $mentions = array(); // Loop through each member to build the mentions array foreach ( $group_members['members'] as $member ) { $mentions[] = '@' . $member->user_nicename; // Prepares the mention syntax for each member } // Replace @everyone in the content with the individual member mentions $content = str_replace('@everyone', implode(' ', $mentions), $content); } } // Return the modified (or unmodified, if no changes were made) content return $content; } // Add filters to apply the custom mention handler in different BuddyPress content types add_filter( 'the_content', 'wbcom_custom_everyone_mention_handler' ); // For regular WordPress content add_filter( 'bp_activity_new_update_content', 'wbcom_custom_everyone_mention_handler' ); // For new BuddyPress activity updates add_filter( 'bp_activity_comment_content', 'wbcom_custom_everyone_mention_handler' ); // For comments on BuddyPress activitiesIt’s not a tested code; it’s just giving implementation directions.
January 22, 2024 at 4:16 pm #332899In reply to: Error with latest update (BP and Youzify)
Varun Dubey
Participant@investbuddy123 Based on your description of issues with BuddyPress on your WordPress site, you’re encountering problems with group updates and public messaging functionalities.
Here is a step-by-step guide to debug the issue:
Check for Plugin Conflicts: Deactivate all plugins except BuddyPress and BP Classic. If the issue is resolved, reactivate each plugin individually to identify the conflicting plugin.
Theme Compatibility: You’ve tried switching to the Twenty-Three theme with no success, which is good. It rules out theme-specific issues.
Inspect JavaScript Errors: Use the browser’s Developer Tools (usually accessible by pressing F12) to check for JavaScript errors in the Console tab. JavaScript issues often cause features like loading updates or activating functions to fail.
Server and PHP Error Logs: Check your server and PHP error logs for any relevant errors. Your hosting provider can assist you in accessing these if you’re unsure how.
Test on a Staging Site: If possible, clone your site to a staging environment. This allows you to test without affecting your live site.
Cache and Optimization Plugins: If you use caching or optimization plugins, clear the cache and temporarily disable them to see if they are causing the issue.
Check for Custom Code: If you have any custom code (like snippets in your theme’s functions.php file or a custom plugin), comment to see if it is causing the issue.
January 22, 2024 at 1:03 pm #332896In reply to: What do you expect from 14.0.0?
Mathieu Viet
ModeratorHi @hossin0241
Thanks a lot for sharing your expectations. We actually built a bridge between our xProfile component and regular WP user fields in version 8.0. Hereâs a developer note we wrote about it, I believe it can help you reach your need.
January 21, 2024 at 7:02 am #332884In reply to: What do you expect from 14.0.0?
hossin0241
ParticipantThank you for creating this topic
I think, if possible, that the system of historiography
Change BuddyPress to the default WordPress system, it’s better
(Things like choosing the date of birth and…)So that users who use other history systems can also benefit from it
January 18, 2024 at 11:52 pm #332864In reply to: error with latest update
Mathieu Viet
ModeratorSome plugins might not be ready with BuddyPress 12.0 or up. For this case we’ve built a Backwards compatibility Add-on. You can try to download and activate it to see it it’s fixing your issue:
January 18, 2024 at 11:29 pm #332862In reply to: BuddyPress 12.1.1 Maintenance & Security Release
Mathieu Viet
ModeratorHi @priyam1234
Thanks for your feedback đ. My company has nothing to do with WordPress actually, I don’t make a living with code. I’m a hobbyist and contribute freely to BuddyPress, just like the other members of the team.
For everyone reading this topic:
Quick update about the 12.1.1 issue reported by @manni65929 when first installing BuddyPress with this version:
We’re actively working on it, I’ve tested the fix we built with various scenarios to make sure we don’t generate side effects. The ticket we use to track this issue contains a 12.2.0-beta version with this fix, we still need to run some tests but I’m confident we’ll be able to package the next 12.2.0 minor release very soon (I believe early next week).January 18, 2024 at 11:44 am #332859In reply to: BuddyPress 12.0.0
Mathieu Viet
ModeratorHi @priyam1234
I’m aware of the issue, see: https://buddypress.org/support/topic/buddypress-12-1-1-maintenance-security-release/
I’m currently working on it from https://buddypress.trac.wordpress.org/ticket/9075. I need to make sure the fix is taking care of all possible cases, which means a lot of tests.
As soon as I have something solid I’ll package a new minor release. It will happen faster than 12.1.1 (which took a month). I hope I’ll make it happen early next week.
@ayayron sorry to read about it: please do participate to our beta testing period. We extended 12.0.0 to 5 months without receiving any issues from you or other Themeforest developers. It’s better to anticipate imho.
@roberthemsing I’m not sure, my guess is we’re not strict enough about the rewrite rule so I’ll need to review this asap.I’m going to close this topic, please carry on giving us your feedbacks and issues from this topic:
January 18, 2024 at 9:30 am #332855In reply to: BuddyPress profile page
Varun Dubey
ParticipantYou can add new profile fields from the backend settings for user profiles like age, location, and bio https://codex.buddypress.org/administrator-guide/extended-profiles/
For media support, you can use https://wordpress.org/plugins/bp-attachments/ plugin.
January 18, 2024 at 9:13 am #332852In reply to: Strange issue with bp_core_get_user_domain
Varun Dubey
ParticipantThe user Switching plugin needs an update to be compatible with the latest BP v12+. You can install the BP Classic plugin for now to add support for that plugin that is still using old codes. https://wordpress.org/plugins/bp-classic/
January 17, 2024 at 6:14 pm #332832In reply to: BuddyPress 12.1.1 Maintenance & Security Release
Mathieu Viet
ModeratorNB: if this is your first BP install,
could you check what happens when youplease define theBP_LOAD_DEPRECATEDconstant totrueto load 12.0.0 deprecated functions. We missed this case and will fix this issue asap.January 17, 2024 at 6:03 pm #332831In reply to: BuddyPress 12.1.1 Maintenance & Security Release
Mathieu Viet
ModeratorHi,
1) bbPress is not ready for BuddyPress 12 or up, you need to install and activate BP Classic backwards compatibility add-on
2) it looks like youâre skipping deprecated code from being loaded, please make sure you donât have the BP_IGNORE_DEPRECATED constant set to true.
If 1 & 2 doesnât change anything, please describe your configuration in details :
Multisite ? How BP is activated (network or a specific site).January 17, 2024 at 12:32 pm #332826In reply to: Divi dynamic styles missing on BuddyPress pages
Raja G
ParticipantWordpress version : 6.4.2
BuddyPress : 12.0.0
Site url : https://cityscoop.us/sanleandroca/
Buddypress page url : https://cityscoop.us/sanleandroca/members/January 14, 2024 at 1:43 pm #332758In reply to: Jalali date selector
hossin0241
Participanthello @imath
I had a suggestionIf possible, make the buddypress date section like the core of WordPress so that Persian speaking people can easily change the date to JAJALI with common plugins.
Thank
January 13, 2024 at 10:13 am #332747In reply to: BuddyDrive Files Aren’t Showing
Mathieu Viet
ModeratorHi @dreamscape2
If you recently updated BuddyPress to 12.0, as this plugin hasn’t been updated for years, I’d advise you to install and activate the BP Classic backwards compatibility Add-on we specifically built for these situations.
January 12, 2024 at 10:57 am #332734In reply to: BuddyPress 12.0.0
Mathieu Viet
ModeratorThere was a ticket where I did some tests, imaged were showing when not logged in for me:
https://buddypress.trac.wordpress.org/ticket/9066if itâs lazy loading I believe itâs mainly a WordPress thing as we do it in activity and for avatars only if I remember well.
January 10, 2024 at 10:18 am #332724Mathieu Viet
ModeratorHello @ceraus
BuddyPress is overriding WordPress registration URL by default so that it is displayed into your theme instead of the
wp-login.phpfile. From previous support topics on the same subject I’ve read some users were deleting the registration page BuddyPress was created to force the use of the WordPress registration page. This was a workaround that is not doing the trick anymore in BuddyPress 12.0.0.Please see: https://buddypress.org/support/topic/buddypress-12-0-0/page/8/#post-332709 for a way to disable the BP Registration flow.
January 10, 2024 at 10:12 am #332723In reply to: BuddyPress Blocking image to show
Mathieu Viet
ModeratorFor readers information: a ticket to track the above was opened here https://buddypress.trac.wordpress.org/ticket/9066
Using BuddyPress 12.0 on a regular config of WordPress is not blocking images, there’s probably a plugin/theme/custom code conflicting with BuddyPress on your specific config.
January 9, 2024 at 1:30 pm #332710Ceraus
ParticipantHello,
Hmm, unsure how to diagnose this; but have an issue w/ buddypress not displaying the correct registration page. When disabled, it works (the default wordpress registration form), so it is either a plugin dependent on buddypress or buddypress itself. I tried setting the register page to none, and to the register page with a “Page to Link” plugin that sets it to the correct url ending in /wp-login.php?action=register but it still will not, any idea how I can fix this? It was fine before but not sure why it just stopped, I did migrate it from a local install and deployed it online
Any help would be very much appreciated
-
AuthorSearch Results