Skip to:
Content
Pages
Categories
Search
Top
Bottom

Custom activity filter – showin brocken image for the link to the review

  • Avatar of nit3watch
    nit3watch
    Participant

    @nit3watch

    Hi

    Basically I have added custom activities to my home page being filtered by different things. The activity is also limited to a certain number of characters. The reviews render as the image below:

    Image and video hosting by TinyPic

    `function bp_limit_activity_content() {

    $limit_activity_length = 130; //character limit

    $limit_excerpt = substr(bp_get_activity_content_body(), 0, $limit_activity_length); //truncate excerpt according to lenngth
    if(strlen($limit_excerpt) < strlen(bp_get_activity_content_body())) {
    $limit_excerpt = $limit_excerpt.’..’ ;
    }

    echo “

    “.$limit_excerpt.”

    “; //finally display excerpt
    }

    /* Limit Site Activity */
    function limit_site_activity() {

    global $wpdb;

    ?>

      <li class="” id=”activity-”>

      <a href="”>

    <?php

    }`

    Is there anything I should be adding to my loop?

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

You must be logged in to reply to this topic.