Search Results for 'Hide Admin'
-
AuthorSearch Results
-
August 14, 2010 at 5:04 pm #89094
In reply to: New plugin: Add All Nav Links to BP Adminbar
pcwriterParticipant@hnla Hiya teach!
Progress report here on the next update for BP-WP-Navbar: an Option Configuration Admin Panel
I’ve managed to get my head around creating an admin panel under Settings in the WP backend with the basic hide/show function labels/radio buttons.
Code here: http://pastebin.com/F29UtJFhTables are created in the database but I can’t figure out what I need to change in the main file (bp-wp-navbar.php) to save the option values to the database so they take effect.
So far, so good… but I’m stuck. Would you happen to have any clues or guidance on this bit?
August 14, 2010 at 2:01 pm #89073In reply to: New plugin: Add All Nav Links to BP Adminbar
pcwriterParticipantI may have found some clues here:
http://adambrown.info/p/wp_hooks/hook/wp_get_nav_menus?version=3.0&file=wp-includes/nav-menu.phpAnd from here:
http://svn.automattic.com/wordpress/tags/3.0/wp-includes/nav-menu.php
… there are these nifty tidbits:function wp_get_nav_menus( $args = array() ) {
$defaults = array( ‘hide_empty’ => false, ‘orderby’ => ‘none’ );
$args = wp_parse_args( $args, $defaults );
return apply_filters( ‘wp_get_nav_menus’, get_terms( ‘nav_menu’, $args), $args );
}function get_registered_nav_menus() {
global $_wp_registered_nav_menus;
if ( isset( $_wp_registered_nav_menus ) )
return $_wp_registered_nav_menus;
return array();
}Looks like these functions should call whatever nav menus are set in the backend in 3.0 but, as I’m still VERY wet behind the ears when it comes to understanding what functions can actually do…
August 13, 2010 at 2:44 pm #88978In reply to: How to hide a dashboard for non-admins?
Beck BParticipant@jonnylons, are you looking for something that lets users write blog posts for their sites? Somebody pointed me to a few good front-end blog post plugins. If that’s what you’re looking for, say the word, and I’ll dig ’em up.
Or, now that I look more closely at the link @footybible offered, sweet. And he mentioned the front-end approach already. I have no current need of this solution myself, as I’m not running multisite, but I am definitely bookmarking that guide in case it comes up in the future….
So, sounds like it just depends on how much control your users need and how much time you want to invest in setting that up.
August 13, 2010 at 1:57 pm #88975In reply to: How to hide a dashboard for non-admins?
footybibleParticipant@jonnylons I had a similar goal to you. I ended up instead creating a highly customised, edited backend. Whether you are interested in doing this completely or maybe just checking out some of the things I learnt, you may want to check out my guide to the matter here:
http://buddydress.com/forums/topic/customising-the-user-backend-and-default-blog-format-tutorial
August 13, 2010 at 1:46 pm #88972In reply to: How to hide a dashboard for non-admins?
jonnylonsParticipant@pcwriter and @Beck_B thanks! I am trying to find a way to add something to the adminbar of Buddypress that would allow members, when logged in, to write for their sites. At the same time, I don’t want the backend of sites exposed to members who are not writing for that site. Can’t seem to find a simple solution. Maybe these work.
August 12, 2010 at 12:02 am #88795In reply to: Adding menu items to the admin bar
pcwriterParticipant@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 with a whole bunch of cool new stuff. Code here: http://pastebin.com/Qquwe9pH
Thanks to your examples, I created 3 new custom configuration options: in addition to hide/show the main nav, users can now choose to hide/show the site name/logo, the Login/Signup links, and the Visit Random dropdown. I’ve also completely revamped the readme with a detailed FAQ, and added a fully commented stylesheet with the rules I use for my site to help get folks started on customizing their new admin/navbar.
Thanks a whole bunch for your invaluable help and instruction on this project! I can now say I’ve popped my plugin cherry!
Now we just have to wait for subversion to update………
August 11, 2010 at 10:38 am #88741In reply to: Adding menu items to the admin bar
Hugo AshmoreParticipantGood spot, that’s why second eyes are vital, also the $hideMainNav doesn’t need to be globally scoped as the function sits outside pages() and the variable is already in the main page scope so no global required for it.
Not sure how the process works for uploading plugins but would guess it hasn’t been approved yet?If I have a minute I’ll add the config variable for ‘Community’ link then you can run things through their paces when your back.
August 11, 2010 at 7:53 am #88728In reply to: Adding menu items to the admin bar
Hugo AshmoreParticipantnew adjustments:
typo corrected;Config section created at top of file – labels all set from that point by user
Hide main nav links function created to add embedded styles via add_action dependent on user setting $hideMainNav = true
Hiding the main nave through CSS isn’t really the best option as it leaves the markup there, it would be better to remove altogether you may want to change default to true(hide)
This is somewhat of a stopgap solution to user parameters.
As always check over thoroughly for any other typos I may have missed
August 10, 2010 at 8:09 am #88615In reply to: Adding menu items to the admin bar
Hugo AshmoreParticipantI’ve had to do a fairly extensive rewrite on the function for a number of reasons:
1/ There was a significant degree of malfomed ul child nesting which prevents drop down aspects working correctly primarily I’ve removed the opening and closing UL elements as they are not required and cause issues.
2/ Not sure how the wp_list_pages was intended to work but with the parameter ‘title_li’ declared as empty you correctly remove the wrapping elements but would need to add UL elements manually wrapping the function call for the dropdown to function correctly.
3/ Added back in the wp_nav_menu function calls but wrapped them in a check to see if WP 3.0 is running i.e are the new menu available if not hide altogether.
Also added a reverse check to remove the wp_list_pages function if using the new menus as there is little point in both and the new menu system serves better.
4/ Changed region and menu top link names to ‘pages’ but this area is a fundamental issue as it cant be known what the user sets as menu names, ideally one shouldn’t hard code values but retrieve them from the admin menu area, but this proves far too hard to work out (asked a question on WP support but haven’t had a reply and I don’t expect one – sadly there is little codex documentation of any depth on the new menus.)
This issue applies to the wp_list_pages as well as you can’t really pass any values for ‘include’ and ‘exclude’ as these values can’t be known so you ought to remove those values you have hardcoded (I have left them in).
If I can get some guidance on how to fetch values from the menu backend view such as menu names then it will be possible to make the menus far more effective but have spent quite a while trawling through the core WP files for nav-menu and it’s not obvious and too time consuming.
I have copied the revised code to this pastebin page, give it a check over, but don’t assume I have things all correct, run it as plugin copy 2
August 8, 2010 at 1:35 am #88398In reply to: How to hide a dashboard for non-admins?
Beck BParticipantThere’s also WP Hide Dashboard: https://wordpress.org/extend/plugins/wp-hide-dashboard/
August 8, 2010 at 12:00 am #88390In reply to: How to hide a dashboard for non-admins?
pcwriterParticipantDon’t know about the post, but here’s the plugin:
https://wordpress.org/extend/plugins/adminimize/August 7, 2010 at 10:43 pm #88388In reply to: How to hide a dashboard for non-admins?
jonnylonsParticipantAnd that old post is located where exactly? Cmon people – share!!!
August 7, 2010 at 5:17 am #88317In reply to: Remove “Visit” from the admin bar
Beck BParticipantI was going to do the remove thing, too–so thank you all for the tips–but then I decided I might as well just hide the admin bar from logged out users, as that was my bigger concern with the random visit.anyway. (I don’t think it’ll be especially useful, and our groups are mainly private, but I don’t have any other plans for the top right portion of the screen, so…might as well leave it for now.)
August 6, 2010 at 6:12 am #88203In reply to: Make Groups Visibile but Invite Only
DriftlessParticipant@intimez – good info – thanks.
I also came across this code: https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/removing-members-ability-invite-others-to-a-group/#post-48304
Which promises to hide the “invite friend” links (haven’t had success yet…)–
Or you can create a child theme that removes the links from your template… Though really, I agree the system should be more set up like this:
Public — anything goes
Private — only mods and admins can INVITE (not just approve)
Hidden — same as private – only others can’t seeCheers
August 6, 2010 at 6:05 am #88202In reply to: Exclude members from the Members Loop?
TrivikramaMemberHi, I too want a solution for the same problem just like you. I want to hide admin and sitemanager from the members list. I was searching everywhere for it. If you know something about it just send a message to me to my profile. Waiting for your reply…..Plz….
August 4, 2010 at 1:48 pm #87968In reply to: How to add “Signup” beside “Login” on Admin bar?
imjscnParticipantIn general settings, “Hide admin bar for logged out users? ” , I select “No” , and when I log out, I can see the Admin Bar, but there’s no “SignUp”
???August 3, 2010 at 4:18 pm #87870In reply to: How to hide a dashboard for non-admins?
JackTheKnifeParticipantOk, I found an old post with good plug in to Adminimize this
August 1, 2010 at 1:20 am #87623In reply to: Random member – security query
intimezParticipantTry this:
Dashboard – Buddypress – General Settings
Hide admin bar for logged out users?: YESJuly 22, 2010 at 8:13 am #86599In reply to: Hide/Remove dashboard from normal members
Sofian J. AnomParticipantTry this plugin: https://wordpress.org/extend/plugins/adminimize/
July 22, 2010 at 6:57 am #86595In reply to: Hide/Remove dashboard from normal members
B.ParticipantLooks like I spoke to soon. Peters Login Redirect Plugin (https://wordpress.org/extend/plugins/peters-login-redirect/) takes advantage of the filter added in 2.6.2. You can read an article about the plugin here http://www.theblog.ca/wplogin-redirect. If anyone else has other ideas let me know. For now I’m just going to send all subscribers to edit profile page upon login from the wp-admin section.
July 20, 2010 at 4:52 pm #86314Vera SchaferParticipantI was having a hard time trying to find the .htaccess file on my iMac, until I figured out that it is a hidden file (I’m working on MAMP Pro). If that is your case (Mac) , you have to unhide it.
July 17, 2010 at 3:43 pm #86024In reply to: Admin Bar is missing / dissapeared
@mercimeParticipant1. Did you change settings like BuddyPress > General Settings – Hide for logged out users?
2. Did you change your theme? Did you check if your new theme had wp_footer() in footer.php?July 15, 2010 at 6:29 am #85700In reply to: Forum create only available to certain members
AntonParticipantWould this work to hide the “Create a Forum”
if(!is_admin || !is_mod)
{
blah blah hide create forum form or button
}July 15, 2010 at 6:10 am #85698In reply to: Forum create only available to certain members
AntonParticipantThanks @nit3watch
Wouldn’t it be simple to hide the option “create a forum” from members so that only admins and moderators can create forums? What is the code to check? Is it is_group_admin or is_group_mod?
July 12, 2010 at 4:43 pm #85275In reply to: Remove items from BP Menu
modemlooperModeratoryou could hide #bp-adminbar-notifications-menu via CSS display:none
-
AuthorSearch Results