BuddyDev

Search

[Resolved] Sub nav is not open / Disabled url – BuddyPress User Profile Tabs Creator Pro

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #12387
    This reply has been marked as private.
  • Participant
    Level: Master
    Posts: 213
    smart life on #12423

    Hi. Is there any good new yet?

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #12424

    Hi Julia,
    I will be able to assist you on this and the deactivate account test by Tuesday.

    Thank you
    Brajesh

  • Participant
    Level: Master
    Posts: 213
    smart life on #12514

    Hi. How is the update going on?

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #12520

    Hi Julia,
    Thank you for the patience.

    The problem lies with WC Frontend Manager. It loads styles conditionally but fails on profile pages.
    The solution is to force it to load css

    
    /**
     * Enable wcfm styles on profile page.
     */
    function buddydev_enable_wcfm_styles() {
    	global $WCFM;
    	if ( ! $WCFM || ! isset( $WCFM->library ) || ! is_callable( array( $WCFM->library, 'load_styles' ) ) ) {
    		return;
    	}
    // change component with the slug.
    	$component = 'tab-slug'; // please change it with your tab slug.
    	if ( bp_is_current_component( $component ) ) {
    		//load
    		$WCFM->library->load_styles( 'wcfm-dashboard' );
    	}
    }
    
    add_action( 'bp_enqueue_scripts', 'buddydev_enable_wcfm_styles' );
    
    

    Please change the

    
    $component = 'tab-slug'; // please change it with your tab slug.
    	
    

    With the actual slug and you will get the dashboard like this.

    https://i.imgur.com/z7oDigh.png

    Hope that helps.

    Regards
    Brajesh

  • Participant
    Level: Master
    Posts: 213
    smart life on #12534

    1) How about email issue of deactive account plugin?

    2) The code given style is not complete. You see “Home” tab is complete blank.
    Defaul domain.com/wcfm has style
    http://www.mediafire.com/view/6uvrtpqbsncaodc/blank_style.PNG

    P/S: Clear cache, borrow, database already.

    3) When i click on another (tab & sub-tab)=sub-slug, it linked my back to defaul domain.com/wcfm/sub-slug

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #12535

    Hi Julia,
    1. We will report about the conflict today.

    2.I only tested for basic styles. You will need to contact the plugin author for nore. The problem lies with the WC frontend manager and not us. We allow you to use a shortcode. Any malfunction of the shortcode should be reported to the plugin developer. They can provide compatibility.

    3. Please contact the plugin author. These are controlled by the WC Frontend Manager.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #12550

    1. Have replied to the other thread about conflict.

    Regards
    Brajesh

  • Participant
    Level: Master
    Posts: 213
    smart life on #12583

    Hi. As the code bellow. Here is what developer say:

    This code is right, but it only includes stylesheets. You have to do same for JavaScript, WCfM dashboard contents loads through Ajax, so you are getting things blank.

    Please provide me JavaSript

    Thanks

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #12584

    Hi Julia,
    I am sorry but we are unable to assist you here.

    The javascript etc is coming from the WCFM plugin . That plugin will not work with BuddyPress profile pages whether you use the Tabs creator or not. It has nothing to do with the Tabs pro.

    Like I said earlier, WCFM needs to load their assets/js on the page where you are using the shortcode but they are not doing it.

    Please ask the developer of the plugin to help you load javascript and anything else. It’s not our plugin and I am not sure how many other issues it might have with the BuddyPress profile page.

    You will need to get the assistance from the WCFM developer. We won’t be able to do much due to the lack of familiarity with their plugin.

    They should be able to extend my above code to load the js file(The code shows how to load asset on the profile tab).

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: resolved