Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 776 through 800 (of 3,820 total)
  • @shanebp

    Moderator

    Behaviour confirmed.
    I believe this is a bug.
    Please open a bug ticket here.
    Use the same login as you use for these forums.
    Reference this thread in your ticket.

    In reply to: profile field

    @shanebp

    Moderator

    Delete your use of the add_action.

    Research how to use a filter in WordPress.

    Try :

    function cami_field_value( $value, $type, $field_id ) {
    
         if ( $field_id == 123 ) {  // change 123 to the id of the field you want to change
             // adjust $value 
         }
    
         return $value;
    }
    add_filter( 'bp_get_the_profile_field_value', 'cami_field_value', 1, 3 );
    In reply to: profile field

    @shanebp

    Moderator

    Please use the code button when posting code.

    Try using this filter hook:
    apply_filters( 'bp_get_the_profile_field_value', $field->data->value, $field->type, $field->id );

    To adjust the value returned by: bp_the_profile_field_value()

    For reference: that hook is found in: buddypress\bp-xprofile\bp-xprofile-template.php

    @shanebp

    Moderator

    Do you have the Notifications component turned on in the settings?
    yoursite.com/wp-admin/options-general.php?page=bp-components

    @shanebp

    Moderator

    You could just use a custom post type + comments.
    Or you could create a custom BP component; it would make integration easier.

    Either way, you’ll need to be an experienced BP developer.

    @shanebp

    Moderator

    Notifications are handled by a custom BP table – not a custom post type.

    You would probably need to write a custom function that hooks into BP notifications and then into the Onesignal push code.
    This filter hook might work: bp_activity_at_name_do_notifications
    But you need to ask Onesignal about if it would work and how.

    @shanebp

    Moderator

    Please do not post code for premium plugins on these forums.
    While I appreciate the clarity of your question and the draft solution – it is not appropriate in this setting.
    You should contact the plugin creator directly.
    Closing this and will contact you privately.

    @shanebp

    Moderator

    Why not just add the status parameter to your code ?

    'position'   => 0,
    'status' => 'hidden'

    @shanebp

    Moderator

    The /sites page was designated in the BuddyPress settings …

    You mean ‘Sites’ was listed as a directory on the BP settings page?
    Or that a page called ‘sites’ was assigned to something? If so, what?

    If you want to change BP templates, you need to overload them.
    You cannot use another templating system, such as oxygen.

    @shanebp

    Moderator

    It won’t be in the BuddyPress section of Add menu items.
    Scroll down to Custom Links.
    Then under URL, paste this: /members/me/profile/edit/
    Fill out the link text to whatever you want.
    Click Add to Menu
    Then SAVE the menu.

    @shanebp

    Moderator

    The /sites page refuses to take Oxygen (site builder) templates

    How is that related to BuddyPress ?

    @shanebp

    Moderator

    Re menu links…
    For the logged in user, you can use ‘me’ as the user name.
    For example: yoursite.com/members/me/profile/edit/
    should load the Profile > Edit screen for the logged in user.

    @shanebp

    Moderator

    It is okay to update to WP 5.1
    Due to an oversight, the ‘tested to’ data was not changed for the latest BP release.
    It will be fixed shortly.
    Thanks for the report.

    In reply to: Help with ucommerce

    @shanebp

    Moderator

    This is the support site for BuddyPress which does not offer forums.
    Please ask questions about forums on the support site for bbPress.

    @shanebp

    Moderator

    On networked installs ( mulitsite ) WP and BP use the same users for ALL the sites.
    So profile data for a user will be available to ALL the sites that user belongs to.
    So there is no need for synchronization.

    @shanebp

    Moderator

    Why is it no longer in the loop?

    How are you gathering your list of users?
    Have you tried, in your ajax function, using BP_User_Query ? You can then use a loop and bp_the_member() will work.

    Otherwise, you can use this is get each separate piece of a user’s profile data:
    xprofile_get_field_data( $field, $user_id = 0, $multi_format = 'array' )

    To get all the profile data at once, if you have the email address you could use bp_xprofile_personal_data_exporter( $email_address )

    Or if you only have the user_id, you could use: BP_XProfile_ProfileData::get_all_for_user( $user_id )

    @shanebp

    Moderator

    @denniscabasal

    I cannot duplicate your issue.

    Your OP shows a screenshot that indicates a lot of customization of a member profile.
    In order to narrow down the source of your issue – have you tried removing those customizations?
    It could be that the customizations have not been updated to work with BP 4+ .

    Have you tried switching to a WP theme like 2017 to see if the issue persists?
    Have you tried deactivating other plugins to see if the issue persists ?

    Unless your issues can duplicated on a basic install of the latest versions of WP and BP, it very doubtful that a solution will posted in these forums.

    @shanebp

    Moderator

    In the context of a BP Group, what is an introduction ?

    @shanebp

    Moderator

    Have you tried using the filter hooks to write functions that bypass the blacklist and moderation checks? You can find the hooks in this file: buddypress\bp-core\bp-core-moderation.php

    For example, this could go in your theme > functions.php or in bp-custom.php :

    function bp_bypass_checks( $flag, $user_id, $title, $content ) {
    	return true;	
    }
    add_filter( 'bp_bypass_check_for_blacklist', 'bp_bypass_checks', 1, 4 );
    add_filter( 'bp_bypass_check_for_moderation', 'bp_bypass_checks', 1, 4 );

    @shanebp

    Moderator

    You need to ask Events Manager support questions about appropriate hooks.

    Once you have that info, you can add your own notifications.

    bp_notifications_add_notification

    @shanebp

    Moderator

    @shanebp

    Moderator

    Please use the code button when posting code.

    I cannot duplicate your issue using WP 5.0.3 and BP 4.2.0

    Have you tried switching themes and deactivating other plugins to see if that clears the error ?

    Afaik – auto-suggestions are not used by default in a group > members > search
    Do you have some custom code that is calling wp_ajax_bp_get_suggestions ?

    @shanebp

    Moderator
    function bpfr_hide_admins_profile() {
    	
        $admin_ids = array( 1, 22, 48 );
    	
        if( bp_is_user() ) {
    	if ( in_array( bp_displayed_user_id(), $admin_ids ) && ! in_array( bp_loggedin_user_id(), $admin_ids ) ) {
    		bp_core_redirect( site_url() );
            }
        }
    	
    }
    add_action( 'bp_ready', 'bpfr_hide_admins_profile', 1 );

    @shanebp

    Moderator

    I’m surprised that your code ever worked.

    Try:

    function bpfr_hide_admins_profile() {
         if( bp_is_user() && bp_displayed_user_id() == 1 && bp_loggedin_user_id() != 1 ) {
    	bp_core_redirect( site_url() );
         }
    }
    add_action( 'bp_ready', 'bpfr_hide_admins_profile', 1 );

    Of course – this assumes that there is only one site admin and the user_id for that admin is 1.

    @shanebp

    Moderator

    No, you’d need to edit the file itself.

    So you could make that edit – or write your own custom widget, based on that file, and change the value of the action field.

Viewing 25 replies - 776 through 800 (of 3,820 total)
Skip to toolbar