Search Results for 'Hide Admin'
-
AuthorSearch Results
-
April 19, 2011 at 3:47 am #110538
Webweaver21
MemberThanks for your help. I did indeed have the setting “Hide admin bar for logged out users?:” set to YES. I switched it to NO and now the menu bar appears whether logged in or logged out.
The only problem is that new users still only see the “Register” and “Log In” menu items, even when they are logged in. This is puzzling because I can access the pages directly as a new user if I type in the URL.
The test user I’m working with is visible under the Users listing of my BP root blog so it doesn’t seem like that would be the problem. I even gave the test user Admin priviledges to make sure there were no access level issues. The only difference is that the test user was signed up after I activated multiuser mode.
The way that WP eMember handles membership is directly linked to the WP user database. The only thing that WP eMember does is allow a new user to be created and grants them appropriate priviledges dependent on their membership level. It does seem like there could be something happening with the sign-up
When I activated WP multiuser it transferred all my plugins to the network admin panel instead of the individual site. WP eMember is now a network-wide plugin, along with BP. Since WP eMember creates a WP user account, I’m guessing it’s now creating user accounts outside of the main site and thus the main site doesn’t recognize the user? Perhaps I should move a bunch of plugins back to the main site instead of the whole network? I don’t really need any plugins for the user blogs so they could all be on the main site and things might work better. I’m not quite sure how I’d manage moving the plugins though.
April 19, 2011 at 2:38 am #110536Boone Gorges
KeymasterThanks for the clarification. That makes a lot more sense.
Go to Dashboard > BuddyPress > General Settings, and look at the setting for “Hide admin bar for logged out users?:” Does it say Yes? Try switching it to No.
I’m guessing that users are not being added automatically to the BP root blog (a situation which would have been irrelevant in non-MS mode). It’s possible that either the setting I mention above, or something about the way that WP eMember handles membership in an MS network, is interfering with the way that the admin bar is conditionally displayed.
April 17, 2011 at 11:45 am #110456In reply to: Admin Profile page
Hugo Ashmore
ParticipantYou could always edit the template files for /members/single/ (in a child theme) and wrap default actions in something like :
`if( ‘1’ == bp_displayed_user_id() )`
As a check for the displayed user being ‘1’ or primary network super_admin then you’ll do stuff based on that such as unique markup for that user alone or use in a ‘if not’ manner to hide certain profile display elements.
That’s a basic approach you could extend that to be more flexible by checking a users role bp_displayed_user() checked against WP roles and capabilities for that user.
April 13, 2011 at 1:02 pm #110157In reply to: Hide Admin
explanetome
Member@dmanthony : cool. not sure that I ‘ve understood where I should enter 99 to hide admin … ?
merciApril 4, 2011 at 2:45 pm #109528In reply to: how to hide admin activity on Buddypress activity?
@mercime
Participantalso, from @sbrajesh, an alternative to the the Stealth Mode for Super Admins – Put this code in bp-custom.php and None of the site admin activity will be recorded nor will you appear in the Who is Online/ recently active members widget. –
`add_action(“plugins_loaded”,”bpdev_init_sm_mode”);
function bpdev_init_sm_mode(){
if(is_site_admin())
remove_action(“wp_head”,”bp_core_record_activity”); //id SM is on, remove the record activity hook
}`April 4, 2011 at 12:40 pm #109525In reply to: how to hide admin activity on Buddypress activity?
Virtuali
Participantwhen admin post on wordpress, post also appeared on BuddyPress activity, as admin’s activity.
how to prevent it? how to hide admin activity?
Try this plugin https://buddypress.org/community/groups/buddypress-block-activity-stream-types/
April 4, 2011 at 4:18 am #109502wilsontray
MemberI added it but I still dont see an easy way to set it as a default theme for new blogs… did they just hide it with the new 3.1 multsite or somthing? Or did I install it incorrectly as now I dont have my superadmin menu just a way to toggle between network and site admin on the top menu bar
April 3, 2011 at 6:05 pm #109474In reply to: Removing site name from admin bar
@mikey3d
ParticipantIf you are doing a research about (display:none), no one said it’s not the best way to use it. There is a purpose for using (display:none) to hide and it does not remove it.
April 2, 2011 at 6:37 pm #109389In reply to: Hide Admin
dmanthony
MemberI’m not sure why ’99’ works, but it does and I am most grateful for it. Thanks
April 2, 2011 at 10:17 am #109359goldbrick
Memberwould there be any code somewhere to hide pages unless an admin user?
March 24, 2011 at 2:14 pm #108625dodisabaruddin
MemberOuch..It’s a rude way. The code just killing the admin bar, and lefting some space.
March 18, 2011 at 2:30 am #108125In reply to: Add wp_admin_bar to a BP theme
pcwriter
ParticipantThanks, but I think your last post was in answer to the last poster’s question in this thread:
https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/show-bp-admin-bar-while-in-wp-admin-only-and-hide-it-in-the-rest-of-the-site/`remove_action( ‘admin_footer’, ‘bp_core_admin_bar’ );` effectively removes the adminbar from the backend, but that’s not what I’m trying to achieve.
I’m trying to replace the bp-adminbar with the WordPress adminbar in a Buddypress theme.March 18, 2011 at 1:30 am #108119Virtuali
ParticipantTry in wp-config.php:
`define ( ‘BP_DISABLE_ADMIN_BAR’, true );`
March 18, 2011 at 1:25 am #108118imjscn
Participant@pcwriter , can I use your code to remove adminbar from dashboard? I tried the following 3 modifications, neither of them works:
`if( is_admin())
remove_action( ‘wp_footer’, ‘bp_core_admin_bar’, 8 );`
or
`if( is_admin())
remove_action( ‘admin_footer’, ‘bp_core_admin_bar’, 8 );`
or
`add_action(‘bp_loaded’, ‘remove_adminbar_from_dashboard );`March 18, 2011 at 12:29 am #108114nermion
MemberHi how could I do the same for wp-admin area. Also I’d like to keep it on the rest of the site but remove it from the admin.
March 16, 2011 at 9:33 pm #108015pcwriter
ParticipantAdd the following snippet to your theme’s functions.php file:
`function remove_adminbar_from_mainsite() {
if(‘BP_ROOT_BLOG’)
remove_action( ‘wp_footer’, ‘bp_core_admin_bar’, 8 );
}
add_action(‘wp’, ‘remove_adminbar_from_mainsite’);`March 16, 2011 at 1:41 pm #107973ri-kun
Participantplease help
March 14, 2011 at 8:16 pm #107778ri-kun
Participantplease help
March 7, 2011 at 5:14 pm #107083mrwweb
MemberI’m not a rewrite expert or anything, but here’s the HTTP headers associated with the problem. I’ve replaced my domain with blah.com.
A couple strange things that I see but can’t really explain. When requesting /forums, it looks like a 302 redirect is returned to the homepage (so maybe this is a rewrite issue). Going to “members,” which does work, returns the expected 200 code.
Also, notice the really weird request to /contact/ after all of this is done. Is that normal? It’s just a random page on my site. It had previously been a different page which I tried deleting, so it was replaced by /contact.
Hope this is useful to someone.
`http://blah.com/forums
GET /forums HTTP/1.1
Host: blah.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.14) Gecko/20110218 Firefox/3.6.14
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Cookie: __utma=67904087.2104826472.1298240908.1299086709.1299438067.4; __utmz=67904087.1299039613.2.2.utmcsr=blah.com|utmccn=(referral)|utmcmd=referral|utmcct=/wp-admin/; _jsuid=1445640004349204205; km_ai=xZrz-rlq1-TnxIBS08C09MbmgAM; km_uq=; km_lv=x; wp-settings-time-6=1299517360; wp-settings-6=m6%3Do%26m11%3Dc%26m10%3Do%26m7%3Dc%26m1%3Do%26m5%3Do%26m2%3Dc%26hidetb%3D1%26editor%3Dtinymce%26m8%3Dc%26m9%3Dc; bp-activity-oldestpage=1; wordpress_test_cookie=WP+Cookie+check; wordpress_logged_in_541ce9876c2efbba8d8e77491d2f2b82=mrwweb%7C1299690125%7C336801dfabc56c0d1140b4bafdd989aa
If-Modified-Since: Mon, 07 Mar 2011 17:07:50 GMTHTTP/1.1 302 Found
Server: nginx/0.7.65
Date: Mon, 07 Mar 2011 17:08:59 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Keep-Alive: timeout=10
X-Pingback: http://blah.com/xmlrpc.php
Expires: Wed, 11 Jan 1984 05:00:00 GMT
Last-Modified: Mon, 07 Mar 2011 17:08:59 GMT
Cache-Control: no-cache, must-revalidate, max-age=0
Pragma: no-cache
X-Powered-By: W3 Total Cache/0.9.1.3
Set-Cookie: bp-message=deleted; expires=Sun, 07-Mar-2010 17:08:58 GMT; path=/
Set-Cookie: bp-message-type=deleted; expires=Sun, 07-Mar-2010 17:08:58 GMT; path=/
Location: http://blah.com
Vary: User-Agent,Accept-Encoding
Content-Encoding: gzip
Content-Length: 20
X-Type: default
http://blah.com/GET / HTTP/1.1
Host: blah.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.14) Gecko/20110218 Firefox/3.6.14
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Cookie: __utma=67904087.2104826472.1298240908.1299086709.1299438067.4; __utmz=67904087.1299039613.2.2.utmcsr=blah.com|utmccn=(referral)|utmcmd=referral|utmcct=/wp-admin/; _jsuid=1445640004349204205; km_ai=xZrz-rlq1-TnxIBS08C09MbmgAM; km_uq=; km_lv=x; wp-settings-time-6=1299517360; wp-settings-6=m6%3Do%26m11%3Dc%26m10%3Do%26m7%3Dc%26m1%3Do%26m5%3Do%26m2%3Dc%26hidetb%3D1%26editor%3Dtinymce%26m8%3Dc%26m9%3Dc; bp-activity-oldestpage=1; wordpress_test_cookie=WP+Cookie+check; wordpress_logged_in_541ce9876c2efbba8d8e77491d2f2b82=mrwweb%7C1299690125%7C336801dfabc56c0d1140b4bafdd989aa
If-Modified-Since: Mon, 07 Mar 2011 17:08:42 GMTHTTP/1.1 200 OK
Server: nginx/0.7.65
Date: Mon, 07 Mar 2011 17:08:59 GMT
Content-Type: text/html; charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
Keep-Alive: timeout=10
X-Pingback: http://blah.com/xmlrpc.php
Expires: Wed, 11 Jan 1984 05:00:00 GMT
Last-Modified: Mon, 07 Mar 2011 17:08:59 GMT
Pragma: no-cache
X-Powered-By: W3 Total Cache/0.9.1.3
Set-Cookie: bp-message=deleted; expires=Sun, 07-Mar-2010 17:08:58 GMT; path=/
Set-Cookie: bp-message-type=deleted; expires=Sun, 07-Mar-2010 17:08:58 GMT; path=/
Vary: User-Agent,Accept-Encoding
X-Cacheable: NO:Passed
Cache-Control: max-age=0, must-revalidate
X-Varnish: 1456974085
Age: 0
Via: 1.1 varnish
X-Cache: PASS
X-Type: varnish-short
Content-Encoding: gzip
http://blah.com/contact/GET /contact/ HTTP/1.1
Host: blah.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.14) Gecko/20110218 Firefox/3.6.14
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: http://blah.com/
X-Moz: prefetch
Cookie: __utma=67904087.2104826472.1298240908.1299086709.1299438067.4; __utmz=67904087.1299039613.2.2.utmcsr=blah.com|utmccn=(referral)|utmcmd=referral|utmcct=/wp-admin/; _jsuid=1445640004349204205; km_ai=xZrz-rlq1-TnxIBS08C09MbmgAM; km_uq=; km_lv=x; wp-settings-time-6=1299517360; wp-settings-6=m6%3Do%26m11%3Dc%26m10%3Do%26m7%3Dc%26m1%3Do%26m5%3Do%26m2%3Dc%26hidetb%3D1%26editor%3Dtinymce%26m8%3Dc%26m9%3Dc; bp-activity-oldestpage=1; wordpress_test_cookie=WP+Cookie+check; wordpress_logged_in_541ce9876c2efbba8d8e77491d2f2b82=mrwweb%7C1299690125%7C336801dfabc56c0d1140b4bafdd989aaHTTP/1.1 200 OK
Server: nginx/0.7.65
Date: Mon, 07 Mar 2011 17:09:00 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Keep-Alive: timeout=10
X-Pingback: http://blah.com/xmlrpc.php
Expires: Wed, 11 Jan 1984 05:00:00 GMT
Last-Modified: Mon, 07 Mar 2011 17:09:00 GMT
Cache-Control: no-cache, must-revalidate, max-age=0
Pragma: no-cache
X-Powered-By: W3 Total Cache/0.9.1.3
Set-Cookie: bp-message=deleted; expires=Sun, 07-Mar-2010 17:08:59 GMT; path=/
Set-Cookie: bp-message-type=deleted; expires=Sun, 07-Mar-2010 17:08:59 GMT; path=/
Vary: User-Agent,Accept-Encoding
Content-Encoding: gzip
Content-Length: 3081
X-Type: default`February 23, 2011 at 10:28 am #106030In reply to: Hide Admin
February 15, 2011 at 3:00 am #105438In reply to: Hide Notification Settings
jordynn
MemberThanks @pcwriter! (and @mariochampion!)
That piece of code solved my issue! It has removed the “notifications” subnav from the “My Account” adminbar menu too.

Edit: It seems to only remove the “Notifications” subnav in the “My Account” adminbar menu when I’m looking at the …/members/admin/settings/ page
February 15, 2011 at 12:06 am #105427In reply to: Hide Notification Settings
pcwriter
ParticipantOK, I’m hoping someone else can chime in here with a way to remove the “Notifications” subnav item from the “My Account” adminbar menu, ‘cuz that’s one I haven’t been able to figure out
February 14, 2011 at 11:04 pm #105423In reply to: Hide Notification Settings
jordynn
MemberThanks for your quick reply!
This worked perfectly to remove the ‘Notifications’ link in the admin bar. However, I’d like to be able to remove the ‘Notifications’ tab where the member edits their profile and settings.
This is a better screen shot: http://jordynnmackenzie.com/koperscastle/wp-content/uploads/2011/02/screenshot_bpissue2_feb142011.jpg
I want to hide the tab that is marked in red.February 14, 2011 at 10:02 pm #105419In reply to: Hide Notification Settings
pcwriter
ParticipantAdd the following remove_action to your functions.php or bp-custom.php file:
remove_action( ‘bp_adminbar_menus’, ‘bp_adminbar_notifications_menu’, 8 );
February 8, 2011 at 10:56 am #104908In reply to: buddypress.org theme
pcwriter
ParticipantIt’s a custom theme designed specifically for bp.org. You can find several good themes here: https://buddypress.org/extend/themes/
Or Google ‘buddypress themes’ for more.You might also like my BuddyLite theme. It comes with the following basic customization options:
Maximum & Minimum Theme Width
Header Height
Theme Background Color, Image, Image Repeat & Image Behavior
Show Home Page Title and Content
Community Dropdown Menu Label
Integrate BP-Adminbar with Main Menu
Select ‘Global Search’ or Standard Buddypress Search
Search Bar in Header or in Sidebar
Sidebar Left, Right or Left and Right
Main & Secondary Sidebar Width
Hide Sidebar Login Form
Custom CSSThere’s also a premium version – BuddyBuilder – that comes with a whole heck of a lot more options so you can actually design your own theme by simply clicking your mouse. See them both at http://BuddyLite.com
-
AuthorSearch Results