Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 801 through 825 (of 3,820 total)
  • @shanebp

    Moderator

    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 slug

    @shanebp

    Moderator

    It’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.

    @shanebp

    Moderator

    I 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 map you mean a directory ?
    If so – delete the directory called bp-custom.php
    Put your bp-custom.php file in the plugins directory: wp-content/plugins/

    @shanebp

    Moderator

    Yes, you need to create bp-custom.php and place it on your server – as explained in the link I provided.

    @shanebp

    Moderator

    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.

    @shanebp

    Moderator

    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 in buddypress\bp-activity\bp-activity-filters.php

    add_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.

    @shanebp

    Moderator

    Hmmm… The OP was for default alphabetical listings for group members.

    In that case, rather than the members-loop template, the template to overload is this ( assuming you are using the Legacy template pack ):
    buddypress/bp-templates/bp-legacy/buddypress/groups/single/members.php

    And 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.

    @shanebp

    Moderator

    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.

    @shanebp

    Moderator

    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 usermeta database table to track which users have access to which sites.
    You could write a custom widget that checks BP last_activity items and then filters it by the usermeta data.

    In reply to: Profile Menu/Tab Link

    @shanebp

    Moderator

    For 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.

    @shanebp

    Moderator

    Yes, it is on purpose – see the ticket.

    @shanebp

    Moderator

    @shanebp

    Moderator

    Yes they are compatible, afaik.

    Your preferred theme may not be compatible.
    Did you try switching momentarily to a WP theme like 2017 ?

    @shanebp

    Moderator

    It 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 fields

    @shanebp

    Moderator

    Let me google that for you:

    bp_get_group_permalink

    In reply to: Get group fields

    @shanebp

    Moderator

    @shanebp

    Moderator

    Other 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.

    @shanebp

    Moderator

    BP 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.

    @shanebp

    Moderator

    Try 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?

    @shanebp

    Moderator

    Thanks for the update and info.

    @shanebp

    Moderator

    If you deactivate the BuddyPress plugin, can you log-in without the error messages ?

    In reply to: User Based Shortcode?

    @shanebp

    Moderator

    Interesting idea, but no.

    @shanebp

    Moderator

    These are the forums for BuddyPress.
    Please send your question to BuddyBoss – the creators of BuddyBoss Wall.

    @shanebp

    Moderator

    You can use the scope argument for that.
    Try this in your theme > functions.php or in bp-custom.php

    function 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 form

    @shanebp

    Moderator

    I 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.

Viewing 25 replies - 801 through 825 (of 3,820 total)
Skip to toolbar