Since the code … code here is weird right now: http://buddypress.pastebin.com/xZuQapR1
Line 28 is the one I’m 99% sure is wrong.
AH! Got it http://buddypress.pastebin.com/LrQuRa9T
This will show you the number of pending (NOT SPAM) comments next to the menu for ‘Manage Comments (#)’. Whew. I’m going to fiddle and see if I can make something like the notifications alert show up. But this is mostly what I wanted
Ipstenu (Mika Epstein)
@ipstenu
14 years, 7 months ago
I’ve been trying to make a custom buddybar tweak (following these epic directions: http://codex.buddypress.org/how-to-guides/modifying-the-buddypress-admin-bar/ ) to show any pending comments I may have per blog.
The problem I ran into is having the foreach blog loop call the site ID:
The numbers it spits back are wrong. So I think
$site_id = esc_attr( $blog->id );
isn’t right but I’m not sure where I went off the path on that one.