Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • Bea107
    Participant

    @bea107

    Hello

    Just added code below in themes functions.php file and now getting this message

    Parse error: syntax error, unexpected ‘.’ in /home/wordpres/public_html/wp-content/themes/twentyeleven/functions.php on line 741

    function bp_core_get_last_activity( $last_activity_date, $string ) {
    if ( empty( $last_activity_date ) )
    // we do nothing
    $last_active = ”;
    else
    $last_active = sprintf( $string, bp_core_time_since( $last_activity_date ) );
    }
    add_filter( ‘bp_core_get_last_activity’ );


    Bea107
    Participant

    @bea107

    Hello

    To remove all activity for all members I put this filter in my Twenty Eleven Child: Stylesheet (style.css) but it didn’t work?

    Any ideas

    function bp_core_get_last_activity( $last_activity_date, $string ) {
    if ( empty( $last_activity_date ) )
    // we do nothing
    $last_active = ”;
    else
    $last_active = sprintf( $string, bp_core_time_since( $last_activity_date ) );
    }
    add_filter( ‘bp_core_get_last_activity’ );

Viewing 2 replies - 1 through 2 (of 2 total)
Skip to toolbar