Group Mods

  • Profile picture of @mercime
  • Profile picture of r-a-y
  • Profile picture of Hugo

Modified new navigation menu in buddybar, new links are doubled. (3 posts)

Started 7 months, 2 weeks ago by: kkradel

  • Profile picture of kkradel kkradel said 7 months, 2 weeks ago:

    WP 3.2.1 using BP 1.5 upgraded from 1.2.10
    Using Custom Theme (Upstart Blogger Futurosity)
    Using Subdomains

    I wanted to make a new drop down menu from the buddybar and finally found this bit of code – which I put into a bp-custom.php file:

    <?php
    
    function pages() {  global $bp; ?>
    
    <li><a href=”http://www.mysite.com”>Community</a>
    <ul>
    <li><a href=”http://www.mysite.com/activity/”>The Stream</a></li>
    <li><a href=”http://www.mysite.com/blogs/”>Members Blog Activity</a></li>
    <li><a href=”http://www.mysite.com/members/”>Members Directory</a></li>
    <li><a href=”http://www.mysite.com/groups”>Public Groups</a></li>
    <li><a href=”http://www.mysite.com/about/become-a-member/”>Join</a></li>
    <li><a href=”http://www.mysite.com/about/contact/”>Contact</a></li>
    </ul>
    </li>
    
    <?php
    }
    add_action( 'bp_adminbar_menus', 'pages', 3 );
    
    ?>

    The menu appears, but the links that appear in the browser’s address bar are doubled, like this:

    http://www.artist-at-large.com/%EF%BF%BDhttp:/www.artist-at-large.com/activity/%EF%BF%BD

    I’ve tried a number of variations of this file with the same results.

    I also would like to make this particular drop down menu viewable by the public, ie: those not logged in.

  • Profile picture of kkradel kkradel said 7 months, 2 weeks ago:

    Strike that last sentence – this menu seems to be appearing to the public now.

  • Profile picture of kkradel kkradel said 7 months, 1 week ago:

    Anyone?