Search Results for 'bp_get_displayed_user_nav'
-
Search Results
-
Hello,
i cant get profile/member links working on main activity page /activity. On profile pages etc member links are working just fine. Created new sidebar with call:bp_get_displayed_user_nav(); /** * Fires after the display of member options navigation. * * @since 1.2.4 */ do_action( 'bp_member_options_nav' );It displays menu items, label links but if you are on acitivity stream page links are wrong. Is there a way to fix that? I can create wp_menu there but then i will loose small annotations with numbers inside (friends number etc).
Also how to detect if i am on main activity stream page. I know there is
bp_is_current_component('activity')but it detects both main streams and member activity stream.
Thank you.
Hi!
I’m having some hard time with the following:
I want to place my profile avatar (item-header-avatar) from the header to the left from my item-nav and eventually delete the header section.
I’m editing the member-header.php file through my child-theme ( using Kleo-theme ). I thought it would be as easy as copying the div from item-header-avatar and pasting it after <ul class=”responsive-tabs”> but after loading the webpage it does not work.
So my code looks like this:
<?php/**
* Fires after the display of a member's header.
*
* @since 1.2.0
*/
do_action( 'bp_after_member_header' ); ?><?php if ( sq_option( 'bp_nav_overlay', 0 ) == 1 ) : ?>
<div id="item-nav">
<div class="item-list-tabs no-ajax" id="object-nav" aria-label="<?php esc_attr_e( 'Member primary navigation', 'buddypress' ); ?>" role="navigation">
<ul class="responsive-tabs">
<div id="item-header-avatar" class="rounded">
"><?php bp_displayed_user_avatar( 'type=full' ); ?>
<?php do_action('bp_member_online_status', bp_displayed_user_id()); ?>
</div><!-- #item-header-avatar --><?php bp_get_displayed_user_nav(); ?>
<?php
/**
* Fires after the display of member options navigation.
*
* @since 1.2.4
*/
do_action( 'bp_member_options_nav' ); ?></div>
</div>
<!-- #item-nav -->
<?php endif; ?>
Thankyou!!
Hi guys I have deleted the
<?php bp_get_displayed_user_nav(); ?>and would like to one by one echo out the user links on the profile page how I see fit but using the code<li class="profile-link"><a href="<?php echo bp_core_get_user_domain( $bp->displayed_user->id ); ?>/friends"><?php _e("Activity")?></a></li>Whiich I thought should work but doesnt as it just produces htttp://example.com/friends without the users name.
Anyone suggestions would be great! Thank you!
Hi guys does anyone know a good way to edit the bp_get_displayed_user_nav on the profile pages.
For my site design there are just too many links in the menu and I would like some of those links to be drop down optionsfor example
Activity >
Notifications
Messages
Profile >
Friends
Settings
Media > (from RT media plugin)Also how would I go about adding icons to the links as well?
Anyway would be awesome if some one could help me out or point me in the right direction.
Thank you!
Hello guys.
I’m trying to hijack this menu and place it inside my header.php file.

This menu gets echoed via the bp_get_displayed_user_nav() function that is only visible on user profile related pages so I need some sort of conditional PHP tag to prevent it from showing up in my header section when I’m not viewing one of those profile related pages of course. For some reason I can’t figure it out anymore. It’s been a while since I’ve used BuddyPress.
Not visible here
[domain]/members/Yes show me here
[domain]/members/warrick-brown/
[domain]/members/warrick-brown/profile/
[domain]/members/warrick-brown/groups/
[domain]/members/warrick-brown/anything-else/I tried; if bp_is_members_component() > true > echo the menu but that doesn’t seem to work. I probably need to go deeper into the single profile section or something.
?
Hi,
I am writing some code related with buddypress profile page,and I want to display the user_nav_in in a separate page,the function bp_get_displayed_user_nav gives an error Invalid argument supplied for foreach() because the array $bp->members->nav->get_primary() does not have any values ,because the display_user->id is empty,
I tried to set up it with $bp->displayed_user->id=”ExampleId” but with no success,
Does any one have an idea?
Thank you,
Sincerely.
NabilHello,
I am trying to get the header action buttons inside the profile navigation area, which currently renders as li items inside of a ul
- <-- UL HERE -->
<?php bp_get_displayed_user_nav(); ?>
<?php/**
* Fires after the display of member options navigation.
*
* @since 1.2.4
*/
do_action( 'bp_member_options_nav' );
do_action( 'bp_member_header_actions' ); ?><-- END UL HERE -->
as you can see, but the problem is that the bp_member_header_actions output as div containers, i need to change these to li’s, but not sure how to do it, i have tried looking in the bp_friends_template which is where the content is outputted, though it has wrapper_id and wrapper_class it does not have a definiting of wrapper or wrapper_type or container.
Any advice?
Topic: Cannot Edit Theme Files
I have spend the past 2 days digging through the documentation with no luck.
Simple question, how do I edit the raw template files (the actual html) for the current version of BuddyPress (2.4.3)? Specifically, the public-facing profile pages.
So, I have a theme, let’s call it “mytheme”, and I copied the contents from /plugins/buddypress/bp-templates/bp-legacy/buddypress/ into /wp-content/themes/mytheme/buddypress/
First off, is that copying and overriding process still correct? I’ve read that in a few places but I don’t know if it is the current method. Also, if I only need to edit one file (/members/single/member-header.php for example), could I simply just copy that single file (along with the folder structure of course) and then customize it? Or do I need to copy all of the files and folders?
Secondly, for some reason, I can no longer edit the template files. It seems like no matter what I do, I cannot find or edit code.
I am trying to edit some code from /wp-content/themes/mytheme/buddypress/members/single/member-header.php and nothing I do affects the code.
For example, I am trying to edit this:
<h2 class="user-nicename">@<?php bp_displayed_user_mentionname(); ?></h2>to
<h2 class="user-nicename">TESTING @<?php bp_displayed_user_mentionname(); ?></h2>but nothing happens.
Strangely, I am able to make edits to /wp-content/themes/mytheme/buddypress/members/single/home.php
On line 41, I was able to comment out:
bp_get_displayed_user_nav();Which actually had an effect on the page.
What could I be doing wrong here? I tried downloading a fresh copy and I’ve been trying to read about how to edit the theme files, there doesn’t seem to be much information about it. Why can I edit parts of /wp-content/themes/mytheme/buddypress/members/single/home.php and not /wp-content/themes/mytheme/buddypress/members/single/member-header.php ?
Any advice on this would be massively appreciated. đ I really tried and searched for a long time before asking.
*I also wonder if this is related to what this user asked about: https://buddypress.org/support/topic/remove-or-hide-on-profile-in-front-of-username/
I am attempting to customize the member profile link structure. I have found the function that injects it “bp_get_displayed_user_nav” but can’t seem to overwrite it by removing and replacing it. I pretty much need to customize the the styles and structure of the links, they are currently generated like so
echo apply_filters_ref_array( 'bp_get_displayed_user_nav_' . $user_nav_item['css_id'], array( '<li id="' . $user_nav_item['css_id'] . '-personal-li" ' . $selected . '><a id="user-' . $user_nav_item['css_id'] . '" href="' . $link . '">' . $user_nav_item['name'] . '</a></li>', &$user_nav_item ) );Topic: Forums on Member Pages
I’m wondering what the current status of BBPress forums are.
I have latest BuddyPress, BBPress and WordPress setup here.
BBPress main forums accessible via site.com/forums
Group forums accessible via both group pages and BBPress main forums as I have this setting on.However on member profiles using
bp_get_displayed_user_nav()to display the profile menu will present a link to the site.com/members/membername/forums.On this page it seems redundant as it doesn’t reflect the topics this account has created.
So yeah, I’m wondering what the status is with this?
Thanks