Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • Mike
    Participant

    @mikee1001

    Thanks @danbp, I tried that, but it places the number immediately following the number at 7,0 which is on the top line of the menu, instead of being next to the submenu item below 7,0 … so it seems like it ignores the sub menu?


    Mike
    Participant

    @mikee1001

    How do you position the notification counter for dropdown items? For example,

    array_splice( $items_array, 7, 0, '<li class="bubble">' . friends_get_total_friend_count( bp_loggedin_user_id() ) . '</li>' ); // 0,0 1st position, 1,0 2nd, etc

    if there was a dropdown menu below this menu item (below position 7,0), what would the position be labelled as? I’ve tried 7,1 but no luck.


    Mike
    Participant

    @mikee1001

    Ok, thanks @mcUK


    Mike
    Participant

    @mikee1001

    I got this working in the end… I had to change the first letter of ‘Primary’ menu to lowercase! Is there code I can add to not display ‘0’ after messages, for instance if there are no new messages, then ‘0’ is not displayed?

    I’ve got another plugin for Buddypress called ‘Compliments’ which also has a notification counter, is there a way to clear the reset counter of those notifications, once a person has viewed that particular page?

    Many thanks.


    Mike
    Participant

    @mikee1001

    Hi @mcUK, sorry for the delay. I did put the code into bp-custom.php, and included the opening & closing php tags, I can only think it’s clashing with something else, but I’m trying to see if that is the case right now…


    Mike
    Participant

    @mikee1001

    I inserted the correct name of the menu into the php code, and tried ctrl-A, but couldn’t see anything. I’m going to see if anything else I have missed or that could have gone wrong.


    Mike
    Participant

    @mikee1001

    Thanks again @mcUK, I still cant get it to show correctly 🙁 If I use .top-bar ul>li.bubble or .top-bar ul>li.has-dropdown.bubble I don’t see any bubbles, but when I remove the ‘bubble’ I see the top menu squashed up with lots of empty bubbles (with .top-bar ul>li), and a bubble next to the one dropdown item of my main menu (.top-bar ul>li.has-dropdown). I don’t see any numbers in the bubbles though, they are empty. Any ideas?


    Mike
    Participant

    @mikee1001

    Thanks so much for your step by step guide @mcUK. I’ve followed your instructions, but am stuck on changing the CSS Selector. The theme I’m using is (http://themeforest.net/item/sweet-date-more-than-a-wordpress-dating-theme/full_screen_preview/4994573), I’m trying to put the notifications in the top menu (Welcome/Features/Forums… on the demo, but I’ve added Buddypress menu items there). Do you know which selector I would need to use for that? Many thanks.


    Mike
    Participant

    @mikee1001

    Hi @mcuk , I’ve added Buddypress menu items (e.g. messages, notifications etc.) in my main WordPress menu, together with WordPress menu items (e.g. home). I also want to have the notification counters next to each of the Buddypress items, but am struggling to get your solution to work for me (doesn’t help I’m not that proficient in coding)! Should I add the code above to the functions.php of my child theme, and is it only that one file I need to edit?

    Many thanks.

Viewing 9 replies - 1 through 9 (of 9 total)
Skip to toolbar