Search Results for 'Hide Admin'
-
AuthorSearch Results
-
March 24, 2011 at 2:14 pm #108625dodisabaruddinMember
Ouch..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
pcwriterParticipantThanks, 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 #108119VirtualiParticipantTry in wp-config.php:
`define ( ‘BP_DISABLE_ADMIN_BAR’, true );`
March 18, 2011 at 1:25 am #108118imjscnParticipant@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 #108114nermionMemberHi 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 #108015pcwriterParticipantAdd 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-kunParticipantplease help
March 14, 2011 at 8:16 pm #107778ri-kunParticipantplease help
March 7, 2011 at 5:14 pm #107083mrwwebMemberI’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
jordynnMemberThanks @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
pcwriterParticipantOK, 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
jordynnMemberThanks 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
pcwriterParticipantAdd 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
pcwriterParticipantIt’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
February 7, 2011 at 8:24 pm #104856In reply to: How to hide some profile fields from public
aljukMemberHmm, that’s strange. It’s working for me exactly as advertised.
What’s the history of your theme? Is it default, child, custom etc?Maybe cookies…
In the Admin, set “let user decide” for some fields.
Log out.
Clear your cookies, make sure to delete all cookies from the domain, and from any test domains, and any local domains (eg. mamp wamp etc. if you’re using that) that you’re developing the site on.
Log in as a subscriber level user.
What result now?February 7, 2011 at 7:06 pm #104844In reply to: How to hide some profile fields from public
PhilippParticipant@aljuk Thanks a lot for you answer. But I also tried that and I logged out as admin and signed in as a normal user. Still the same.
Another idear?Thanks a lot for the link. I’ll take a look to it!
All the best!
February 7, 2011 at 6:00 pm #104829In reply to: How to hide some profile fields from public
aljukMember“If I activate it and set a field (e.g. birthdate) to “users only” – nothing happens. There are also no settings for the users in the frontend of buddypress.”
If you set it to “users only” in Admin, you’re not giving your user the choice, and that’s why there is no selector in the front end. The user will only get the selector if you choose “let user decide”.
February 7, 2011 at 5:57 pm #104828In reply to: How to hide some profile fields from public
aljukMember@philippmuenchen – it works fine. I’m guessing you’re trying to test it while you’re logged in as Admin? The privacy controls don’t apply to Admin. Admin can see everything. Log in as a regular user and then test.
Age calculation: http://code.hyperspatial.com/all-code/buddypress-code/buddypress-age/
@noizeburger – it works for all fieldgroups, not just Base.
February 6, 2011 at 10:26 pm #104776In reply to: Hide Admin
mathiasjespersenMember@Symm2112, thanks a lot for your ’99’ status trick – it most definitely hides the user from everything in BP, just what is was looking for.
January 29, 2011 at 5:47 pm #104192rossagrantParticipantHi mate,
I worked this out in the end.If you go into your buddypress file on your ftp, then go into the Bp forums file, you will see something called bp-forums-templatetags.php.
You are looking for references like these:
‘ function bp_get_the_topic_admin_links( $args = ” ) {
global $bp, $forum_template;$defaults = array(
‘seperator’ => ‘|’
);$r = wp_parse_args( $args, $defaults );
extract( $r, EXTR_SKIP );$links[] = ‘‘ . __( ‘Edit Topic’, ‘buddypress’ ) . ‘‘;
if ( $bp->is_item_admin || $bp->is_item_mod || is_super_admin() ) {‘
Look at the last line of that code.
To only allow a admin to see the edit / delete links delete the other permissions as appropriate.
Hope that helps!
January 24, 2011 at 6:55 pm #103752In reply to: Hide / Remove Page from Top-Menue
modemlooperModeratorThere are exclude page plugins for this but the next version of BP includes custom drop down menus that you can adjust via admin.
January 19, 2011 at 3:16 pm #103347In reply to: Ajax chat without admin bar
cancelthisaccountplsParticipantOkay, just figured out how to get the chat box to display and hide the admin bar.
I had my admin bar hidden using the display: none tag. I undid that and went into adminbar.css and gave the adminbar a z-index of 1 or 2. Anything more than that and the admin bar would show.
January 19, 2011 at 3:13 pm #103346In reply to: How to move adminbar links to sidebar?
calvinhsuParticipantI think I’ve find an easy way to provide the effect you mentioned. It’s rather a css trick than a php-code way. Below is what I’ve find during this process:
First, I find the function
bp_adminbar_notifications_menu()
inbp-core-adminbar.php
, but it only works when adminbar is enable, and it simply lists out all notifications rather than the “mouse-over” effect we want. It seemsadmin-bar.js
is also required, which is totally beyond me.So I realized that since it already requires adminbar to be enable in the first place, why are we bothering to duplicate this item, especially in so complex a way?
We just need to hide all other items in adminbar, and re-position the notification menu.
So finally I come up with this:
/** Play with admin-bar to grab notification menu */ #wp-admin-bar { position: absolute; } #wp-admin-bar .padder { background: none; } #wp-admin-bar .padder #admin-bar-logo, #wp-admin-bar .padder ul #bp-adminbar-account-menu, #wp-admin-bar .padder ul #bp-adminbar-blogs-menu, #wp-admin-bar .padder ul #bp-adminbar-thisblog-menu, #wp-admin-bar .padder ul #bp-adminbar-authors-menu, #wp-admin-bar .padder ul #bp-adminbar-visitrandom-menu { display: none; }
Now we have notification menu there, and it’s no longer a “always-in-the-front” item. What remains to be done is further defining the style of this little baby, its position, background color, font color, etc.
Hope this would do some help.
January 9, 2011 at 4:41 pm #102382dslax27MemberFYI: I put a more generic posting here (https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/how-to-hide-content-related-to-members-who-are-registered-but-not-activated/#post-85519) if the admins think this is too off-topic
-
AuthorSearch Results