-
pcwriter posted on the forum topic Adding menu items to the admin bar in the group How-To and Troubleshooting: 14 years, 3 months ago
@hnla Well now, great progress! I remember writing at some point that it’s often the most obvious that escapes me… Turns out I hadn’t “actually” selected any files to upload to subversion… I was just going through the motions and clicking buttons (doh!). The first version of the plugin is up and I just updated it […]
-
pcwriter posted on the forum topic Adding menu items to the admin bar in the group How-To and Troubleshooting: 14 years, 3 months ago
Brilliant! I noticed though that $wpListPagesLabel appears twice in the globals, but $pageLinkDropdown isn’t there. So I switched it. Got to get to work right now but, when I get back home, I’ll try to do the same for the BP pages “Community” dropdown label. Then run the code through its paces on my install. […]
-
pcwriter posted on the forum topic Adding menu items to the admin bar in the group How-To and Troubleshooting: 14 years, 3 months ago
For those who want to play with the plugin – including its far out new features! (and a freesh new readme) – you can download from here:
http://nowrecovery.com/downloads/bp-wp-navbar0.1.1.zipEDIT: Ooh… just uploaded to subversion… should appear soon in the repo… fingers crossed… 😉
-
pcwriter posted on the forum topic Adding menu items to the admin bar in the group How-To and Troubleshooting: 14 years, 3 months ago
@hnla Oops, I had removed the page IDs from the plugin file, but the file I uploaded to pastebin was the one that has my page ID exclusions. Nice touch with the pageLinkDropdown idea! I take your hint and I’ll see if, following your example, I can figure out how to add that option to wp_nav_menus. […]
-
pcwriter posted on the forum topic Adding menu items to the admin bar in the group How-To and Troubleshooting: 14 years, 3 months ago
@hnla Wow, you really took this little project to heart, didn’t you? Thanks for investing so much time on it! 🙂 1. Didn’t realize the ul elements could cause problems but it works just fine without them (tested successfully on bp-default and child theme). 2. By wrapping wp_list_pages in ul elements, all pages aggregate under a […]
-
pcwriter posted on the forum topic Adding menu items to the admin bar in the group How-To and Troubleshooting: 14 years, 3 months ago
Thanks. I sometimes do tend to shoot first and ask questions later 🙂
-
pcwriter posted on the forum topic Adding menu items to the admin bar in the group How-To and Troubleshooting: 14 years, 3 months ago
And we’re off to a running start… I just submitted the plugin to the WP repository. Now we’ll have to wait…………… But if anyone wants to give it a whirl in the meantime, you can grab it from my site here: Updated version now available… yippee! Continue reading this thread to learn about the changes […]
-
pcwriter posted on the forum topic Adding menu items to the admin bar in the group How-To and Troubleshooting: 14 years, 3 months ago
If I understood the instructions correctly here: https://codex.buddypress.org/how-to-guides/checking-buddypress-is-active/
This, in loader.php, should check if BP is active: http://pastebin.com/dFt1h3pf
EDIT: I’ve added the loader.php file to the plugin and, eureka!, it still works.
-
pcwriter posted on the forum topic Adding menu items to the admin bar in the group How-To and Troubleshooting: 14 years, 3 months ago
@hnla Yes, I added the first bit ( ‘register_nav_menus’ ) before the pages function in my plugin file, but the second part ( ‘if(has_nav_menu’ ) throws up errors. So I’ll include that part of the code in the readme with instructions on where to paste it if running WP3.0. @r-a-y Your infinite wisdom will again come in […]
-
pcwriter posted on the forum topic Adding menu items to the admin bar in the group How-To and Troubleshooting: 14 years, 3 months ago
-
pcwriter posted on the forum topic Adding menu items to the admin bar in the group How-To and Troubleshooting: 14 years, 3 months ago
-
pcwriter posted on the forum topic Adding menu items to the admin bar in the group How-To and Troubleshooting: 14 years, 3 months ago
Just tried adding the global and the conditional as I think has been suggested ( 😉 ).
It’s here: http://pastebin.com/PAyLNmES
on lines 2, 7 & 65.Is this correct? With this code running, no dropdowns show anywhere. They should show, but only on the main site.
-
pcwriter posted on the forum topic Adding menu items to the admin bar in the group How-To and Troubleshooting: 14 years, 3 months ago
Hi guys… nap’s over. Thanks for continuing on this fun little ploblom! @hnla I’m trying to wrap the entire ul containing both the “Community” dropdown AND the WP pages dropdowns so that they ONLY appear on the main blog (yes, it’s multisite on WPMU2.9.2 and I just upgraded to BP1.2.5.2). @r-a-y Should the global be called before […]
-
pcwriter posted on the forum topic Adding menu items to the admin bar in the group How-To and Troubleshooting: 14 years, 3 months ago
Time for a nap with my cats. That always helps me think…
-
pcwriter posted on the forum topic Adding menu items to the admin bar in the group How-To and Troubleshooting: 14 years, 3 months ago
Hi @r-a-y Glad you could join in!
I just tried wrapping the ul in…
php if($current_blog == ‘1′):
…but that doesn’t want to work either. Both ideas make all BP and WP links disappear from the adminbar. The only thing left is the “My Account”, “My Blogs”, “Notifications” links.
-
pcwriter posted on the forum topic Adding menu items to the admin bar in the group How-To and Troubleshooting: 14 years, 3 months ago
@hnla I managed to fix the problem with WP page links in the adminbar in the backend by simply hardcoding the ones I don’t want:
But I still can’t get the darned “Community” dropdown off member blogs. Frustrating, but I’ll keep trying stuff… Come to think of it, BP1.3 will use WP pages for BP […]
-
pcwriter posted on the forum topic Adding menu items to the admin bar in the group How-To and Troubleshooting: 14 years, 3 months ago
…use a conditional to check whether the main site is being viewed…
That’s exactly what I’m trying to do but can’t seem to get it right 🙁
-
pcwriter posted on the forum topic Adding menu items to the admin bar in the group How-To and Troubleshooting: 14 years, 3 months ago
@paulhastings0 Thanks for the encouragement! But before I release this nifty code as a plugin, I gotta figure out how to stop the added links from showing up on member blogs, and in the WP dashboard. For ex, on member blogs, the “Community” dropdown is creating links to non-existent stuff like mainsite.com/sub-blog/forums. See a test blog […]
-
pcwriter posted on the forum topic How to hide a dashboard for non-admins? in the group How-To and Troubleshooting: 14 years, 3 months ago
Don’t know about the post, but here’s the plugin:
https://wordpress.org/extend/plugins/adminimize/ -
pcwriter posted on the forum topic Adding menu items to the admin bar in the group How-To and Troubleshooting: 14 years, 3 months ago
@hnla Thanks for the update for WP3.0! I’m still trying to find my way with basic php and am just now getting my head around functions, actions, hooks, et al. To whit, I discovered my code is causing the Community dropdown (contains all BP links) to appear in the adminbar in member sub-blogs. The WP pages […]
- Load More
@pcwriter
Active 1 month ago