Search Results for 'change buddypress menu'
-
AuthorSearch Results
-
May 4, 2011 at 3:13 pm #111575
tsankuanglee
MemberWonderful, Tom. A minor tweak to your solution:
The original remove_action may not always work
remove_action( ‘bp_adminbar_menus’, ‘bp_adminbar_login_menu’, 2 );
since we can’t guarantee that buddypress plugin is parsed before this fix plugin. A slight modification I made works for me:I change
add_action( 'bp_adminbar_menus', 'custom_bp_adminbar_login_menu', 2 );
to
add_action( 'bp_adminbar_menus', 'custom_bp_adminbar_login_menu', 1 );
so it will run before the original bp_adminbar_login_menu runs, but after the plugins are parsed and hooks are registered, and then in custom_bp_adminbar_login_menu, I added
remove_action( 'bp_adminbar_menus', 'bp_adminbar_login_menu', 2 );Therefore, the whole thing looks like:
function custom_bp_adminbar_login_menu() { global $bp; remove_action( 'bp_adminbar_menus', 'bp_adminbar_login_menu', 2 ); if ( is_user_logged_in() ) return false; $redirecturl = $bp->root_domain . '/wp-login.php?redirect_to=' . urlencode( $bp->root_domain ) . esc_url( $_SERVER ); echo ' ' . __( 'Log In', 'buddypress' ) . ' '; // Show “Sign Up” link if user registrations are allowed if ( bp_get_signup_allowed() ) { echo ' ' . __( 'Sign Up', 'buddypress' ) . ' '; } } add_action( 'bp_adminbar_menus', 'custom_bp_adminbar_login_menu', 1 );I agree with fbutera101, though — I am having a hard time imagining a use case where users want to leave where they already are after logging in.
May 1, 2011 at 9:25 am #111411In reply to: Removing Favorites
mrbin
MemberJust placed your code into my functions file and the menu item wasn’t removed:
bp_core_remove_subnav_item( $bp->activity->slug, ‘favorites’ );Would anything have change in buddypress to cause this?
April 23, 2011 at 7:47 am #110788JamieWade
MemberI did this to my website and it works a treat. This applies if you are using the default BP theme, or a child theme. You will need to go to <b>wp-content/plugins/buddypress/bp-themes/bp-default/header.php</b>
At approximately line 47, you will see the opening tags
<div id="header">Look to about line 52, and you will see the code for the home tab. Replace the code with this<li class="selected"> <a href="yoursite.com/activity" title=""></a> </li><b> Remember to add http: // before the yoursite.com/activity, for some reason it doesn’t show when I type the full URL in here.</b>
If you look below that, you should see the code for the activity tab, delete this code. You should now have removed the activity tab from the menu, and the Home tab has now been changed so it directs to the activity stream. Any problems message me.
April 14, 2011 at 7:10 pm #110249In reply to: [Resolved] – How to get two separate menus
rickgoz
ParticipantHahaha nice one!
Thanks a lot it’s working! So now, even there is a buddypress’ update it will work or did I change buddypress’ core?
Many thanks
April 14, 2011 at 8:56 am #110212In reply to: New theme – Buddypress UX
nit3watch
ParticipantI still need to clean the theme up a bit more, left some of my personal-project stuff in there >.<
@treis if you have a look at the Buddybar widget, I have simply copied most of whats in the widget to the static-sidebar. Personally I think its a bit too much going on hence I focused it on the ‘user’.
I have added modemloopers ‘drop-down menu’ functionality so if you would like, you can simply the main navigation by having ‘community’ and groups, members, activity all under the ‘community tab’. Im just ganna finish up some things and i will upload it.
I will post some css you can use to modify the header..
I would advise not working off it as of yet, once I have a ‘stable’ version I will let you know. If you make any changes, they will be over-written when you upgrade the theme. I will try get round to it later on today. I modified the them in a day and released it the same day hence I over-looked some things.
April 4, 2011 at 11:06 pm #109566@mercime
Participant== i got the pages to show in the footer now by creating the custom menu ==
Yes, you’re supposed to create the custom menu in Appearance > Menus as I mentioned in posts above
https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/cant-get-pages-to-display-in-footer-unless-logged-in-as-admin/?topic_page=2&num=15#post-94793
https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/cant-get-pages-to-display-in-footer-unless-logged-in-as-admin/?topic_page=2&num=15#post-94911== but the pages still show a 404 error unless i am logged in as admin. are pages hidden or restricted in buddy press until logged in. ==
Looks like there was a redirect for a split second to sportzmoney.xn.com or something of that sort. Where did you download the bp-columns theme? Should be from WP repo.
Change theme to bp-default to check if Pages are still redirecting to 404
April 1, 2011 at 8:27 am #109293In reply to: CSS Works in FireFox but not in Chrome, Opera and IE
steliodj
MemberHi one more time mercime…i notice something weird, when i’m changing something in css(this happens only to those pages that i have the issue) and inspect with firebug i can see the change is there, but when i use inspect element from chrom or from opera i don’t see the change and it evens grabs css styling information from another line of the stylesheet.
For example this is what i get(this correct) in firefox when inspecting a specific element:
`
div#content form#members-directory-form.dir-form div.item-list-tabs {
background: url(“../../themes/theme/images/members_directory_menu_bg.png”) no-repeat scroll left top transparent;
border: medium none;
clear: both;
overflow: hidden;
padding-bottom: 17px;
padding-top: 15px;
width: 102%;
}
`
And this is what what i get when inspecting the same element in chrome:`
div.item-list-tabs {
border: none;
overflow: hidden;
clear: both;
background: url(../../themes/theme/images/buddypress_nav_bg.png) top left no-repeat;
padding-top: 15px;
width: 102%;
padding-bottom: 17px;
}
`if i remove `form#members-directory-form.dir-form` and keep only `div#content div.item-list-tabs` from my style it works also in chrome but it breaks something else that needs to use another background image and has the same id `div.item-list-tabs`
Please advice
March 27, 2011 at 1:57 am #108815In reply to: Changing default tab in the settings menu
@mercime
Participant@rogercoathup https://trac.buddypress.org/browser/tags/1.2.8/bp-core/bp-core-settings.php
the bad way – change `’position’ => 20, to ‘position’ => 10,` and vise versa in core lines 21 and 22

or an easy way
`remove_action( ‘bp_setup_nav’, ‘bp_core_add_settings_nav’ );
add_action( ‘bp_setup_nav’, ‘bp_core_roger_settings_nav’ );
funtion bp_core_roger_settings_nav() {
global $bp;
// the stuff
}looking for the best way
March 26, 2011 at 9:01 am #108781In reply to: bp_adminbar_notifications_menu
Boone Gorges
KeymasterAdding bp_adminbar_notifications_menu() in your header will probably work (as long as it’s nested inside of a `
- ` element), but you will need to modify the styles. You can go in one of two directions.
One, you can try to bring over the styles from bp-default/_inc/css/adminbar.css. You can import that entire stylesheet into your child theme with this line at the top of your child theme’s style.css:
`@`import url( ../../plugins/buddypress/bp-themes/bp-default/_inc/css/adminbar.css );
(See https://codex.buddypress.org/theme-development/building-a-buddypress-child-theme/ for more info on BP child themes.) The downside of doing this is that, depending on your theme and the element in which you’re trying to nest the notifications menu, you’re going to have a really hard time getting it to look good with your theme.The other method is to skip bp_adminbar_notifications_menu() altogether. Instead, copy the entirety of that function from bp-core/bp-core-adminbar.php into functions.php of you child theme. After you’ve copied it, change the name of the copied function (to something like wwday3_adminbar_notifications_menu() – it doesn’t matter, you just have to avoid duplicate function names). Then – and here’s what will make your life easier – change the markup, and in particular the CSS selectors (classes and ids) being produced by the function, so that it matches the CSS selectors in the existing dropdown menus you’re trying to integrate with. Then, in header.php of your child theme (or wherever you’re currently trying to call bp_adminbar_notifications_menu()), make sure to call this new function instead.
March 24, 2011 at 6:32 pm #108642Boone Gorges
KeymasterHi Donald,
It sounds like the plugin hasn’t been updated for WP 3.1, which introduced the new Network Admin (where the BuddyPress dropdown is now found).
Follow the instructions in this post https://buddypress.org/community/groups/buddypress-group-email-subscription/forum/topic/change-admin_menu-to-network_admin_menu-for-wp-3-1-and-bp-1-2-8/ except do it on the file buddypress-auto-group-join/php/bp-auto-group-join-init.php. That should do the trick.
March 24, 2011 at 2:27 pm #108627In reply to: Change Menu Names
danbpfr
ParticipantMarch 22, 2011 at 8:03 am #108405In reply to: Buddypress upgrade 1.1.2 to 1.2.8
@mercime
Participant== Buddypress was not there nor was the section to configure it. ==
The Super/Network Admin has a separate new panel in WP 3.1. Click on Network Admin link in upper right hand corner and you’ll find the BuddyPress button in admin menu.
== OK but the site was totaly broken ==
Deactivate all plugins and change theme to default WP theme. Know that many BP plugins and themes from way back 1.1.2 are not compatible with current WP/BP versions.
== Do I need to upgrade a number of times ==
Nope. Just upload BP 1.2.8 and WP 3.1 manually i.e. via FTP or cpanel, etc. Access wp-admin, then go through the upgrade process. Btw, curious why not start from scratch?
March 13, 2011 at 12:23 pm #107680In reply to: BP plugins multisite menu fix?
Chuscastilla
Member@DJPaul
So, the plugin “WELCOME PACK”, written for YOU, and not working for this reason is not well-written?
I’ve read about the solution in other forums of changing “admin_menu” to “network_admin_menu” to make reappear the plugin menu, but it’s only there. You can’t change settings.
I tried this solution changing “options.php” to “../options.php” and the error changes, WordPress says that there’s no options file.
Are you reading this?: https://buddypress.org/community/groups/welcome-pack/forum/topic/welcome-pack-not-working-after-latest-update/
@ZKWC even offered you money for the job, but you don’t give any answer.
I guess you don’t know about this change from admin_menu to network_admin_menu Or you should have told us to do it.
I’m not a programmer but I guess that you know the little change we have to do to save the settings in that options file, no?
What we have to do to get an answer from you?
Please not:
-“wait for 1.3” (that could happen in october)
-“I need money” (I need money too, but I think that offering a free plugin, and when a lot of people is using it, request for money to maintain it, it’s not a good idea. Thinkin on your reputation)
Sorry for my bad english.March 7, 2011 at 8:28 pm #107109In reply to: How do I add a menu item on the profile page?
Virtuali
ParticipantWait… do you mean a subnav? Like for instance, under profile, the subtabs are “Edit Profile, and Change Cignature?”
Could be done, wrap the bp_core_new_subnav_item call in a function which is hooked on xprofile_setup_nav action;
`/* Add the subnav items */
bp_core_new_subnav_item( array( ‘name’ => __( ‘My Friends’, ‘buddypress’ ), ‘slug’ => ‘my-friends’, ‘parent_url’ => $friends_link, ‘parent_slug’ => $bp->friends->slug, ‘screen_function’ => ‘friends_screen_my_friends’, ‘position’ => 10, ‘item_css_id’ => ‘friends-my-friends’ ) );
bp_core_new_subnav_item( array( ‘name’ => sprintf( __( ‘Requests (%d)‘, ‘buddypress’ ), bp_friend_get_total_requests_count() ), ‘slug’ => ‘requests’, ‘parent_url’ => $friends_link, ‘parent_slug’ => $bp->friends->slug, ‘screen_function’ => ‘friends_screen_requests’, ‘position’ => 20, ‘user_has_access’ => bp_is_my_profile() ) );if ( $bp->current_component == $bp->friends->slug ) {
if ( bp_is_my_profile() ) {
$bp->bp_options_title = __( ‘My Friends’, ‘buddypress’ );
} else {
$bp->bp_options_avatar = bp_core_fetch_avatar( array( ‘item_id’ => $bp->displayed_user->id, ‘type’ => ‘thumb’ ) );
$bp->bp_options_title = $bp->displayed_user->fullname;
}`There ya go, 2 in one!
March 7, 2011 at 6:52 pm #107097@mercime
ParticipantBackup first before attempting changes – and no guarantees it will be easy
BuddyPress 1.2.8 only contains a few changes all…March 7, 2011 at 12:44 pm #107048Paul Wong-Gibbs
KeymasterThose plugins need to be updated for changes for WordPress 3.1. Contact the developers.
P.s. Achievements is my plugin and I’m aware
March 7, 2011 at 5:39 am #107028Rob Watson
MemberThanks, mercime. But when I add in “/wordpress/” in front of “/members/…”, I still get 404.
http://xxx.xxx.xx.xxx/wordpress/ also returns a 404. But http://xxx.xxx.xx.xxx/ returns the buddypress-enabled home page, fully themed and functional, except for the fact that clicking any deeper part of the admin menus returns 404.
My apache virtualhost settings are as follows:
`
ServerAdmin webmaster @xxx.xxx.xx.xxx
DocumentRoot /data01/home/username/production/wordpress
ServerName xxx.xxx.xx.xxx
ErrorLog logs/xxx.xxx.xx.xxx-error_log
CustomLog logs/xxx.xxx.xx.xxx-access_log common
`Does anything need to change there to fix this problem?
March 2, 2011 at 5:07 am #106645In reply to: Change Menu Bar
ARHistoryHub
ParticipantI’m also a bit of a noob, but I’d like to recommend using the browser plug-in Firebug as a means to quickly learn css. http://getfirebug.com/
March 2, 2011 at 2:48 am #106633In reply to: Change Menu Bar
pcwriter
ParticipantYou seem to be having difficulty with the basics. May I suggest switching to an easier theme to customize?
I designed BuddyLite with newbies in mind (like me!) You can get a similar look and feel as your current theme, while taking full advantage of WP3 custom menus, and a bunch of basic customization options through a simple admin panel.
You can download it here: http://buddylite.com/buddylite-basic/
March 1, 2011 at 8:13 am #106565In reply to: Change Menu Bar
JamieMM
MemberI opened the folder and found the original custom css which is below and also the style.css which is after the custom. I didnt see where I could find the nav menu?
body {
width: 1000px;
}#leftSidebar {
width: 182px;
float: left;
padding: 20px 5px 20px 20px;
background: url( images/sidebar_back.gif ) top left repeat-x;
margin-top: 1px;
overflow: hidden;
border-right: 1px solid #e4e4e4;
}#leftSidebar .widget {
margin-bottom: 20px;
}#leftSidebar h3.widgettitle {
background: #eaeaea;
padding: 5px 15px;
font-size: 12px;
clear: left;
margin: 10px -4px 10px -20px;
}#wp-admin-bar div.padder {
width: 1000px !important;
}#content div.padder {
float: left;
width: 525px;
border-left: 1px solid #e4e4e4;
margin-right: 226px;
border-right: 0px solid #e4e4e4;
-moz-border-radius-topleft: 0px;
-webkit-border-top-left-radius: 0px;
-moz-border-radius-bottomleft: 0px;
-webkit-border-bottom-left-radius: 0px;
margin-left: -1px;
}div.post div.post-content, div.comment-content {
margin-left: 0px;
}THIS IS THE STYLE.CSS
/*
Theme Name: BP Columns
Theme URI: http://buddypress.org
Description: A 3 Column Buddypress theme.
Version: 1.2
Author: modemlooper
Author URI: http://twitter.com/modemlooper
Template: bp-default
Tags: buddypress, three-columns
*//* Inherit the default theme styles */
@import url( ../../plugins/buddypress/bp-themes/bp-default/_inc/css/default.css );
/* Inherit the default theme adminbar styles */
@import url( ../../plugins/buddypress/bp-themes/bp-default/_inc/css/adminbar.css );
/* Custom styles */
@import url( custom.css );
February 25, 2011 at 10:18 pm #106321In reply to: WordPress 3.1
zkwc
Participant@chouf1 try uploading a picture. It doesn’t work. Where is the settings options on the BP drop down menu in the plug-in list? Not there! He is aware and was on my website testing it. It broke their plug-in and many others. And the other change only makes sense if you want an hour tacked onto your administrative duties. Do you get at least 50 slogs and spammers a day? Good luck clicking around trying to delete them in the minute it used to take. UGH! I don’t know why you insist upon arguing about that. Unless you have a vested interest. I just feel sorry for all the plug-in developers who are frantically trying to make their stuff work. And now my site is broken. I’m screwed. Tried downgrading. Sucked. Didn’t work.
@ewebber I wish I had waited. You are making a wise decision!
February 18, 2011 at 2:01 am #105672In reply to: [Resolved] Change site name in admin bar
aces
ParticipantHopefully the following link might help? https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/add-a-welcome-message-to-admin-bar-instead-of-website-name/#post-87017 ?
I use a version of it though the admin menu bar is only seen by those logged in….
February 9, 2011 at 5:31 pm #105026In reply to: hiding dashboard
David Carson
ParticipantLook for the `bp_adminbar_thisblog_menu` function in `bp-core/bp-core-adminbar.php`. It’s around line 151 (BP Version 1.2.7).
There is an `if` statement with `current_user_can( ‘edit_posts’ )`. Replace `edit_posts` with whatever role you want to check it for. https://codex.wordpress.org/Roles_and_Capabilities
And you might already know this, but you should try to make your changes to the function using `bp-custom.php`. https://codex.buddypress.org/extending-buddypress/bp-custom-php/
February 2, 2011 at 6:49 pm #104447In reply to: BuddyPress/WordPress Menu Issues
bopyd
MemberI am having a similar issue. The menu bar link shows
http://siteURL/press/members/admin/activity/ which gives me an error. If I change it to
http://siteURL/press/index.php/members/admin/activity/ Then it works fine.
I am on Windows hosting IIS 6.0.Any suggestions?
January 27, 2011 at 9:23 pm #104059In reply to: WP 3.0.4 Multisite Breaks BP Forum
@mercime
Participant=== Do I need to make any changes to my bb-config.php file to run multisite? ===
Just to be clear, you had a single WP install with BuddyPress and created internal bbPress forums i.e. via BuddyPress forums set up, before upgrading to WP 3.0.4 and then creating a network/going multisite? Try to re-run Forum Setup. Backup database and server files, then go to dashboard > BuddyPress menu > Forums Setup > Use an existing bbPress installation – and in next panel point to your bb-config.php then click on “Complete Installation”
-
AuthorSearch Results