Is there a way to show the pending comments bubble number on the front end of a site?
There are plugins like - http://wordpress.org/extend/plugins/wordpress-admin-bar/ but I don't want to use a plugin, I've coded a simple html and css admin bar (borrowed css from buddypress admin bar, I don't use buddypress) in my footer template file and want to show the blog admin (in Multisite) whether there are any pending comments via the bubble from the back end.
So just hoping there's some php function that can call the 'bubble' into the front end.
Is there a way to show the pending comments bubble number on the front end of a site?
There are plugins like - http://wordpress.org/extend/plugins/wordpress-admin-bar/ but I don't want to use a plugin, I've coded a simple html and css admin bar (borrowed css from buddypress admin bar, I don't use buddypress) in my footer template file and want to show the blog admin (in Multisite) whether there are any pending comments via the bubble from the back end.
So just hoping there's some php function that can call the 'bubble' into the front end.
I mean show the pending comments count on an admin bar on http://www.domain.com or subblog.domain.com, not just in the backend/admin of the site.
You see at top of here - http://ross.indonesiamatters.com/ - if you're the blog author that top menu changes into an admin bar, with links to dashboard, write post, comments, etc, just wanted to show the pending comments number there.
10635 pointsLike some sort of WPMU DEV GodMindblowingly helpful memberLifetime member
Sales & Support Lead
—
16th August 2010 (1 year ago)
#
I think integrating the plugin you mentioned at the beginning is the best way to go about it. If you don't want to use an extra plugin you could possibly drop the code in your theme in the functions.php file.
10635 pointsLike some sort of WPMU DEV GodMindblowingly helpful memberLifetime member
Sales & Support Lead
—
17th August 2010 (1 year ago)
#
@Joseff
Heh, getting the admin bar to stick to the bottom is simple (look for wp-admin-bar or similar depending on theme) and change the css from top:0 to bottom:0. That should push it to the bottom. The fun part comes in now as you'd need to make your dropdowns reverse direction and slide up.
6593 pointsLike some sort of WPMU DEV GodExceptionally helpfulLifetime member
Keeper of the Dark Chocolate
—
17th August 2010 (1 year ago)
#
Hmmm, admin bar on the bottom. Hmmmmm......
We actually have such things like links to the support faqs site, the forums, and the main page put in wp_footer as a mu plugin. Not an actual bar though.
Saw a site a few days ago that had the admin bar along the top of what in wordpress would be the custom header image. Not sure if I liked that.
676 pointsLike some sort of WPMU DEV GodI'm helpful
Volunteer support dude
—
17th August 2010 (1 year ago)
#
Maybe have it hide when your mouse is off it, and appear/slide up as you get close to it... To me it makes more sense for a global bar to be at bottom and locl bar/nav at top.
Responses (11)
Sales & Support Lead — 14th August 2010 (1 year ago) #
Hiya,
I don't know of any function off hand for this. Does the plugin provide this ability by default?
Maybe someone else on the forum can chime in with an idea for this.
Member — 14th August 2010 (1 year ago) #
Yes it does show the pending comments, it just sort of replicates the whole admin menu.
Sales & Support Lead — 15th August 2010 (1 year ago) #
It's probably easiest to go through this plugin and search for that function in particular. Or simplify it so that it does only what you want.
Keeper of the Dark Chocolate — 15th August 2010 (1 year ago) #
I'm a little lost on what's being asked here but a quick google shows this plugin to display a pending comment count:
http://wordpress.org/extend/plugins/show-pending-comments-count/
Member — 15th August 2010 (1 year ago) #
I mean show the pending comments count on an admin bar on http://www.domain.com or subblog.domain.com, not just in the backend/admin of the site.
You see at top of here - http://ross.indonesiamatters.com/ - if you're the blog author that top menu changes into an admin bar, with links to dashboard, write post, comments, etc, just wanted to show the pending comments number there.
Sales & Support Lead — 16th August 2010 (1 year ago) #
I think integrating the plugin you mentioned at the beginning is the best way to go about it. If you don't want to use an extra plugin you could possibly drop the code in your theme in the functions.php file.
Volunteer support dude — 16th August 2010 (1 year ago) #
On a similar note, does any one know a way to move the bp admin bar to the bottom of the page? and how to edit the content of the BP admin bar?
Sales & Support Lead — 17th August 2010 (1 year ago) #
@Joseff
Heh, getting the admin bar to stick to the bottom is simple (look for wp-admin-bar or similar depending on theme) and change the css from top:0 to bottom:0. That should push it to the bottom. The fun part comes in now as you'd need to make your dropdowns reverse direction and slide up.
Keeper of the Dark Chocolate — 17th August 2010 (1 year ago) #
Hmmm, admin bar on the bottom. Hmmmmm......
We actually have such things like links to the support faqs site, the forums, and the main page put in wp_footer as a mu plugin. Not an actual bar though.
Saw a site a few days ago that had the admin bar along the top of what in wordpress would be the custom header image. Not sure if I liked that.
Volunteer support dude — 17th August 2010 (1 year ago) #
Maybe have it hide when your mouse is off it, and appear/slide up as you get close to it... To me it makes more sense for a global bar to be at bottom and locl bar/nav at top.
Keeper of the Dark Chocolate — 17th August 2010 (1 year ago) #
Those usually mess up using the tab key to go between links and fields. I'm old school. I use the keyboard still. :)
Become a member