Forum Replies Created
-
In reply to: template overload isn’t working as expected
Actually, what hnla points out is correct. Disregard what I previously wrote, I was thinking of something entirely different!
index-directory.phphas to be a full template withget_header()andget_footer().You should copy your theme’s
page.phptemplate and rename it toindex-directory.php. Then move this file towp-content/themes/YOUR-THEME/buddypress/groups/index-directory.php.Please note that template hierarchy means modifying the surrounding elements of the page. If you just want to modify the group loop itself, then just copy
/groups/groups-loop.phpand make your changes to that file.In reply to: template overload isn’t working as expected@kalico –
Template hierarchy doesn’t work for bp-default themes or older-style BuddyPress themes that are derivatives of bp-default.In your situation, I would just modify/themes/YOUR-THEME/groups/index.phpdirectly.If this doesn’t exist in your theme, that means you are using a child theme, so copy/themes/PARENT-THEME/groups/index.phpto your child theme and make your mods.I’m so wrong! Read my updated reply below.
Try the updated code snippet in my previous post.
In reply to: White PageAlso, the registration page only works when you are logged out.
In reply to: Profiles: How to expand it?View this guide to create your own profile fields:
I commented on this behavior in this ticket comment:
https://buddypress.trac.wordpress.org/ticket/7051#comment:3BuddyPress sets the
Reply-Toemail header to the admin email’s address by default.To override this, you have to use the
'bp_email_set_reply_to'filter since'wp_mail_from'only handles theFromemail address header and notReply-Toheader.The following would work:
add_filter( 'bp_email_set_reply_to', function( $retval ) { return new BP_Email_Recipient( 'noreply@example.com' ); } );In reply to: fatal error messageYour theme is using an older BuddyPress function –
bp_is_member().Switch that out for
bp_is_user().In reply to: 2017- Hiding The Menu Tabs on the Profile Page@danbp – FYI, I clicked on the “Trash” icon for this topic, but meant to trash my reply since you already added a response to this! 🙂
I just restored the topic and removed your other “bingo” replies to this. Sorry about that!
You’ll need to report the fatal error to FPD’s developers. Copy and paste that error message and forward it to FPD.
In reply to: Bug: Edit profile redirect to groupe page …Can you write a list of steps needed to duplicate the problem?
eg.
1. Navigate to URL 2. Click on X button. 3. You'll see Y.You’ll have to debug this yourself as FPD is a premium plugin.
Turn WP’s debug mode on and see if any relevant debug notices are written:
https://codex.wordpress.org/Debugging_in_WordPress#WP_DEBUGIn reply to: Registration page does not appearIf you are logged in, you will not see the registration page.
Your registration page works fine. Log out and take a look.
This is a WordPress multisite issue. Use subdomain multisite and then look at various domain mapping plugins.
You should post on the wordpress.org support forums as you’ll likely get more eyes on this.
You might want to look into Mercator or the WPMU Domain Mapping plugin.
In reply to: Custom Members-Loop and Pagination issuesMy guess is the javascript is causing a conflict.
In your custom members loop, you can ensure that the JS doesn’t kick in if you change the pagination
<div>class to something else.In reply to: Show Active Directory Fields in profileFirst, you need to figure out how to fetch the Active Directory data for a user and how to display it. This isn’t dependent on BuddyPress.
Once, you’ve figured that out, you’ll need to hook into the BuddyPress profile template to add those fields.
If you are a WordPress developer, there are various hooks you could use. View the profile template:
https://buddypress.trac.wordpress.org/browser/tags/2.8.1/src/bp-templates/bp-legacy/buddypress/members/single/profile/profile-loop.phpAnd hook into any of the
do_action()hooks to display your AD data. To get the current user’s ID on a profile page, usebp_displayed_user_id().In reply to: Can’t editCan you reinstall v2.8.1 just to make sure you are not experiencing any discrepancies?
Delete BuddyPress and reinstall the latest version and see if you are still running into problems.
In reply to: Can’t editThis should be fixed in BuddyPress 2.8.1.
Upgrade to v2.8.1.
In reply to: Odd Characters in EmailsIt’s being caused by the BP Group Email Subscription plugin.
View the following for a fix until the next version is released:
https://wordpress.org/support/topic/styling-issue-of-letters-with-v3-7-0/#post-8832281In reply to: Problem using login pageBuddyPress does not touch the login page.
You are using a different plugin to do this or some rewrite rules on your server.
In reply to: BuddyPress causing white screenYour problem is using a custom snippet using the
bp_is_front_page()function.Remove the block of code using that function or comment it out.
Disable the “Site Tracking” component under “Settings > BuddyPress” in the WP admin dashboard. When you do this, blog posts and blog comments will not be recorded into the BP activity stream.
In reply to: Buddypress Future Suggestons1,2,3,4,6 should be left to WordPress plugins as these are specific to WP.
7, 10 have been discussed as core options. It just takes time for developers and the team to finalize specs and to code as this is all done on a volunteer basis. 10 is hard because it relies on a ton of dependent code that hasn’t been written or finalized yet.
5 – There’s been some preliminary work on this. See https://github.com/buddypress/bp-types-ui.
9 – If you’re using WordPress multisite, this should be already available as a WordPress option under “Network Admin > Settings”. Otherwise, this plugin might work, but does the opposite. It restricts signup to email domains that you specify.
Notifications
2 should already be in core.
3 is a good request, but unreliable due to how the notifications data is stored. It would be easy to do for BP core notifications, but notifications generated by plugins could store the user ID differently, making this unreliable.
4 could be done via a custom template or via a small code snippet.If the post contains an inappropriate word that you’ve set up in WP’s comment moderation settings, then BuddyPress also inherits these settings. This functionality was added in BP 2.6.0.
To disable this functionality from the Activity component, add the following to your theme’s
functions.phporwp-content/plugins/bp-custom.php:// Do not use WP's Comment Moderation with BP Activity component remove_action( 'bp_activity_before_save', 'bp_activity_check_moderation_keys', 2, 1 ); // Do not use WP's Comment Blacklist with BP Activity component remove_action( 'bp_activity_before_save', 'bp_activity_check_blacklist_keys', 2, 1 );In reply to: BuddyPress causing white screenYou need to figure out what is causing the white screen.
Turn on
WP_DEBUGand view the notices that are logged or displayed:
https://codex.wordpress.org/Debugging_in_WordPress#WP_DEBUGList the notices here if you want us to attempt to diagnose your problem.
My first guess is your problem is memory-related as your webhost might have restricted memory usage. Or if you’re using a caching plugin that is not correctly configured.
In reply to: V2.8 Undefined Function in MU when Creating SiteThanks for finding this bug, @thefierywell.
You are correct that this is due to #7307. We’ll be looking to fix this for v2.8.1.
In the meantime, for a temporary fix, you can switch out
bp_blogs_get_subdomain_base()forbp_signup_get_subdomain_base()inbp-blogs\bp-blogs-template.phpand that should fix your problem.Let us know if you keep seeing some fatal errors.