i Have this link now: https://domain.com/member/johndoe/activity/512/
but need this: https://domain.com/512/
how i can do that by some php snippet? pls help
Something like this? but its bad code i mean
function custom_activity_link($activity_id = false) {
global $bp;
if (!$activity_id) {
$activity_id = bp_get_activity_id();
}
return home_url('/' . $activity_id . '/');
}
function change_buddypress_activity_permalink() {
global $bp;
$bp->activity->root_slug = 'activity';
add_rewrite_rule('^([0-9]+)/?$', 'index.php?pagename=activity&p=$matches[1]', 'top');
}
add_action('bp_init', 'change_buddypress_activity_permalink', 2);
add_filter('bp_get_activity_thread_permalink', 'custom_activity_link', 10, 2);
I am somewhat at a loss with all the changes. I am using LiveCanvas for templating. There is a conflict with Buddypress when it comes to the Dynamic Templating aspect of Buddypress. For some reason, Buddypress pages are not being excluded. Not even when I put the Buddypress templating files in the Child Theme, making the use of Buddypress not an option. Any assistance is greatly appreciated.
Hey tuckeror,
Actually this should not be this complicated. In the buddypress options you can choose a page which represents the directory of your web project.
It is then only about the settings of the chosen page. Use the usual WordPress options to set the hierarchy, which parent sites the mentioned page should have.
I hope this helps.
Hi @pachat,
If one of your plugin or your theme is hooking to bp_uri then it means it’s not ready yet for BuddyPress 12.0 & up. For these situations we are making available a backwards compatibility add-on I advise you to install & activate:
BP Classic
Hi, v12.2.0 is breaking my site WPv6.4.3 + BuddyPressv12.2.0 + bbPressv2.6.9 + Theme Beehivev1.4.5
https://mysite.fr/members-2/0qchw/activity/
Deprecated: Le crochet bp_uri est obsolète depuis la version 12.0.0, sans aucune alternative disponible. in /home/mysite/wp-includes/functions.php on line 6031
Warning: Cannot modify header information – headers already sent by (output started at /home/mysite/wp-includes/functions.php:6031) in /home/mysite/wp-includes/pluggable.php on line 1435
Warning: Cannot modify header information – headers already sent by (output started at /home/mysite/wp-includes/functions.php:6031) in /home/mysite/wp-includes/pluggable.php on line 1438
That’s all on the activity page
On other pages, I get only the Deprecated message
Also on the forum page which shows no poste.
HTH
I have installed the buddypress plugin on my site. But there is no way to edit the generated page https://ohwhat.com/activity/ and https://ohwhat.com/members/ and others. Those two URLs are not listed in my WordPress “Page” dashboard.
It seems like the issue might be related to the context in which you’re trying to display the messages.php content. Check if the required BuddyPress functions are available on the pages where you’re trying to include the snippet. Additionally, ensure that the necessary scripts and styles are enqueued for those pages. Double-checking these aspects might help resolve the display issue
I totally get your frustration with not being able to optimize member page titles in BuddyPress using popular SEO plugins. It’s surprising that BuddyPress itself hasn’t addressed this functionality.
It’s a bummer that even plugins like Rank Math don’t support member page titles. Maybe looking into professional SEO services could help find a workaround for this annoying issue.
Running BuddyPress with legacy template pack. Unable to post any update to groups. Text window appears but there is no option to post it — enter/return only produces a carriage return.
Other activity in the groups is announced in the feeds but cannot find any setting or keyboard trigger to post manually entered updates. TIA for any assistance
@perihelionweb are you using ‘Activity Plus Reloaded for BuddyPress’ may be that’s causing this error. If you submit through this plugin, the issue will be seen, and that if you use default ‘buddypress’ interface to post an update that will not cause this issue.
Hi,
When a mail sent to notify something (for exemple, a new private message), the urls inside the mail are false.
This is because it add “http” + “https” :
http://https//mydomain.com
Do you know this problem ?
WP : 6.4.3
BuddyPress : 12.2.0
Thank you for your help !
NB. Sorry for my bad english…
I had the same issue. But the plugin you recon does not work with BP 12.X (without Classic Theme). It was last updated 8 months ago. So I chose the BuddyPress Members only plugin which does the job.
I have a problem with the notifications page, because when you are in the user’s profile, and you want to see your notifications, the page is not shown, a page error appears, because it does not exist.
https://tudominio.com/miembros/horacios/notifications/
BuddyPress Versión 12.2.0
I don’t have any idea how fix it.
@yatesa01 @juwaretu I checked the Repair member’s last activity data, and the function seems unusable. The function starts by clearing all existing last_activity records for members from the bp_activity table. It then attempts to insert new last_activity records into the same table, pulling data from the usermeta table. BuddyPress no longer saves the data into the usermeta last activity_data unless $use_legacy_query mode is enabled.
https://buddypress.trac.wordpress.org/ticket/9096 I have also submitted a ticket to get more insight into it.
BuddyPress doesn’t have this functionality built-in, there are potential approaches you can explore:
While your attempts at a custom plugin haven’t been successful, it’s still a viable option.
Post your error logs and relevant code snippets on the BuddyPress forum thread you linked. Experienced developers can analyze and identify the issue or Hire a WordPress developer experienced with BuddyPress customizations. They can create a more robust and error-free plugin.
Several plugins might achieve a similar result, though not always with exact feature parity:
Creates exclusive groups where only admins and moderators can post, but members can still access content and chat.
@kmp2
You can use the following code snippet to increase image dimension.
function wbcom_custom_cover_image_sizes( $settings = array() ) {
$settings['width'] = 1920; // Your desired width
$settings['height'] = 1080; // Your desired height
return $settings;
}
add_filter( 'bp_before_xprofile_cover_image_settings_parse_args', 'wbcom_custom_cover_image_sizes', 10, 1 );
add_filter( 'bp_before_groups_cover_image_settings_parse_args', 'wbcom_custom_cover_image_sizes', 10, 1 );
You can also add custom CSS for cover images to make them responsive and adapt to different screen sizes.
you can check https://codex.buddypress.org/themes/buddypress-cover-images/ for more details
Tested again
If I disable ‘sign-in popup’ in the BuddyX theme I no longer get the parser error.
Buddypress 12.2
Hi yates,
– I still use Buddypress 10.6.1 and can confirm the issue you describe “When they click to page two, the sorting resets to “Last Active,” is indeed present.
– also the issue with the Repair Tools (Repair member “last activity” data) has also been present for a while. Last year I used it, it unexpectedly reset all my users’ last active time to 9 months earlier (all of them). I had to restore my site from backup.
@vapvarun User Groups is enabled in the Component tab but the User Groups accordion panel was missing in the URLs tab. However, I have been able to get it to appear.
Here is what I did:
1) Installed and network activated the bp-classic plugin. This changed the URL tab in BuddyPress settings to Pages. At that point, I could see an option for the User Groups component.
2) It turned out the Groups page in the Main Site was private. So, I changed it to public. After that, I was able to associate it with the User Groups component in the Pages tab.
3) Network deactivated the bp-classic plugin. The Pages tab in the BuddyPress settings changed back to URLs. Now, the User Groups accordion panel appears as expected.
Code Snippet is for labels, not for main components; you can change component names from BuddyPress URL options
@thinlizzie
Hi Varun
The code snippet does not work for me.
The Friends label does not change, neither in the Friends component nor in the Buddypress user account menu (top right on screen)
Snippet added with Code Snippets plugin.
Could you advise please?
@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-332492
Hi @vapvarun, Thank you very much for your reply!
I have proceeded with your recommendations, but without any success. I refreshed the permalinks and activated the debug log. Unfortunately, I am still getting the Error 403 Forbidden, and the debugger is not recording any errors.
I have tried the troubleshooting mode in WP and deactivated all the plugins. The only two plugins active were BuddyPress and BP Classic. However, I am still experiencing both issues: 1) the 403 Forbidden error and the Member pages (Profile, Activity, Notifications, Messages, etc.) are showing as completely empty (blank pages).
Do you have any other suggestions?