• To get this to work well, I went back to 3.5.2.

    For some weird reason it wasn’t functioning properly, so I worked on the code and now it works well.

    At the bottom of the cp-loader.php file, this is what my code reads:

    /**
    * Returns the query string of CollabPress values
    * e.g. task=3&task-list=4
    */
    function cp_frontend_querystrings() {

    // grab any query strings that exist
    if (isset($_SERVER[‘QUERY_STRING’])) {
    $cp_all_querystrings = ( $_SERVER[“QUERY_STRING”] ) ? $_SERVER[“QUERY_STRING”] : ”;
    $cp_querystrings = explode( ‘&’, $cp_all_querystrings );
    } else {
    $vars = $_GET;
    }

    //set pattern to strip out
    $pattern = “/^cp|project|task-list|task|view|activity_page/”;
    $cp_qs_add = ”;

    foreach ( $cp_querystrings as $cp_querystring ) {
    if ( ! preg_match( $pattern, $cp_querystring ) ) {
    $cp_qs_add .= $cp_querystring .’&’;
    }
    }

    if ( $cp_qs_add != ‘&’ ) :
    return $cp_qs_add;
    endif;

    }

The topic ‘Working Well’ is closed to new replies.