Advertisement
Tryah85

BuddyPress header within header.php in a specific theme.

Sep 13th, 2012
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.61 KB | None | 0 0
  1. <div id="menu-nav-dynamic" class="dynamic" class="menu-main_menu-container">
  2. <span class="menu-item menu-item-type-post_type menu-item-object-page menu-item-3955">
  3. <?php
  4.  
  5. if ( is_user_logged_in() ) {
  6.  
  7.   //$urlToOutput = bp_loggedin_user_domain();  ************TWO WAYS TO GET UNIQUE PROFILE NAMES
  8.   //echo "<a href='$urlToOutput'>Profile</a>";  <--------------- IN A VARIABLE, OR CONCATENATION FROM BELOW
  9.  
  10.   echo "<a href=\"" . bp_loggedin_user_domain() . "\">Profile</a>";
  11.  
  12.  
  13. }    
  14.  
  15. else {
  16.  
  17.      echo "<a href='http://dtc-wsuv.org/steamworks/steamworks-web/digitalcommons/sign-up/'>Sign Up</a>";
  18.  
  19. }
  20.  
  21. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement