Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • Avatar of davidkooo
    davidkooo
    Participant

    @davidkooo

    @djpaul Thank you.

    Avatar of davidkooo
    davidkooo
    Participant

    @davidkooo

    it seems… finally I found it. holy moly…

    Avatar of davidkooo
    davidkooo
    Participant

    @davidkooo

    so what should I do? Because BP extended settings plugin has no option to turning this off (or I am just blind)

    Avatar of davidkooo
    davidkooo
    Participant

    @davidkooo

    well I am using my own theme

    http://transformers.scifi-guide.net/

    Avatar of davidkooo
    davidkooo
    Participant

    @davidkooo

    none of these help… I pasted it to my functions.php, but links are still visible.

    Avatar of davidkooo
    davidkooo
    Participant

    @davidkooo

    not bad idea :D

    Avatar of davidkooo
    davidkooo
    Participant

    @davidkooo

    @naijaping yeah it works, but how to get rid of “Notifications” text… I would like to display only number. Thanks.

    Avatar of davidkooo
    davidkooo
    Participant

    @davidkooo

    @Roger Coathup: how to edit this to work without admin bar? I know I need to replace $wp_admin_bar, but with what? I want to append it to my header, which is `

    `
    `/**
    * Build the “Notifications” dropdown
    *
    * @package Buddypress
    * @since BuddyPress (1.5)
    */
    function bp_members_admin_bar_notifications_menu2() {
    global $wp_admin_bar;

    if ( !is_user_logged_in() )
    return false;

    $notifications = bp_core_get_notifications_for_user( bp_loggedin_user_id(), ‘object’ );
    $count = !empty( $notifications ) ? count( $notifications ) : 0;
    $alert_class = (int) $count > 0 ? ‘pending-count alert’ : ‘count no-alert';
    $menu_title = ‘‘ . $count . ‘‘;

    // Add the top-level Notifications button
    $wp_admin_bar->add_menu( array(
    ‘parent’ => ‘top-secondary’,
    ‘id’ => ‘bp-notifications’,
    ‘title’ => $menu_title,
    ‘href’ => bp_loggedin_user_domain(),
    ) );

    if ( !empty( $notifications ) ) {
    foreach ( (array) $notifications as $notification ) {
    $wp_admin_bar->add_menu( array(
    ‘parent’ => ‘bp-notifications’,
    ‘id’ => ‘notification-‘ . $notification->id,
    ‘title’ => $notification->content,
    ‘href’ => $notification->href
    ) );
    }
    } else {
    $wp_admin_bar->add_menu( array(
    ‘parent’ => ‘bp-notifications’,
    ‘id’ => ‘no-notifications’,
    ‘title’ => __( ‘No new notifications’, ‘buddypress’ ),
    ‘href’ => bp_loggedin_user_domain()
    ) );
    }

    return;
    }
    add_action( ‘admin_bar_menu’, ‘bp_members_admin_bar_notifications_menu2′, 90 );`

    Avatar of davidkooo
    davidkooo
    Participant

    @davidkooo

    bump

    Avatar of davidkooo
    davidkooo
    Participant

    @davidkooo

    …or maybe I am just dumb. I deleted wp_head from my header… *facepalm*

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