Skip to:
Content
Pages
Categories
Search
Top
Bottom

Notifications settings


  • Debora1976
    Participant

    @debora1976

    Hi,

    Where can I find the notification settings form and how can I override this form?
    Or is it placed in several files, like bp-activity-notifications.php?
    If that’s so,is there a way I can override these files?

    Kind regards,
    Debby

Viewing 3 replies - 1 through 3 (of 3 total)

  • shanebp
    Moderator

    @shanebp

    If you are using the Legacy template pack, this is the file:
    buddypress\bp-templates\bp-legacy\buddypress\members\single\settings\notifications.php

    For the Nouveau pack, it is:
    buddypress\bp-templates\bp-nouveau\buddypress\members\single\settings\notifications.php

    Both files can be over-loaded.


    Debora1976
    Participant

    @debora1976

    Hi,

    The form is not in settings:

    <?php

    /**

    * BuddyPress – Members Settings Notifications

    *

    * @package BuddyPress

    * @subpackage bp-legacy

    * @version 3.0.0

    */

    /** This action is documented in bp-templates/bp-legacy/buddypress/members/single/settings/profile.php */

    do_action( ‘bp_before_member_settings_template’ ); ?>

    <h2 class=”bp-screen-reader-text”><?php

    /* translators: accessibility text */

    _e( ‘Notification settings’, ‘buddypress’ );

    ?></h2>

    <form action=”<?php echo bp_displayed_user_domain() . bp_get_settings_slug() . ‘/notifications’; ?>” method=”post” class=”standard-form” id=”settings-form”>

    <p><?php _e( ‘Send an email notice when:’, ‘buddypress’ ); ?></p>

    <?php

    /**

    * Fires at the top of the member template notification settings form.

    *

    * @since 1.0.0

    */

    do_action( ‘bp_notification_settings’ ); ?>

    <?php

    /**

    * Fires before the display of the submit button for user notification saving.

    *

    * @since 1.5.0

    */

    do_action( ‘bp_members_notification_settings_before_submit’ ); ?>

    <div class=”submit”>

    <input type=”submit” name=”submit” value=”<?php esc_attr_e( ‘Save Changes’, ‘buddypress’ ); ?>” id=”submit” class=”auto” />

    </div>

    <?php

    /**

    * Fires after the display of the submit button for user notification saving.

    *

    * @since 1.5.0

    */

    do_action( ‘bp_members_notification_settings_after_submit’ ); ?>

    <?php wp_nonce_field(‘bp_settings_notifications’ ); ?>

    </form>

    <?php

    /** This action is documented in bp-templates/bp-legacy/buddypress/members/single/settings/profile.php */

    do_action( ‘bp_after_member_settings_template’ );


    Bailey Metcalfe
    Participant

    @rcandia77

    Is the second file is overloaded? & Overloading & copying it over from:
    /bp-templates/bp-legacy/buddypress/

    It may be?

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar