Viewing 3 posts - 16 through 18 (of 18 total)
  • Author
    Posts
  • Ninja Lead Moderator
    #512791

    <em>@dieudonne 398557 wrote:</em><blockquote>Is this problem (duplicate images) ‘ll be fix in the next template’s version…?
    And when ?</blockquote>

    You can have a look to follow here

    P/S: Please don’t raise same problem on many thread. Sometime we need more time to check and find down and give back for you the best answer

    dpchap015 Friend
    #513089

    @ninja Lead
    here is the solution

    images are comes properly by this code in blog_item.php
    by replacing line33
    [PHP]//duplicate images
    $regex = ‘#<img[^>]*>#’;
    $regex = “#<img[^>]+>#”;

    $image_introtext = ”;
    if (preg_match ($regex,$this->item->introtext, $matches)) {
    $image_introtext = $matches[0];
    $this->item->introtext = str_replace ($image_introtext, ”, $this->item->introtext);
    }
    $link = $params->get(‘link_titles’) && $params->get(‘access-view’) ? JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid)) : false;
    ?>
    [/PHP]

    do same for featured article layout

    for introtext
    change the line 191 into
    [PHP]<?php/* echo JHtml::_(‘string.truncate’, $introtext, $tplparams->get(‘tpl_introtext_limit’, 200));*/ ?>
    <?php echo $this->item->introtext; ?>[/PHP]

    do same for featured layout 😀

    Ninja Lead Moderator
    #513249

    Many thanks for sharing

Viewing 3 posts - 16 through 18 (of 18 total)

This topic contains 18 replies, has 4 voices, and was last updated by  Ninja Lead 10 years, 11 months ago.

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