Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'change buddypress menu'

Viewing 25 results - 176 through 200 (of 845 total)
  • Author
    Search Results
  • #249591
    Anker Design
    Participant

    Hello,

    I am currently working on a website which I have installed buddypress on for the 1st time: http://theredline.org.uk/

    The plugin seems to mess with the menu styling for Buddypress pages (notfications, members, etc). It removes the padding from the main menu: http://theredline.org.uk/members/

    Where is the source code for this and what do I need to change to get this to look like it should in the main theme?

    Benji

    #249079
    ch1n3s3b0y
    Participant

    This is what I changed in functions.php. It was do to with adding subnav items, removing subnav items and renaming some of them:

    /* BP Add subnavigation on profile */
    
    add_action('bp_setup_nav', 'bp_profile_submenu_profile' );
    function bp_profile_submenu_profile() {
    	global $bp;
    	if(!is_user_logged_in()) return '';
    	bp_core_new_subnav_item( array( 
    		'name' => 'Seminar Bookings',
    		'slug' => 'seminar-bookings', 
    		'parent_url' => $bp->loggedin_user->domain . $bp->bp_nav['profile']['slug'] . '/' ,
    		'parent_slug' => $bp->bp_nav['profile']['slug'],
    		'position' => 20,
    		'screen_function' => 'seminar_bookings'
    		) 
    	); 
    }
    function seminar_bookings() {
        add_action( 'bp_template_content', 'seminar_bookings_screen' );
        bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) );
    }
    
    function seminar_bookings_screen() { 
        locate_template( array( 'buddypress/members/single/profile/seminar-bookings.php' ), true );
    }
    
    /* BP Remove unneeded subnav items */
    function remove_bp_subnav_items() {
    	global $bp;
    	bp_core_remove_subnav_item('profile','change-avatar');
    	bp_core_remove_subnav_item('profile','change-cover-image');
    }
    
    add_action( 'bp_setup_nav', 'remove_bp_subnav_items');
    
    /* BP Rename subnav items */
    function rename_bp_subnav_items(){
    	global $bp;
    	$bp->bp_options_nav['profile']['edit']['name'] = 'Edit Profile';
    	$bp->bp_options_nav['profile']['public']['name'] = 'View Profile';
    }
    add_action('bp_setup_nav', 'rename_bp_subnav_items', 201);

    The only time I had mentioned ‘position’ was when setting up a new subnav item.

    #247934

    In reply to: bp-custom.php bp nav

    codyt
    Participant

    It’s working now but the priority didn’t change anything. I’m not sure why it’s working now. I did figured out how to turn some of the tabs off courtesy of this site. However I still can’t find a way to add my own tab named “characters”. Maybe I just have to make a copy of a tab, change the name and then link it to the the page I want. If I find out how, I will let you know.

    Thanks Henry!

    #247884
    codyt
    Participant

    Wordpress 4.4
    Buddypress 2.4.3

    I’m just starting to use bp-custom.php and trying to add a new tab to the BP menu.
    For some reason any changes I make to this function does not effect anything.
    Not even the order of other tabs. My bp-custom.php file is in wp-content/plugins.
    I must be missing something simple.

    <?php
    function bbg_change_profile_tab_order() {
    global $bp;

    $bp->bp_nav[‘profile’][‘position’] = 10;
    $bp->bp_nav[‘activity’][‘position’] = 20;
    $bp->bp_nav[‘blogs’][‘position’] = 30;
    $bp->bp_nav[‘friends’][‘position’] = 40;
    $bp->bp_nav[‘messages’][‘position’] = 50;
    $bp->bp_nav[‘groups’][‘position’] = 60;
    $bp->bp_nav[‘settings’][‘position’] = 70;
    $bp->bp_nav[‘characters’][‘position’] = 80;
    }
    add_action(‘bp_setup_nav’, ‘bbg_change_profile_tab_order’, 999 );
    ?>

    #247681
    Website Ladies
    Participant

    Hello,

    When I see a link related to a member in my Buddypress, it is like this :
    members/USERNAME/profile/edit/group/1/
    or
    members/USERNAME/profile/change-avatar/

    etc…

    I would like to know how to insert a link in a page depending on the name of the user… I just can’t figure it out…

    I need :
    – link to edit profile
    – link to edit profile picture

    I don’t want a menu, I want the php/html code to insert in a php file…

    Thank you !

    #247576
    john_pawson
    Participant

    Hi there,

    I’m developing an intranet site for a client – I’m (very) new to the world of PHP, so I’m struggling with getting things customised with the buddypress part of the site. I’m after some pointers for hiding a notifications/new messages count if it’s 0. I’ve managed to get these showing in my user menu using the following code:

    <?php
    // hacks and mods will go here
    
    function my_counter_nav_menu($menu) {  
    
    $notif_url = bp_core_get_user_domain(bp_loggedin_user_id()) .'notifications/';
    $friends_url = bp_core_get_user_domain(bp_loggedin_user_id()) .'friends/'; 
    $msg_url = bp_core_get_user_domain(bp_loggedin_user_id()) .'messages/';    
          
        if (!is_user_logged_in())
            return $menu;
        else
            $notif = '
    
    <li class="notify"><a href=" ' .$friends_url. ' ">Connections <div class="friendnumber topnavcount">'.friends_get_friend_count_for_user( bp_loggedin_user_id() ) .'</div></a></li>
    <li class="notify"><a href=" ' .$notif_url. ' ">Notifications <div class="notifynumber topnavcount">'. bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ).'</div></a></li>
    <li class="notify"><a href=" ' .$msg_url. ' ">Messages <div class="messagenumber topnavcount">'.bp_get_total_unread_messages_count( bp_loggedin_user_id() ) .'</div></a></li>
    
    ';
    				
        $menu = $menu . $notif;
        return $menu;
    }
    add_filter( 'wp_nav_menu_items', 'my_counter_nav_menu' );
    
    ?>

    My first issue was that these new menu items were showing up on both the main nav and the user menu of the site, but I’ve fixed that by applying the classes shown and hiding them using CSS (something I’m much more familiar with!)

    What I need is someone kind to spell out exactly what I need to do to hide the counts for notifications and unread messages above if they’re 0. The friends bit I’m not so worried about as I may either change how that works or drop it entirely (its a corporate client). I’ve already tried a number of javascript options to remove the div if the content is 0… but guess what, I’m as great at javascript as I am at PHP!

    Thanking everyone here in advance – it was only by searching these forums that I was able to get this far, so I appreciate all the effort everyone goes to to help people like me out!

    John

    balmainboy
    Participant

    Hi,

    So after a new user logs in to their newly created buddypress account the wordpress menu appears up to top of our website and i can’t figure out how to get rid of it! Before log in, it looks normal, but after login they have access to a wordpress style dashboard etc. See the pic below

    wp menu

    it’s annoying as it changes the look and feel for the site, and although users don’t have admin rights to the website, it comes across as unprofessional looking in my opinion. Is there a setting or file that needs to be updated to disable the wp menu appearing?

    I’m using WP 4.3.1, theme: the 7.2, BP 2.4.2

    Thanks in advance for any help!

    #247129
    ma3ry
    Participant

    You have a previous post at https://buddypress.org/support/topic/redirect-after-join-group/ re redirect after a person clicks to “Join Group”. The topic is closed so I couldn’t continue but I did try adding the code on that page to my child theme functions.php page, however it didn’t change anything.

    I would love to get rid of the Show “Everything” page, and all the drop down filter menu items.

    When people “Join Group” I want them to go to the Forums.

    They are currently posting on that landing page and the posts get lost in all the other activity that’s happening.

    Is there a way to redirect to forum from “Join Group” button please.

    WP 4.3.1
    BuddyPress 2.4.0
    Website is https://christiangayschat.com
    Thank you!

    #245915

    In reply to: Problems with TopBar

    flopfeil
    Participant

    is here anybody who knows where buddypress established the topmenu?
    if i check the to different sites with my inspector tool, i can see he loads the mainmenu and not the topmenu. So i want to know in which php.file buddypress establish the topmenu.

    on the sites where it shows up the right topbar it looks like…

    <div class=”social-header header-color”>
    <div class=”container”>
    <div class=”top-bar”>
    <div id=”top-social” class=”col-sm-12 col-md-5 no-padd”> </div>
    <div class=”top-menu col-sm-12 col-md-7 no-padd”>
    <ul id=”menu-topmenu” class=””>

    and on the other sites, where i have the wrong menu….

    <div class=”social-header header-color”>
    <div class=”container”>
    <div class=”top-bar”>
    <div id=”top-social” class=”col-sm-12 col-md-5 no-padd”> </div>
    <div class=”top-menu col-sm-12 col-md-7 no-padd”>
    <ul id=”menu-mainmenu” class=””>

    so there must be any code from buddpypress which put here the mainmenu.

    Did anyone know where i can change that part of code?

    #245836

    In reply to: Problems with TopBar

    flopfeil
    Participant

    Thanks for your help, but its not the solution.

    My TopMenu got the content you see on that screen.

    http://www.pic-upload.de/view-28637544/Top_normal.jpg.html

    I try to explain my problem better.

    The TopMenu works when the Buddypress Plugin is deactivated. Its on all Sites that Menu I want to have.
    After I activate the Plugin on some of the sites(Buddypress specific sites) changes the TopMenu and show the content from the NavigationBar.

    So I think there is a piece of code in any PHP-File which overwrites my TopMenu.

    Any ideas???

    #245310
    Philosopher Rex
    Participant

    Note that this doesn’t just change tabs in groups, but in the profile as well. I had some issues ‘fitting’ in some words without making the text too small or resorting to wrapping the word (another CSS rule); so instead I used poedit to change the menu text.

    You can read about how to do that here: https://codex.buddypress.org/getting-started/customizing/customizing-labels-messages-and-urls/

    #245304
    Philosopher Rex
    Participant

    I wasn’t happy with the look of the groups menu, so I made some CSS over-ride rules which can be used in your (child) theme CSS or in one of those CSS over-ride plugins.

    Here is the before image:

    Before CSS changes

    And here is the after:

    After CSS changes

    And here is the code:

    
    
    /* buddypress tabs */
    #buddypress #object-nav, #buddypress #subnav {outline:0;margin:0;text-align:center;}
    #buddypress #object-nav ul, #buddypress #subnav ul {display:table;width:100%;table-layout:fixed;font-size:.75em;}
    #buddypress #subnav ul {width:96%;font-size:.65em;margin:0 2%;}
    #buddypress #object-nav li, #buddypress #subnav li {display:table-cell;float:none;text-align:center;height:2em;padding-top:.5em;background-color:#ddd;border:1px solid #c6c6c6;border-bottom: 1px solid #999;text-decoration: none;outline:0;margin:0;}
    #buddypress #object-nav li a, #buddypress #subnav li a{display:block;text-align:center;padding:0!important;color:#666;outline:0;}
    #buddypress #object-nav li a:hover, #buddypress #subnav li a:hover {color:#000;outline:0}
    #buddypress #object-nav li.current, #buddypress #subnav li.current {pointer-events:none;cursor:default;color:#555;font-weight:700;border-color:#999;border-bottom-color:transparent;background-color:transparent;}
    #buddypress #object-nav li.current a:hover, #buddypress #subnav li.current a:hover {color:#555;font-weight:700;}
    #buddypress div#subnav.item-list-tabs {margin:0!important;padding-top:1em;}
    #buddypress #subnav ul
    
    
    #244998
    Vikram Shaw
    Participant

    Hi, I’m using latest version of buddypress. I want to customize my activity page to show updates on activity page for me and my friends only, so I’ve used the codes which was given by @R-A-Y. But I want to make the blogs updates to be shown in activity page to everyone irrespective of friend, but I don’t know how to achieved that because the code which I’ve used is restricting to me and my friends only. And even I want to give “News” update in activity page can anyone suggest me how to achieve that two things.

    The codes which I’ve used for activity page which shows activity updates for me and my friends is given below:–

    add_action( 'bp_loaded', array( 'BP_Home', 'init' ) );
    /**
     * BP Home
     */
    class BP_Home {
    	/**
    	 * Our activity scope name.
    	 *
    	 * @var string
    	 */
    	const SCOPE_NAME = 'swa-home';
    	/**
    	 * Multiple scopes we will be using for our 'Home' tab.
    	 *
    	 * @var string
    	 */
    	protected static $scopes = '';
    	/**
    	 * Marker to determine when to stop our object buffer
    	 *
    	 * @var bool
    	 */
    	public $should_end_buffer = false;
    	/**
    	 * Static initializer.
    	 */
    	public static function init() {
    		return new self();
    	}
    	/**
    	 * Constructor.
    	 */
    	public function __construct() {
    		if ( ! bp_is_active( 'activity' ) ) {
    			return;
    		}
    		// set our default scopes
    		$this->set_default_scopes();
    		// add in our hooks
    		$this->hooks();
    	}
    	/**
    	 * Sets the default scopes used by the "Home" tab.
    	 *
    	 * Filterable.
    	 */
    	private function set_default_scopes() {
    		$scopes = array();
    		$scopes[] = 'just-me';
    		$scopes[] = 'mentions';
    		if ( bp_is_active( 'friends' ) ) {
    			$scopes[] = 'friends';
    		}
    		self::$scopes = apply_filters( 'bp_activity_home_scopes', $scopes );
    	}
    	/**
    	 * Hooks.
    	 */
    	private function hooks() {
    		add_action( 'bp_activity_screen_index', array( $this, 'set_home_scope' ) );
    		add_action( 'wp_logout',                array( $this, 'reset_activity_scope_cookie' ) );
    		add_filter( 'bp_after_has_activities_parse_args', array( $this, 'filter_activity_loop' ) );
    		add_action( 'bp_before_activity_type_tab_all',       array( $this, 'ob_start' ), 0 );
    		add_action( 'bp_before_activity_type_tab_friends',   array( $this, 'ob_end_clean' ), 0 );
    		add_action( 'bp_before_activity_type_tab_groups',    array( $this, 'ob_end_clean' ), 0 );
    		add_action( 'bp_before_activity_type_tab_favorites', array( $this, 'ob_end_clean' ), 0 );
    	}
    	/**
    	 * Override some activity default / AJAX parameters if we're on the Sitewide Activity page.
    	 */
    	public function set_home_scope() {
    		// reset cookie for logged-out users
    		if ( ! is_user_logged_in() ) {
    			$this->reset_activity_scope_cookie();
    			return;
    		}
    		// override post title
    		add_action( 'bp_template_include_reset_dummy_post_data', array( $this, 'post_title' ), 20 );
    		// if we have a post value already, let's add our scope to the existing cookie value
    		if ( !empty( $_POST['cookie'] ) ) {
    			$_POST['cookie'] .= '%3B%20bp-activity-scope%3D' . self::SCOPE_NAME;
    		} else {
    			$_POST['cookie'] = 'bp-activity-scope%3D' . self::SCOPE_NAME;
    		}
    		// set the activity scope by faking an ajax request (loophole!)
    		if ( ! defined( 'DOING_AJAX' ) ) {
    			$_POST['cookie'] .= "%3B%20bp-activity-filter%3D-1";
    			// reset the selected tab
    			@setcookie( 'bp-activity-scope',  self::SCOPE_NAME, 0, '/' );
    			//reset the dropdown menu to 'Everything'
    			@setcookie( 'bp-activity-filter', '-1',   0, '/' );
    		}
    	}
    	/**
    	 * Resets BP's activity scope cookie to 'all'.
    	 *
    	 * Only reset if the activity scope is set to 'swa-home' since the 'Home' tab
    	 * will not be available when logged out.
    	 *
    	 * We do this when a user is logging out or is logged out.
    	 */
    	public function reset_activity_scope_cookie() {
    		if ( ! empty( $_COOKIE['bp-activity-scope'] ) && self::SCOPE_NAME === $_COOKIE['bp-activity-scope'] ) {
    			@setcookie( 'bp-activity-scope', 'all', 0, '/' );
    			$_COOKIE['bp-activity-scope'] = 'all';
    		}
    	}
    	/**
    	 * Filter the activity loop with our custom scope.
    	 */
    	public function filter_activity_loop( $r ) {
    		if ( self::SCOPE_NAME !== $r['scope'] ) {
    			return $r;
    		}
    		// add in our custom scopes
    		$r['scope'] = self::$scopes;
    		// change default empty activity text as well while we're at it
    		add_filter( 'gettext', array( $this, 'override_empty_message' ), 10, 3 );
    		return $r;
    	}
    	/**
    	 * Start the object buffer before any activity tabs are outputted.
    	 */
    	public function ob_start() {
    		if ( ! is_user_logged_in() ) {
    			return;
    		}
    		ob_start();
    	}
    	/**
    	 * Replace the "All Members" tab with "Home" on the Sitewide Activity page.
    	 *
    	 * Try to determine when to stop our object buffer and inject our "Home" tab.
    	 * Accounts for whether certain BP components are active or not.
    	 */
    	public function ob_end_clean() {
    		if ( ! is_user_logged_in() ) {
    			return;
    		}
    		if ( false === $this->should_end_buffer ) {
    			$this->should_end_buffer = true;
    			$buffer = ob_get_contents();
    			ob_end_clean();
    			// find the default 'All Members' tab
    			$all_start = strpos( $buffer, '<li class="selected" id="activity-all">' );
    			$all_end   = strpos( $buffer, '</li>', $all_start );
    			// our custom 'Home 'tab
    			$home = '<li class="selected" id="activity-' . self::SCOPE_NAME . '"><a href="' . bp_get_activity_directory_permalink() . '">' . __( "Home", "bp-home" ) . '</a></li>';
    			// output and replace the 'All Members' tab with the 'Home' tab
    			echo substr_replace( $buffer, $home, $all_start, $all_end + 5 );
    		}
    	}
    	/**
    	 * Post title override.
    	 *
    	 * Whee! Dirty hack!
    	 */
    	public function post_title() {
    		global $wp_query;
    		$wp_query->post->post_title = __( 'Home', 'bp-home' );
    	}
    	/**
    	 * Overrides the "Sorry, there was no activity found. Please try a different filter." message.
    	 *
    	 * @param string $translated Current translated text
    	 * @param string $untranslated Untranslated text
    	 * @param string $domain Domain for the string
    	 * @return string
    	 */
    	public function override_empty_message( $translated, $untranslated, $domain ) {
    		if ( 'Sorry, there was no activity found. Please try a different filter.' === $untranslated ) {
    			$translated = sprintf( __( "It looks like you're new here. To see some activity, try posting an update or <a href='%s'>adding a friend</a>.", 'bp-home' ), bp_get_members_directory_permalink() );
    		}
    		return $translated;
    	}
    }
    #244987

    In reply to: Profile Tabs

    shanebp
    Moderator
    #244935
    Jacks89
    Participant

    Hi I am very new to Buddypress.

    I’m having issue trying to redirect user to the previous page after they log in rather than sending the user to profile page.

    Whenever I type egglove.sg/login, it redirects me back to egglove/profile/login.

    How do I change this?

    I have come across the code below

    function lab_login_redirect(){
    	global $bp;
    	remove_action('bp_adminbar_menus','bp_adminbar_login_menu',2);
    	if(is_user_logged_in())	return false;
    	$url = get_bloginfo('home') . '/wp-login.php?redirect_to=' . urlencode(get_bloginfo('home')) . esc_url($_SERVER['REQUEST_URI']);
    	echo '<li class="bp-login no-arrow"><a href="' . $url . '">' . __( 'Log In', 'buddypress' ) . '</a></li>';
    	if(bp_get_signup_allowed())	echo '<li class="bp-signup no-arrow"><a href="' . bp_get_signup_page(false) . '">' . __( 'Sign Up', 'buddypress' ) . '</a></li>';
    }
    add_action('bp_adminbar_menus','lab_login_redirect',1);

    But doesn’t seem to work when I add it bp-custom.php in plugin folder or function.php in theme folder.

    #244207
    danbp
    Participant

    hi,

    first snipppet removes the mention tab.
    Second remove the mention item from the top right usermenu below howdy.

    Condition is set to site admin. If you use custom capabilities, change that to your need.
    Code goes to bp-custom.php

    function bpfr_hide_mention_nav() {
    	//if ( bp_current_user_can( 'bp_moderate' ) )
    	if ( is_super_admin() ) {
    		return;
    	} 
    	bp_core_remove_subnav_item( 'activity', 'mentions' ); 
    }
    add_action( 'bp_ready', 'bpfr_hide_mention_nav' );
    
    function bpfr_admin_bar_remove_activity_mentions(){
    global $wp_admin_bar;
    	if ( is_super_admin() ) {
    		return;
    	}
    	$wp_admin_bar->remove_node('my-account-activity-mentions');
    }
    add_action('wp_before_admin_bar_render','bpfr_admin_bar_remove_activity_mentions');
    

    An alternate (IMO better) solution, is this premium plugin: http://www.philopress.com/products/buddynotes/

    #244065
    AilyRoot
    Participant

    Hi guys
    we are looking for solution to get buddypress notifications work on our theme, we know it will be shown on wordpress’s default top tool bar but we want it to show somewhere else.

    We are using WP 4.3 with buddypress 2.3.3, we have added these to theme’s functions.php

    
    function bpfr_add_notification_to_page_title( $title, $original_title, $sep  ) {
    	
    	//do not change if the user is not logged in
    	if( ! is_user_logged_in() )
    		return $title;
    	
    	$user_id = get_current_user_id();//logged in user's id
    	
    	$count = bp_notifications_get_unread_notification_count( $user_id );
    	
    	if( $count > 0 )
    		$title = sprintf( "You Have %d New Notification(s) - ", $count );
    	
    	return $title;
    	
    	
    }
    add_filter( 'wp_title', 'bpfr_add_notification_to_page_title', 100, 3 );
    

    then we add these to theme ‘s menu location

    
    <?php echo bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ); ?>
    

    but it is showing nothing, what is the correct steps to make this work please?

    thanks

    #243519
    danbp
    Participant

    Hi @muskokee,
    BP nav menu code is in bp-core-template.php:3050 to EOF.

    To change the position of an item on profiles page, use this from within bp-custom.php
    Position is defined by the numeric value:

    function bpfr_profile_menu_tab_pos(){
    global $bp;
    $bp->bp_nav['activity']['position'] = 30;
    $bp->bp_nav['forums']['position'] = 50;
    $bp->bp_nav['profile']['position'] = 25;
    $bp->bp_nav['messages']['position'] = 10;
    $bp->bp_nav['notifications']['position'] = 40;
    $bp->bp_nav['friends']['position'] = 20;
    $bp->bp_nav['groups']['position'] = 60;
    }
    add_action('bp_setup_nav', 'bpfr_profile_menu_tab_pos', 100);

    You can also add some condition on the template. Ie

    if ( is_user_logged_in() ) :
       your custom menu stuff
    else
       something for non logged user
    endif;

    Other reference: https://codex.buddypress.org/themes/members-navigation-menus/

    #242826
    djsteveb
    Participant

    I am a total noob with this stuff – a quick look with my limited tools and understanding of all things that make this stuff work…

    I THINK your rule here:

    .buddypress ul li {
        background: transparent none repeat scroll 0% 0%;
        padding: 0px;
    }

    Is over-writing the rule here:

    .main-nav li {
        white-space: nowrap;
        float: left;
        font: 12px "OpenSansBold";
        text-transform: uppercase;
        padding: 7px 20px 11px 0px;
        letter-spacing: -1px;
        text-shadow: 0px 0px 1px rgba(0, 0, 0, 0.3);
    }

    Which is what is being used on your home page.

    I think if you find the padding 0px on the .buddypress ul li line and change it to padding: 7px 20px 11px 0px; — that will fix your top nav current issue – now will that adversely affect some other ul li / menu or list somewhere (like a widget or something) – I don’t know.

    I am guessing that someone smarter then me can craft a rule that would work better and more specific.. something like
    .buddypress main-nav ul li

    padding: 7px 20px 11px 0px;
    }

    I have no idea if that would work – my understanding of css is like level 1 and bp is like level 1/2 – lol

    I also THINK that you have a weird triple css / child theme thing going on – again I don’t know, but looking at your css code rules in the firefox inspector, it looks like your pages are loading the exact same css file three times?

    I made a similar mistake with my first child theme – copying the whole shebang into a new child theme folder.. actually what you want is a relatively blank new folder and a relatively blank style.css that only includes rules you are going to overwrite / change from the parent theme.

    I don’t have access to your files or know the exact setup and may even be wrong in my understanding of what the firefox property inspector is showing – but you may want to look into why every rule appears to load the exact same three times and overwrites itself twice..

    hope this helps – not sure any of this is right..

    #242811
    romax100
    Participant

    Hello, I am trying to take BuddyPress nav menu with all the tabs like activity, profile, friends etc, and display it inside a widget on my right sidebar called theme my login.

    I found a php file of TML widget and inserted <?php bp_nav_menu(); ?> inside the code. It works like a charm, but only when I am in the mywebsite.com/members/%userid%/ directory. As soon as I click away to the homepage, or forums page, the menu loses a couple items and all of the links transform to http://activity/ format etc.

    I inspected the element with in browser tools. The menu that is being called when I navigate away from the profile page is the same one, and the only thing that randomly changes is the list of menu items and their links.
    Ii assume that bp-nav-menu is set to display only in the profile page. is that true, and how can I change it?

    Thanks

    safiul.azam
    Participant

    Hi Guys,

    So here is what I have on my site.

    1. Child Theme from TweentyFifteen
    2. BuddyPress (2.3.2.1) and BBPress (2.5.8)
    3. Latest version of WordPress

    Everything is working fine except the Order By in Members and Groups.

    When I visit Members or Groups, items are sorted by “Last Active” which is fine.

    But it seems like when I change the Order By like New Registered, nothing happens.

    I have checked with the firebugs. There is NO ajax / jquery call when I change the dropdown menu.

    I’m really clueless and new in WordPress development.

    Can you guys please give me some suggestions? I would really appreciate it.

    Thanks.

    Dangthrimble
    Participant

    WordPress: 4.2.2–en_GB
    BuddyPress: 2.3.2.1

    Hi,

    I know there have been threads about this before, but I am new to BuddyPress, not confident with PHP and generally somewhat confused. I would like to be able to hide all the information about my site administrators from anyone other than other site administrators. The reason is that it is advised (e.g. http://wpsecure.net/secure-wordpress/) that you delete your original admin account and change the nickname so that details of the admin account cannot be scraped off the web site. However, BuddyPress makes both the username and the nickname visible.

    I’m surprised, after the number of times this has come up, that there isn’t an option to address this from the BuddyPress menus.

    Can you advise in simple terms how I can achieve this and, if I have to modify code, what I need to do to maintain it when I get subsequent updates to BuddyPress.

    Thanks

    Rollercoasterider
    Participant

    @djteveb,

    Thanks for responding.

    Re: Pretty Permalinks
    I think I was getting mixed up with pretty urls at my smf forum which were a disaster. When I moved my blog I had to change embedded links and that was a nightmare and I was thinking it was due to pretty permalinks since ?I had a nightmare changing links at the forum as well. But my blog does use pretty permalinks and I have them set up on this other WP install as well.

    I have just disabled all plugins–checking in between deactivations occasionally. I deactivated Simple:Press last and before that the logout link was still going to the forum index and now it just goes to the members page which is still acting as the front/home page even though I have the page titled HOME selected as being the front page–I checked this again after deactivating all the other plugins.

    But partway through I did notice a message only on the members page shown as a small pop-up ONLY when I click chrome in my footer bar and see all the open window options. When I choose to view the wondow in full the message disappears.

    <br/> <b>Warning</b>:strstr() [<ahref=’function.strstr’>function.strstr ]: Empty delimiter in <b>/home/…wp-content/plugins/buddypress/bp-core/bp-core-filters.php</b> on line <b>781</b> Members | – Google Chrome

    I had to take a screen shot of it just to have enough time to read it because the pop-up didn’t stay very long and I had to type it manually here, so I might have messed up the spacing.

    The activity, profile, notifications and settings links on the menu go to the same file not found message as before.

    My next step will be to uninstall and reinstall through cpanel or ftp. But first I’ll wait and see if anyone else has ideas and come back to it tomorrow.

    #241482
    whoaloic
    Participant

    I just add that I could unset profile public tab:

    /* remove subtabs*/
    function remove_submenu_item() {
        bp_core_remove_subnav_item( 'settings', 'profile' );
    bp_core_remove_subnav_item( 'profile', 'public' );
    }
    add_action( 'bp_setup_nav', 'remove_submenu_item', 100 );
    

    But I need to change the Profile landing subnav to avoid 404 page.

    I found this piece of code but this only for main tab.

    /**
     * Change BuddyPress default Members landing tab.
     */
    define('BP_DEFAULT_COMPONENT', 'profile' );
    #241199
    jimjas
    Participant

    Thanks Hugo. I found your article on companion styles, but the only thing I found on deregulating the new styles was:

    function dequeue_bp_twentyfifteen() {
    wp_dequeue_style(‘bp-twentyfifteen’);
    }
    add_action(‘wp_enqueue_scripts’, ‘dequeue_bp_twentyfifteen’);

    However I’m not using a twentysomething theme.

    The current default profile menu runs horizontal across the page

    https://drive.google.com/file/d/0B0PCT5EGd34SN0JIQzdJNWswVEU/edit?usp=drivesdk

    But what I’d like is for the profile menu to run vertically down the page under the profile pic (like it does on the Buddypress site itself)

    https://drive.google.com/file/d/0B0PCT5EGd34STnhqYnM4NXZSVDQ/edit?usp=drivesdk

    Sorry if my pics are not that clear.

    Do you still suggest the dequeue code in the function file as the approach I should follow? And if so, should I change the references to be for the theme I’m using instead of 2015?

    IF not, is there some other code I should use to restore the old profile template format?

    Thanks Hugo!

    jas

Viewing 25 results - 176 through 200 (of 845 total)
Skip to toolbar