Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 2,362 total)
  • Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    There is a project re new templates. You can join the effort. More info…

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    You can overload the BP templates in your theme. Read this…

    Some sections do not use ajax. Changing them to ajax will be a huge task.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Put this in your theme/functions.php or in bp-custom.php

    code on gist

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    1. Yes – If a site admin, on your profile > Messages > Compose… [checkbox] This is a notice to all users.

    2. Yes with https://wordpress.org/plugins/crowdmentions/

    3. No

    4. Yes – per user setting on whether they want such emails: Profile > Settings > Email

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    If hitting ‘Enter’ does not work then no, afaik.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    You were clear enough about it being settings – I misread your posts.

    You should use this hook: do_action( 'bp_core_general_settings_after_save' );
    Found in: buddypress\bp-settings\bp-settings-actions.php

    Changing the feedback message is more difficult.
    You could change the content of the message by using this hook:
    apply_filters( 'bp_core_render_message_content', $bp->template_message, $type );
    Found in: buddypress\bp-core\bp-core-functions.php

    But I don’t see how you can change the type of message from error to success.

    So what I would do is – create a new tab on the Settings panel and handle everything separate from the General tab functionality.

    There is lots of documentation about that task, this will get you started…

    
    function had_setup_biz_phone_navigation() {
       bp_core_new_subnav_item( array(
    	'name'                    => 'Billing Phone',
    	'slug'                    => 'bphone',
    	'parent_url'              => bp_loggedin_user_domain() . 'settings/',
    	'parent_slug'             => 'settings',
    	'screen_function'         => 'name of the function to create the content',
    	'show_for_displayed_user' => false
       ) );
    }
    add_action( 'bp_setup_nav',   'had_setup_biz_phone_navigation' );
    
    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    modifying the general.php template

    There is no such template in a standard BP install, afaik.

    But there is an easier way to add a field…
    Why not add a profile field in the proscribed manner?
    In wp-admin, go to Users > Profile Fields and add your field to whichever Group you want.
    All fields in the Base Group will appear on the Registration page.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    If you can reproduce the issue with a vanilla install, definitely open a report on trac.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Assuming there are no errors on your site….
    afaik, the auto-complete only handles friends by default. So if you aren’t friends with ‘Jenn’, you won’t see a suggestion.

    To turn on auto-complete for all users, put this in bp-custom.php :
    define( 'BP_MESSAGES_AUTOCOMPLETE_ALL', true );

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Try this, untested:

    function jan_add_nav_menu_items( $items, $args ) {
    
        if ( is_user_logged_in() ) 
    	$items .= '<li><a href="' . bp_loggedin_user_domain() . '/groups/">My Groups</a></li>';
    
        return $items;
    }
    add_filter( 'wp_nav_menu_items', 'jan_add_nav_menu_items', 10, 2 );
    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    You mean on a per-member basis?

    This plugin allows a member to block other members so they can’t message them.
    BuddyBlock

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Set up a custom notification callback. Look at existing BP components to see how it is handled.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    When you register your component, in function setup_globals, what value ( function name ) do you give to 'notification_callback' ? And does that function exist?

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    'secondary_item_id' should be the user id of the person creating the notification.
    That might be the problem.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    You should not change that function. You should use the hook.

    Try something like this in your theme functions.php:

    function hosam_delete_notification( $topic_id ) {
    
       // you cannot send an array
       // create individual variables
       $user_id = 386;  // etc
    
       bp_notifications_delete_notifications_by_item_id( $user_id, $item_id, $component_name, $component_action, $secondary_item_id = false );
    
    }
    add_action( 'bbp_trash_topic', 'hosam_delete_notification' );
    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    You can open a ticket here. Use the same user name and password that you use for this forum.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Did you try this hook do_action( 'bbp_trash_topic', $topic_id ); found in bbp_trash_topic ?

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Are you using any other plugins re login?

    As debug step, go to that person’s profile in wp-admin > Users, scroll down to ‘Account Management’ and click ‘Lot Out Everywhere’. Then have them try again.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    For addresses, you may be able to use a single field.
    BP xProfile Location – Get it from the WP Plugin Repo or on PhiloPress

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Try:
    'contexts' => array( 'activity', 'member', 'friends' ),

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Don’t add a function, just do this:
    remove_action( 'bp_notification_settings', 'groups_screen_notification_settings' );

    And it won’t work in bp-custom.
    Put it in your theme or child-theme functions.php.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Ask GF for the hook re a form submission.
    Then use that hook to call a function that uses bp_activity_add()

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    .mo is compiled from a .po or .pot file.
    Does sublime text compile .pofiles?
    If not, use poEdit.

Viewing 25 replies - 1 through 25 (of 2,362 total)
Skip to toolbar