Skip to:
Content
Pages
Categories
Search
Top
Bottom

BuddyPress compatibility with DAP (Digital Access Pass) Plugin – If I remove this function, what hap

  • Avatar of Tridian
    tridian
    Participant

    @tridian

    Hello BuddyPress community, I am writing here because I’ve installed the paid DAP plugin for WP and it appears to have a conflict w/ BuddyPress that their development team cannot seem to solve. I think I have found the issue but I am not a programmer so I wanted to ask for your advice to find out what the implications of my fix will be. There is a function in the BP default theme functions.php that if removed, fixes the DAP problem. If the function is added back in, DAP breaks. Here’s the function…

    /* Load the activity stream template if settings allow */
    function bp_dtheme_page_on_front_template( $template ) {
    global $wp_query;

    if ( empty( $wp_query->post->ID ) )
    return locate_template( array( ‘activity/index.php’ ), false );
    else
    return $template;
    }
    add_filter( ‘page_template’, ‘bp_dtheme_page_on_front_template’ );

    Can someone please advise me of the implications of what will happen if I remove this function entirely?

    Thanks very much for your time

Viewing 3 replies - 1 through 3 (of 3 total)
  • Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    If you remove that function and filter, you cannot set the activity stream as frontpage.

    if that is not an issue for you, then go ahead and remove the filter:
    remove_filter( 'page_template', 'bp_dtheme_page_on_front_template' );

    The problem probably has something to do with the empty $wp_query->post->ID.

    The DAP team should either remove the filter and create a compatibility filter or change how it looks for the empty post ID.

    Avatar of Tridian
    tridian
    Participant

    @tridian

    Thanks very much r-a-y for the advice and I will certainly pass this on to the DAP team as well to see what they think. I see you all over the forums so thanks again for all the work you and the BP team puts in for the rest of us.

    Avatar of magentawave
    magentawave
    Member

    @magentawave

    @Tridian

    Did DAP fix this yet? Does DAP work with BuddyPress now?

    Thanks

    Steve

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.