Skip to:
Content
Pages
Categories
Search
Top
Bottom

plugin to add menu/link to Buddybar


  • Aron Jay
    Participant

    @aronjay

    howdy,

    I’ve created/modified a plugin to add a menu/link to the buddybar, here it is..

    <?php
    
    function add_menu() {
    
    global $bp; ?>
    
    <li class="align-left"><a>"><?php _e( 'More', 'buddypress' ) ?></a>
    
    <ul>
    
    <li><a>/about" title="<?php _e( 'About', 'buddypress' ) ?>"><?php _e( 'About', 'buddypress' ) ?></a></li>
    
    <li  class="alt"><a>/help" title="<?php _e( 'Help', 'buddypress' ) ?>"><?php _e( 'Help', 'buddypress' ) ?></a>
    
    <li  class="alt"><a>/contact" title="<?php _e( 'Contact', 'buddypress' ) ?>"><?php _e( 'Contact', 'buddypress' ) ?></a>
    
    <li  class="alt"><a>/terms" title="<?php _e( 'Terms', 'buddypress' ) ?>"><?php _e( 'Terms', 'buddypress' ) ?></a>
    
    <li  class="alt"><a>/privacy" title="<?php _e( 'Privacy', 'buddypress' ) ?>"><?php _e( 'Privacy', 'buddypress' ) ?></a>
    
    <li  class="alt"><a>/developers" title="<?php _e( 'Developers', 'buddypress' ) ?>"><?php _e( 'Developers', 'buddypress' ) ?></a>
    
    <?php
    
    $doing_admin_bar = false;
    
    }
    
    add_action('bp_adminbar_menus','add_menu',200);
    
    ?>
    
    </ul>

    Sorry, i don’t know the code for backticks…
    EDIT: now it is. 😀
    just wanna share it… 😀
    aron

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

  • Lance Willett
    Participant

    @lancewillett

    Aron,

    The backtick key on your keyboard is probably located at the top left, above “Tab” and below “Esc”. Add one backtick before and one after your code to format it here in the forum.

    A nicer way to share code is to use a “paste bin” such as Pastie.org — it supports syntax highlighting and is easy to share: just add the URL to any forum post or email and anyone can go see it.


    Aron Jay
    Participant

    @aronjay

    thank you lance… :)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘plugin to add menu/link to Buddybar’ is closed to new replies.
Skip to toolbar