Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'change buddypress menu'

Viewing 25 results - 351 through 375 (of 511 total)
  • Author
    Search Results
  • tsankuanglee
    Member

    Wonderful, 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.

    #111411

    In reply to: Removing Favorites

    mrbin
    Member

    @nuprn1

    Just 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?

    JamieWade
    Member

    I 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.

    #110249
    rickgoz
    Participant

    Hahaha 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

    #110212
    nit3watch
    Participant

    I 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.

    @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

    #109293
    steliodj
    Member

    Hi 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

    #108815
    @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

    #108781
    Boone Gorges
    Keymaster

    Adding 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.

    Boone Gorges
    Keymaster

    Hi 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.

    #108627

    In reply to: Change Menu Names

    danbpfr
    Participant
    #108405
    @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?

    #107680
    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.

    #107109
    Virtuali
    Participant

    Wait… 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! ;)

    @mercime
    Participant

    Backup first before attempting changes – and no guarantees it will be easy
    BuddyPress 1.2.8 only contains a few changes all…

    Paul Wong-Gibbs
    Keymaster

    Those plugins need to be updated for changes for WordPress 3.1. Contact the developers.

    P.s. Achievements is my plugin and I’m aware :)

    Rob Watson
    Member

    Thanks, 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?

    #106645

    In reply to: Change Menu Bar

    ARHistoryHub
    Participant

    @JamieMM

    I’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/

    #106633

    In reply to: Change Menu Bar

    pcwriter
    Participant

    @JamieMM

    You 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/

    #106565

    In reply to: Change Menu Bar

    JamieMM
    Member

    I 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 );

    #106321

    In 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!

    #105672
    aces
    Participant

    Hopefully 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….

    #105026

    In reply to: hiding dashboard

    David Carson
    Participant

    Look 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/

    #104447
    bopyd
    Member

    I 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?

    #104059
    @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”

Viewing 25 results - 351 through 375 (of 511 total)
Skip to toolbar