ok…ive seen this before, but there was one thing missing. what im trying to do, is display a specific menu on certain pages in the right panel. i got the menu up, and it works on the home page, but my problem is with the user profile (in this case, the logged in person) and a memeber profile ( friend, and or nonfriend) i want the menu contents to change depending on which page your on. So, if im on my profile, i see my menu, if im on a friends page, a different menu, and lastly, if on a non-friends page different menu displyed lol. i know…
i was using an if statement like so:
<?php if ( is_home() ) { ?>
<h5 id=”panel-title”><?php _e( ‘home’, ‘buddypress’ ) ?></h5>
<ul class=”hook_menu”><img src=”<?php bloginfo(‘template_directory’); ?>/images/local/category-arrow.gif” />
Menu for home
<?php } elseif ( bp_is_user_profile() ) { ?>
<h5 id=”panel-title”><?php global $current_user;get_currentuserinfo(); echo ” . $current_user->user_login . “”; ?></h5>
<ul class=”hook_menu”><img src=”<?php bloginfo(‘template_directory’); ?>/images/local/category-arrow.gif” />
Menu for another member or my friends profile
<?php } elseif ( bp_is_my_profile() ) { ?>
<h5 id=”panel-title”><?php global $current_user;get_currentuserinfo(); echo ” . $current_user->user_login . “”; ?></h5>
<ul class=”hook_menu”><img src=”<?php bloginfo(‘template_directory’); ?>/images/local/category-arrow.gif” />
Menu for my profile
<?php } ?>
im not sure what tags to use for my profile and other profiles…anyone know? thanks a bunch ahead of time!
oh also, whats the tag for displaying that members name, not the loggedin user, but your friend?