• I’m curious if there’s any way I could have the notification number that is on the admin bar moved to a page link on the menu bar on my website.

    I’m trying to get my BuddyPress-enabled website to a point where our registered users do not need to see the admin bar, but having the notifications counter is something I’d like to keep.

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    I should think so, but not knowing anything about BuddyPress, I couldn’t say specifically how. BP outputs the count somehow in the menu. Similar code could be used to output it somewhere else.

    If you can find where in your DB this number is stored for each user, you could use a direct $wpdb method to retrieve it and echo it out, even if you cannot locate the BP admin bar code. If it were a straight WP installation, this number would likely be in user meta. BP probably has its own way of storing such data, though user meta might be it.

    If you poke around (without changing anything!) your DB with phpMyAdmin or through your host’s cPanel, you should be able to find this data. Be warned that data can be stored in a serialized array, which is difficult for us mere mortals to interpret.

    The other possibility that kills my theory above is if BP does a count query to arrive at this number on the fly. If that’s the case, you’ll need to do the same thing. Still a possibility though!

    You may get a better answer if you asked in a BP specific forum.

Viewing 1 replies (of 1 total)

The topic ‘Notification count in menu bar?’ is closed to new replies.