Skip to:
Content
Pages
Categories
Search
Top
Bottom

help with notifications (messages, friend requests, etc.)

  • Avatar of loumitch
    loumitch
    Participant

    @loumitch

    My post is in reference to the main sidebar area on the left where it lists all the areas of a member’s profile (Activity, Profile, Blogs, Wire, etc.)

    I’d like to be able to display in the sidebar when a member gets a new message and when there’s a friend request – something like this:

    Messages (2)

    Friends (3)

    So this way people know when they have something waiting (new message or friend request), instead of having to go in that section to find out.

    I can’t figure out where this needs to be edited or how to edit it – I tried searching forums to no avail.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Avatar of Manoj Kumar
    talk2manoj
    Participant

    @talk2manoj

    You have to create a new function like bp_adminbar_notifications_menu()

    Even if you directly write bp_adminbar_notifications_menu(); in your sidebar you will get the result.

    Avatar of loumitch
    loumitch
    Participant

    @loumitch

    i’m not much of a programmer…has anyone done this before?

    I’d appreciate the code for this and guidance on where to implement it.

    thank you!

    Avatar of Manoj Kumar
    talk2manoj
    Participant

    @talk2manoj

    I am not sure in which sidebar you want to implement this.

    If you are talking about blog sidebar in default BP theme.

    1. Open sidebar.php from wp-content/themes/bphome/

    2. Replace all content with following code

    <div id="sidebar">
    <?php if ( !function_exists('dynamic_sidebar')
    || !dynamic_sidebar('blog-sidebar') ) : ?>

    <div class="widget-error">
    <?php _e( 'Please log in and add widgets to this column.', 'buddypress' ) ?> <a href="<?php echo get_option('siteurl') ?>/wp-admin/widgets.php?s=&show=&sidebar=sidebar-4"><?php _e( 'Add Widgets', 'buddypress' ) ?></a>
    </div>
    <?php endif; ?>
    <?php bp_adminbar_notifications_menu(); ?>
    </div>

    3. Check by clicking on any post from main blog.

    Avatar of loumitch
    loumitch
    Participant

    @loumitch

    i was talking about the main nav column on the left titled “ME” which lists:

    Activity

    Profile

    Blogs

    Wire

    Messages <


    this I would like to say Messages (3) if there were 3 messages

    Friends <—-this I would like to say Friends (2) if there were 2 friend requests

    Groups

    Settings

    Logout

    Maybe update for new wire posts too? but at least the friends and messages part

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

The topic ‘help with notifications (messages, friend requests, etc.)’ is closed to new replies.