Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • kansen Friend
    #178688

    hi

    i noted that if the ja system social feed plugin is set to save the feeds in k2 articles, them doesnt show the intro text on the categry listing but if it is set “content” as system destination it show intro text and even an icon of the source.

    how can i add intro text in k2 category listing files articles from social feeed plugin?

    cheers.

    Thanh Nguyen Viet Friend
    #459514

    Hello Kansen,

    Please open the file:

    plugins/system/jasocial_feed/tables/k2.php

    Find and replace below code snippet:

    [PHP]$txt = ‘<div class=”‘.$source.’-item”>’;
    $txt .= ‘<div class=”content”>’ . $image . $post[‘source_content’] . ‘</div>’;
    $txt .= ‘<p class=”readmore”><a class=”readmore” href=”‘.$post[‘source_url’]. ‘” title=”‘.$post[‘source_url_txt’].'” target=”_blank”>’.$post[‘source_url_txt’].'</a></p>’;
    $txt .= ‘</div>’;[/PHP]

    With:

    [PHP]//intro text
    $txt = ‘<div class=”‘.$source.’-item-intro”>’;
    $txt .= ‘<div class=”content”>’ . $post[‘source_content’] . ‘</div>’;
    $txt .= ‘</div>’;
    $txt .= ‘<hr id=”system-readmore” />’;
    //full text

    $txt .= ‘<div class=”‘.$source.’-item”>’;
    $txt .= ‘<div class=”content”>’ . $image . $post[‘source_content’] . ‘</div>’;
    $txt .= ‘<p class=”readmore”><a class=”readmore” href=”‘.$post[‘source_url’]. ‘” title=”‘.$post[‘source_url_txt’].'” target=”_blank”>’.$post[‘source_url_txt’].'</a></p>’;
    $txt .= ‘</div>’;[/PHP]

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

This topic contains 2 replies, has 2 voices, and was last updated by  Thanh Nguyen Viet 11 years, 11 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum