Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 18 replies - 1 through 18 (of 18 total)

  • benjammin
    Participant

    @benjino

    Running WP 3.5.2 and BP 1.8

    I too am interested in removing a particular Admin from the Members or Activity page or any listing of a particular Admin. I have two Admins and want only one to show.


    benjammin
    Participant

    @benjino

    Paul,

    Thank you for your response. I followed that codex instruction to a “T” and it doesn’t work, that’s why I’m asking. I read all of the “Similars” as well.


    benjammin
    Participant

    @benjino

    I guess I had a different impression of this community, not that I’m not appreciative. Thanks for whatever you have shared.


    benjammin
    Participant

    @benjino

    @bphelp, I have wp-content > themes > socialbuddy > and then inside the theme socialbuddy there are a bunch of files and folders. A folder named buddypress is inside that and that has a functions-buddypress.php file, and then there is a folder named framework and inside that is theme-functions.php. In the folder socialbuddy there is a functions.php file and inside that there is wp_nav_menu, that is the only place I could find that name. Below is the code that is with it:

    	/**
    	 * This theme uses wp_nav_menu() in one location.
    	 */
    	register_nav_menus( array(
    			'primary-nav' => __( 'Primary Navigation', 'framework' ),
    			'footer-nav' => __( 'Footer Navigation', 'framework' )
    	));

    So that tutorial you sent me is incongruous for me to follow. I just don’t know enough about PHP to have a lightbulb go on when I see that tutorial. I get the gist of what it is having you do though.


    benjammin
    Participant

    @benjino

    I have no clue where to put it or if anything else needs to be changed in the header.php file. Here’s the header.php file contents:

    <!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title><?php wp_title('-', true, 'right'); ?><?php bloginfo('name'); ?></title>
    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    <?php get_template_part('header', 'CSS'); ?>
    <?php wp_head(); ?>
    </head>
    <body <?php body_class(); ?>>
    <a name="top"></a>
    <?php if ( has_nav_menu( 'primary-nav' ) ) { ?>
    <!-- #primary-nav-mobile -->
    <nav id="primary-nav-mobile">
    <a class="menu-toggle" href="#"></a>
    <?php wp_nav_menu( array('theme_location' => 'primary-nav', 'container' => false, 'menu_class' => 'clearfix', 'menu_id' => 'mobile-menu', )); ?>
    </nav>
    <!-- /#primary-nav-mobile -->
    <?php } ?>
    
    <!-- #header -->
    <header id="header" class="clearfix">
    <div class="container">
    
    <!-- #logo -->
      <div id="logo">
        <?php if (is_front_page()) { ?><h1><?php } ?>
          <a title="<?php bloginfo( 'name' ); ?>" href="<?php echo home_url(); ?>">
          <?php if (of_get_option('st_logo')) { ?>
          <img alt="<?php bloginfo( 'name' ); ?>" src="<?php echo of_get_option('st_logo'); ?>">
          <?php } else { ?>
          <?php bloginfo( 'name' ); ?>
          <?php } ?>
          </a>
         <?php if (is_front_page()) { ?></h1><?php } ?>
      </div>
    <!-- /#logo -->
    
    <!-- #primary-nav -->
    <nav id="primary-nav" role="navigation" class="clearfix">
      <?php if ( has_nav_menu( 'primary-nav' ) ) { ?>
        <?php wp_nav_menu( array('theme_location' => 'primary-nav', 'container' => false, 'menu_class' => 'nav sf-menu clearfix' )); ?>
      <?php } ?>
    </nav>
    <!-- #primary-nav -->
    
    </div>
    </header>
    <!-- /#header -->

    benjammin
    Participant

    @benjino

    I created a new menu in wp admin and tried the 2-menu method, and it inserted a completely unstyled menu above the header of the site pushing everything down, and when I logged out things got even worse, all this error code showed up along with the unstyled menu. This is what I put in the functions.php file:

    if ( is_user_logged_in() ) {
         wp_nav_menu( array( 'theme_location' => 'Main-Menu-logged-in' ) );
    } else {
         wp_nav_menu( array( 'theme_location' => 'Main-Menu' ) );
    }

    benjammin
    Participant

    @benjino

    Oh yah, I do, I tried it with Main-Menu too and it didin’t work.


    benjammin
    Participant

    @benjino

    In the Menu Admin area of WP my main menu is named Main-Menu and I replaced CHANGE-THIS with that menu name, and updated the link and page name too and it didn’t work. It doesn’t insert the the Registration menu link in the Main-Menu. Here’s what I have:

    function custom_menu_item ( $items, $args ) {
    
       if ( !is_user_logged_in() && $args->menu == 'primary-nav' ) {
          $items .= '<li><a href="/register-2" title="Signup">Signup</a></li>';
       
       } 
       
       return $items;
    }
    add_filter( 'wp_nav_menu_items', 'custom_menu_item', 10, 2 );

    benjammin
    Participant

    @benjino

    Ok, I can understand what you are showing me customizing the menu, but I don’t get how to change the PHP function to insert into only the #primary-nav, and not both #primary-nav and #footer-nav.


    benjammin
    Participant

    @benjino

    Henry, how would you target or filter out other menus. I have a Main menu and a footer menu. Yes, I see it is occurring on both menus.


    benjammin
    Participant

    @benjino

    Hugo, I didn’t start here, I did the search for ‘wp nav menu’ found Henry’s post at the top of that search and clicked on it’s title and it brings me here, so I hope I’m not upsetting you by continuing here.

    Henry, I used that code, it works, thanks. However, it places the menu item at the far right of the menu and it is desired somewhere in between menu items, and also has a sub-menu item with it, and now the sub-menu item isn’t there of course. How would have the Register menu item come in where I want it to and retain the sub-menu?


    benjammin
    Participant

    @benjino

    I can go to a WP forum for your suggestions if answers for this aren’t provided here. If not here, I do appreciate the concepts you shared, I’ll go with those to WP Forums.


    benjammin
    Participant

    @benjino

    Ok, let me phrase this another way. What check box items in WP Settitngs > Discussion admin area relate with Buddypress functionality (sans Blog)? None? If some, which ones?


    benjammin
    Participant

    @benjino

    Ok, wonderful, that was it. I have WP Super Cache installed and deleted that cache and then deleted the browser cache and the page still showed!

    However, there is a third level of deletion… the ‘ol WP Trash bin, and after deleting that and reclearing all caches it is not gone.

    Thanks Hugo!


    benjammin
    Participant

    @benjino

    Yes, those sound like good ideas. I’m an experienced enough WP user to see those as possible logical solutions but I am not skilled enough with PHP to know how to do this or to even know what files to add the necessary PHP to.


    benjammin
    Participant

    @benjino

    Ok thanks.


    benjammin
    Participant

    @benjino

    Ok got it. I went through the process again but this time copied the code and entered that into the Activation page, it worked. I see the difference, I just didn’t notice it before because the link was working so well—so it’s more like a backup as you say. Thanks Henry.


    benjammin
    Participant

    @benjino

    Well thank you very much bphelp, is this the only one with this sort of capability?
    Any ideas on why this sort of moderation/flagging is not too popular? If this plugin’s popularity you shared is indication of it not being a great way to go, then maybe I ought to rethink how I build this site I interested in building. I’m one to always seek and find the best, most dependable, forward moving things, would happen to have a better suggestion that would utilize a plugin or combination of plugins akin to what I am interested in?

Viewing 18 replies - 1 through 18 (of 18 total)
Skip to toolbar