I wanted to create this topic to discuss using WP menus for BuddyPress menus. I created a ticket here: http://buddypress.trac.wordpress.org/ticket/4538
Per discussion in the dev chat, @jjj would like to use WP menus but it needs to be thought out more. There are many issues to deal with like user nav on profiles. WP menus will probably not be a core feature until 1.8.
Until then, I’m going to develop out a plugin to test what works and doesn’t. You will be able to use the plugin and help decide how the UI/UX should work. I’ll post to this thread the development of the plugin and gather everyones thoughts so that this feature makes into core.
Here is an update to BP Profile Menu that includes admin configurable menus for BuddyPress
Please test and report back.
Sure, I was updating that plugin so thought might as well get the WP menu ball rolling. We can test usernav with sidebar widgets. I played a bit with that. I think it might be easier in the long run to use core menus. It already has the management down of item creation. BP wouldn’t even need to manage the menu items because a plugin can just add an item to the meta box
As we know the url cant be saved in admin dialog. I need to dig further into code to see if we can add meta to menu items during creation. I’m using link relation xfn right now as that is available. But i’d rather the variable to route be hidden.
I’m finding the list of menu items in the meta box to be insufficient in handling all the menu items that will be introduced. So need to do a little wire framing and feedback
I have: [Directory] [Profile] [User] [Plugins] with just a straight list of items.
I think unifying Profile + User into just User. Also, I did not include the Group nav.
I suggest: [Directory] [User] [Group] [Forum]
Then for [User] tab in meta box show indented sub nav items to distinguish the sub nav items.
Plugins can add to this list to create items for their components.
The directory structure would function the same way. Plugin components that have a directory can add their items to the directory menu items tab.
How would we (or a plugin) add those items to that metabox? Those items are post types, right?
I don’t know but I simply know that modemlooper is the best. this plugin was what I was looking for, for months.
@djPaul, you’d be surprised. It uses custom link type menu items. Too bad WP doesn’t allow you to register new menu item types. The meta box is just html. When you click add to menu it takes input value and adds it to the menu but the post type is not create until you add to menu. So a plugin just needs to add the required markup. Simple.
We can write the code so that if a component is deactivated it just doesn’t show that markup in the meta box. Plugins can just attach to the array that contains each items info
For backpat I was thinking the current method should not even be messed with. Since new method core menus could use a menu location built into template files then you just check against if a menu has been placed in that menu location. If it has then show the custom menu or show the old bp nav.
I have had issues with some of the sub-menu items throwing back a page not found error on my test server, and others that works excellent. For example the Settings in sub-menu is throwing that error. Using WP 3.4.1. and BP 1.6.1. no plugins either. Also, I would still like to see the notifications added to this new iteration of the plugin. Ultimately it would be best if its beside the parent navigational menu item for profiles like you would see the number that shows when you have unread messages in WP admin bar. Its a matter of taking it from the WP admin bar, and having the nifty little number pop-up beside the parent menu item when there is messages. Anyway, just a thought and some feedback. Thanks again @modemlooper for your hard work!
That might not be the nav items issue. If the link is correct to your settings page them it could be something else. The link would be either
If plugin fails link is # and it would not be clickable
Is it a local test setup with a funky URL? Try removing item that is not working and add again.
Good suggestion about notification but that seems to be a design choice. We shouldn’t force that onto people. However, I will include a notification menu item.
@modemlooper I will look more in depth and report the issue on the setting sub-nav later. Just got back from a loooong driven vacation. About the suggestion of the message notification on the parent menu profile menu though I am swayed between it being a design choice but I also ask myself and some others and most agree that they like to know immediately when they log in if they have a notification. They and I agree that just hovering over the profile menu to see it in the sub-menu isn’t a clear enough indication upon login. I personally would like the site to be unidentifiable as a WordPress and BuddyPress site as possible, not to discredit everyone’s work but as a safety precaution so its not as obvious as to the software we are using and its clear to me that it is one way to somewhat cloak the software is by not using the WP admin bar at all and being able to rely on the function of this great plugin you have worked on. At least that is what I would like to see transpire but I will respect the choice you ultimately make. Thanks again!
This is a fantastically useful plug in. Can I suggest:
1. On the plug in site you add just a tiny bit more about what the plug in can be used for for less sophisticated users like me eg
This plugin will add a BuddyPress Menu to the admin at Appearance > Menus. You can use it to create menu items or custom menus that link to BuddyPress features including the logged in user’s profile, settings and topics. You can re arrange the menu which includes the user profile links.
2. In the plug in itself the field “Url” which has “#” as the default value is confusing to a non programmer – at first I thought I had to insert the URL. Suggest you change label or add a description with something like “Leaving URL as # will work in most cases.”.
Anyway for what it’s worth and hope that’s helpful. Great work!
Good suggestions, in next update there will many more links and a complete how to/ instructions.
Because the tab/link colors in the profile pages (eg. profile, messages, settings, album, etc.) are default to the color white and there’s a white default background the tabs/links are invisible. How can i change this?
Use firebug for firefox, or Google Chrome developer tools to target the element and adjust the CSS accordingly.
have no clue what ur getting at. Maybe Im in the wrong forum. Im not a developer, just a person whos using buddypress on his site. Can u give simplier instructions please? Thanks.
This has nothing to do with this thread. Repost in a new thread with a clear title and I will respond.
You must be logged in to reply to this topic.