Thanks Mason,
I had found this tutorial as well, but I did not know what links to use for the following WPMUdev plugins:
Invite
Friends
Find Friends
Friend Requests
Notifications
Mail
New Message
Sent Message
Notifications
Communities
Communities
Find Communities
Manage Communities
Also, would I use the same method basically if I decided to use non-admin menu bar?
The links would just be the exact links that they are when you're in the dashboard. For example, the Communities link would be: http://domain.com/wp-admin/communities.php
Each will be similar.
Also, would I use the same method basically if I decided to use non-admin menu bar?
Not sure what you mean by non-admin menu bar, but if you use a link like what I've posted above WordPress will check to see if the person is logged in - if they are they will go straight to that page, if not, they would have to login and then be directed to that page.
Mason,
I tried the admin bar improved and it did provide a means to add to the admin bar, but it did not really integrate with being logged in or if there were any messages/notifications indicators.
I tried the admin bar improved and it did provide a means to add to the admin bar, but it did not really integrate with being logged in or if there were any messages/notifications indicators.
I have to point ya back to the article then. If you've got specific requirements like this, there's no plugin (yet) that'll do it all.
For logged in users, add the following to the beginning:
function pbd_admin_bar_init() {
// Is the user sufficiently leveled, or has the bar been disabled?
if ( !is_super_admin() || !is_admin_bar_showing() )
return;
Then continue as documented in the tutorial. That'll solve the logged-in issue. As to the links being particular to that site's admin you should be able to use the admin url constant for the href the same way as the other default links are created. Example: 'href' => admin_url( 'media-new.php')
As to messages or notifications, this is something I haven't looked into, but I'm surprised it doesn't do this by default.
Responses (8)
Sales & Support Lead — 6th June 2011 01:40 #
Hiya,
Check out this tutorial here:
http://www.problogdesign.com/wordpress/add-useful-links-to-wordpress-admin-bar/
You should be able to follow it exactly to create your own custom plugin to provide those links. Just replace the $links with your own.
Thanks!
Member — 6th June 2011 02:16 #
Thanks Mason,
I had found this tutorial as well, but I did not know what links to use for the following WPMUdev plugins:
Invite
Friends
Find Friends
Friend Requests
Notifications
Mail
New Message
Sent Message
Notifications
Communities
Communities
Find Communities
Manage Communities
Also, would I use the same method basically if I decided to use non-admin menu bar?
Sales & Support Lead — 6th June 2011 21:54 #
Hiya antKat,
The links would just be the exact links that they are when you're in the dashboard. For example, the Communities link would be:
http://domain.com/wp-admin/communities.php
Each will be similar.
Not sure what you mean by non-admin menu bar, but if you use a link like what I've posted above WordPress will check to see if the person is logged in - if they are they will go straight to that page, if not, they would have to login and then be directed to that page.
Hope that helps!
Member — 8th July 2011 19:05 #
Mason,
Our multisite is set-up as sub-directories; how do I wild-card the subdirectories' name in the link for their front-end admin bars?
Sales & Support Lead — 10th July 2011 15:25 #
Hiya, there's no real way to do a 'wild card' but maybe this plugin will allow you to do what you want?
http://wordpress.org/extend/plugins/wordpress-admin-bar-improved/
You should be able to add any menu item and it will direct them to that page at whatever sub-directory site they are currently logged in for.
Thanks!
Member — 10th July 2011 18:06 #
Thanks, I'll check it out.
Member — 12th July 2011 03:30 #
Mason,
I tried the admin bar improved and it did provide a means to add to the admin bar, but it did not really integrate with being logged in or if there were any messages/notifications indicators.
Sales & Support Lead — 12th July 2011 21:29 #
Hiya antKat,
I have to point ya back to the article then. If you've got specific requirements like this, there's no plugin (yet) that'll do it all.
For logged in users, add the following to the beginning:
Then continue as documented in the tutorial. That'll solve the logged-in issue. As to the links being particular to that site's admin you should be able to use the admin url constant for the href the same way as the other default links are created. Example:
'href' => admin_url( 'media-new.php')As to messages or notifications, this is something I haven't looked into, but I'm surprised it doesn't do this by default.
Thanks!
Become a member