Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Mar 19th, 2012  |  syntax: None  |  size: 0.56 KB  |  hits: 77  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2.   // custom functions for tweaking BuddyPress
  3.   function custom_adminbar_dashboard_button() {
  4.     // adds a "Dashboard" link to the BuddyPress admin bar if a user is logged in.
  5.     if (is_user_logged_in()) {
  6.         echo '<li><a href="/forums/">Agent Forums</a></li>';
  7.         echo '<li><a href="/members/">Directory</a></li>';
  8.         echo '<li><a href="/ticket/">Support</a></li>';
  9.         echo '<li><a href="/advantage-companies/">Company Connection</a></li>';
  10.     }
  11.    }
  12.   add_action('bp_adminbar_menus', 'custom_adminbar_dashboard_button', 1);
  13.  ?>