Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • in reply to: BP Profile Tabs won't display #30154
     gregmc
    Participant

    missed some

    COPY CODE
    
    add_action('after_setup_theme','kleo_my_custom_tabs');
    function kleo_my_custom_tabs()
    {
        global $bp_tabs;
        $bp_tabs = array();
     
     
        $bp_tabs['base'] = array(
                'type' => 'regular',
                'name' => "About me",
                'group' => 'Base',
                'class' => 'regulartab'
        );
    	
    		$bp_tabs['Gamestats'] = array(
    				'type' => 'regular',
    				'name' => __('Gamestats', 'kleo_framework'),
    				'group' => 'Gamestats',
    				'class' => 'regulartab'
    	);
    	
    			$bp_tabs['Games Played'] = array(
    				'type' => 'regular',
    				'name' => __('Games Played', 'kleo_framework'),
    				'group' => 'Preferences',
    				'class' => 'regulartab'
    	);
     
        /* rtMedia tab - only if plugin installed */
        if (class_exists('RTMedia'))
        {
            $bp_tabs['rtmedia'] = array(
                    'type' => 'rt_media',
                    'name' => __('My photos', 'kleo_framework'),
                    'class' => 'mySlider'
            );
        }
     
        /* Bp-Album tab - only if plugin installed */
        elseif (function_exists('bpa_init')) {
            $bp_tabs['bp-album'] = array(
                    'type' => 'bp_album',
                    'name' => __('My photos', 'kleo_framework'),
                    'class' => 'mySlider'
            );
        }
    	
    
    in reply to: BP Profile Tabs won't display #30150
     gregmc
    Participant

    @abe – tx for replying – as a test have put exact same in main theme functions as well but had no effect… what worries me is that even the base tab does not show… there is data in the xprofile fields, which means it should show (see image 3)

    COPY CODE
    
    add_action('after_setup_theme','kleo_my_custom_tabs');
    function kleo_my_custom_tabs()
    {
        global $bp_tabs;
        $bp_tabs = array();
     
     
        $bp_tabs['base'] = array(
                'type' => 'regular',
                'name' => "About me",
                'group' => 'Base',
                'class' => 'regulartab'
        );
    	
    		$bp_tabs['Gamestats'] = array(
    				'type' => 'regular',
    				'name' => __('Gamestats', 'kleo_framework'),
    				'group' => 'Gamestats',
    				'class' => 'regulartab'
    	);
    	
    			$bp_tabs['Games Played'] = array(
    				'type' => 'regular',
    				'name' => __('Games Played', 'kleo_framework'),
    				'group' => 'Preferences',
    				'class' => 'regulartab'
    	);
    Attachments:
    You must be logged in to view attached files.
    in reply to: BP Profile Tabs won't display #29815
     gregmc
    Participant
    This reply has been set as private.
    in reply to: BP Profile Tabs won't display #29765
     gregmc
    Participant
    This reply has been set as private.
    in reply to: BP Profile Tabs won't display #29620
     gregmc
    Participant

    hey Catalin – still no luck for me – see attached pic – under profile link the extra profile groups appear (see bottom of the pic) but it will not show next to the avatar – trying to get gamestats to show there

    this is what i have in function.php (child theme)

    COPY CODE
    add_action('after_setup_theme','kleo_my_custom_tabs');
    function kleo_my_custom_tabs()
    {
        global $bp_tabs;
        $bp_tabs = array();
     
     
        $bp_tabs['base'] = array(
                'type' => 'regular',
                'name' => "About",
                'group' => 'Base',
                'class' => 'regulartab'
        );
     
        /* rtMedia tab - only if plugin installed */
        if (class_exists('RTMedia'))
        {
            $bp_tabs['rtmedia'] = array(
                    'type' => 'rt_media',
                    'name' => __('My photos', 'kleo_framework'),
                    'class' => 'mySlider'
            );
        }
     
        /* Bp-Album tab - only if plugin installed */
        elseif (function_exists('bpa_init')) {
            $bp_tabs['bp-album'] = array(
                    'type' => 'bp_album',
                    'name' => __('My photos', 'kleo_framework'),
                    'class' => 'mySlider'
            );
        }
    	
    	$bp_tabs['Gamestats'] = array(
    'type' => 'regular',
    'name' => __('Gamestats', 'kleo_framework'),
    'group' => 'Gamestats',
    'class' => 'regulartab'
    );
     
    }
    Attachments:
    You must be logged in to view attached files.
    in reply to: Redirect the logged user to the members page #28961
     gregmc
    Participant

    why not use the BuddyPress login redirect free plugin to do this?

    https://wordpress.org/plugins/buddypress-login-redirect/

Viewing 6 posts - 1 through 6 (of 6 total)

Log in with your credentials

Forgot your details?