Forum Replies Created
-
In reply to: Custom notification text don’t show on front page
Untested, but try:
function custom_format_buddypress_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) { // New custom notifications if ( 'custom_action' === $action ) { $custom_title = "You have new custom notification"; $custom_link = get_permalink( $item_id ); $custom_text = "You have a new custom notification"; // WordPress Toolbar if ( 'string' === $format ) { $return = apply_filters( 'custom_filter', '<a href="' . esc_url( $custom_link ) . '" title="' . esc_attr( $custom_title ) . '">' . esc_html( $custom_text ) . '</a>', $custom_text, $custom_link ); // Deprecated BuddyBar } else { $return = apply_filters( 'custom_filter', array( 'text' => $custom_text, 'link' => $custom_link ), $custom_link, (int) $total_items, $item_id, $secondary_item_id ); } return $return; } } add_filter( 'bp_notifications_get_notifications_for_user', 'custom_format_buddypress_notifications', 20, 5 );In reply to: Changing group slugIt’s simple to do.
Create and publish a page entitled ‘Regional Groups’.
Go to the BuddyPress Settings:yoursite.com/wp-admin/admin.php?page=bp-page-settings
For the User Groups setting, chose ‘Regional Groups’ from the drop down.
Then click ‘Save Settings’.BuddyPress will use the Regional Groups page.
And you can use the Groups page for whatever you want.In reply to: filter activity stream re friendsI made a bp-custom.php map in: wp-content/plugins/bp-custom.php –> In the map bp-custom.php i placed a file bp-custom.php
By
mapyou mean a directory ?
If so – delete the directory calledbp-custom.php
Put your bp-custom.php file in the plugins directory:wp-content/plugins/In reply to: filter activity stream re friendsYes, you need to create
bp-custom.phpand place it on your server – as explained in the link I provided.In reply to: Prevent banned words from deleting the user’s post?The default behavior for activity comments is also NOT to remove the content, but to refuse to post it and show the error message and leave the content in the comment textbox.
In reply to: Prevent banned words from deleting the user’s post?If you are talking about activity posts…
The default behavior is NOT to remove the content, but to refuse to post it and show the error message and leave the content in the textbox.
Are you running some other code re moderation?Anyhow…
Unfortunately, there are no hooks in the moderation functions.
So you would need to remove the hook that is added inbuddypress\bp-activity\bp-activity-filters.phpadd_action( 'bp_activity_before_save', 'bp_activity_check_moderation_keys', 2, 1 ); add_action( 'bp_activity_before_save', 'bp_activity_check_blacklist_keys', 2, 1 );and replace it will a hook that leads to a custom function that does what you want.
Hmmm… The OP was for default alphabetical listings for group members.
In that case, rather than the
members-looptemplate, the template to overload is this ( assuming you are using the Legacy template pack ):
buddypress/bp-templates/bp-legacy/buddypress/groups/single/members.phpAnd the change would be:
<?php if ( bp_group_has_members( bp_ajax_querystring( 'group_members' ) . '&type=alphabetical' ) ) : ?>So try overloading that template and make sure you adjust the placement of that template in your child theme.
I don’t think groups are specific to subsites.
Even if they were, you’d still have to write a custom widget, in which case it would be simpler to use the approach I mentioned above.afaik – It is not possible, at least not easily.
Members are not stored per site – regardless of whether BP is activated per site or globally.
And neither are BuddyPress activity items. “Recently Active” is handled via activity items.WP multisite uses the
usermetadatabase table to track which users have access to which sites.
You could write a custom widget that checks BPlast_activityitems and then filters it by theusermetadata.In reply to: Profile Menu/Tab LinkFor the logged in user, you can use ‘me’ as the user name.
For example:yoursite.com/members/me/messages/sentbox/
will load the Messages > Sent screen for the logged in user.In reply to: deleting spam member doesn’t delete their groupsYes, it is on purpose – see the ticket.
In reply to: Users Not Able to RegisterIn reply to: Users Not Able to RegisterYes they are compatible, afaik.
Your preferred theme may not be compatible.
Did you try switching momentarily to a WP theme like 2017 ?In reply to: Users Not Able to RegisterIt looks like you are using PM Pro ?
Just to test – try deactivating it and see if you can register.
If you can, then there is some conflict with PM Pro and you need to contact them.btw- on your current register page, some fields are not showing up ( ex. birthday ) but the visibility settings are showing up.
So that is another clue that there are issues with your register page; issues that may be related to ‘people are not able to register’.In reply to: Get group fieldsLet me google that for you:
In reply to: Get group fieldsIn reply to: Member search in mutiple profile fieldsOther people have the same request and solutions are provided, as you can see:
use-1-text-box-and-search-against-2-field-types/For further discussion, please use the support forums for that plugin.
In reply to: Member search in mutiple profile fieldsBP Profile Search will search as many profile fields as you want for each search input.
Just follow the directions for that plugin.
If you have additional questions, please ask them on the support forum for BP Profile Search.In reply to: Buddypress / Themeforest / Music PlayTry switching to a WP theme like 2017.
If it works, then you know the issue is in your Themeforest template and you should contact them for support.In reply to: User Based Shortcode?Thanks for the update and info.
In reply to: BuddyPress/WordPress USERS CANNOT LOGINIf you deactivate the BuddyPress plugin, can you log-in without the error messages ?
In reply to: User Based Shortcode?Interesting idea, but no.
These are the forums for BuddyPress.
Please send your question to BuddyBoss – the creators of BuddyBoss Wall.In reply to: filter activity stream re friendsYou can use the
scopeargument for that.
Try this in your theme > functions.php or in bp-custom.phpfunction bp_activities_user_friends_scope( $retval ) { if ( bp_is_activity_directory() ) { $retval['scope'] = 'friends'; } return $retval; } add_filter( 'bp_after_has_activities_parse_args', 'bp_activities_user_friends_scope' );In reply to: Problem with formI doubt that the issue is in ‘the template’.
The issue is not due to BuddyPress.
The issue manifests when you are using BuddyPress.I’ve already suggested ways for you to narrow down the source of the issue.
Beyond that, there is little that anyone here can do to help you.