Please, see at This thread. The problem seemed to be solved, but after installing JA Teline template 1.1.8 I've still the duplication of intro with the images that don't fit on JA Thumbnail...
If I put the code <!-- add Salvo to avoid duplicate footer -->
<style type="text/css">
blockquote.article-intro {
display: none;
}
</style>
that first worked, now this brokes an initial blockquote and the plugin "Tabs and Sliders [for articles]" doesn't work more.
See This article
Please, help!

salvomic changed the title to JA Teline V and JA Thumbnail: again duplicated intro.


Maybe I found a workaround putting "JA Thumbnail" as "last ordered" and "Tabs and Sliders [for articles]" as "first ordered". But, why is it so important the position of those plugins?


So, I mustn't change more the file /html/com_content/article/default.php (old workaround), but I must order the plugin "JA Thumbnail" as "last"...

EDIT: however this tip has a negative effect: I'm using a plugin to show attachments in an article ("attachments": see here), and if JA Thumbnail is the last plugin that one shows the "attachment.gif" icon only and not the first and other images... If I put "attachments" after "JA Thumbnail" returns the duplication...
There is an issue between those two plugins.
???

JA Thumbnail should capture only images in articles (intro and full) but not those inserted by plugins or modules...
Or to have an option to set this behaviour.

    saguaros
    The page is this one but some tries the image.gif is still captured but showed as second image in the sequence of JA Thumbnail...

      saguaros it (JA Thumbnail) works but it captures also the image.gif (icon of the attachment in the post), as you can see clicking on the first image of it to show the rest.
      That is ok because JA Thumbnail is positioned after "Attachments" plugin, otherwise we'll see the duplication of intro text also...
      If attachment is disabled I can put JA Thumbnail plugin in every place, but if that is enabled JA must say as last plugin, but doing so it captures also the icon...
      Thanks for attention and help.

        salvomic

        I can't see the image for attachment on this page: https://www.ondaiblea.it/index.php/it/divertimento/spettacolo/10345-lumière-ragusa-dentro-caravaggio-dolor-y-gloria but I think I got your point, basically, JA Thumbnail plugin will retrieve all images in article content. A temporarily workaround could be that you can disable JA Thumbnail plugin for specific article so that it will not cause confusion. To turn off this feature for specific articles, use the {jathumbnail off}tag in that article.

        Regards

        yes, thank you. The issue is mostly with Attachment plugin, so I would like to find a way to put a general {jathumbnail off} only for the images of this plugin.
        Then I would like to understand why without Attachment plugin I can put JA Thumbanil in any position and with it it must stay at last position, what code of that conflicts with JA Thumbnail?

        Thanks for help,
        Salvo

        Hi Salvo,

        Could you share the page where I can see the attachment?

          saguaros
          yes, please see this page, click on the JA Thumnail image so popup it, clic to get the second image: it should be an icon below at side first of the attachment filename but it went captured by JA Thumbnail and presented as image of the article. The attachment is below (see image here): the word "Programma" should have the image.gif icon to the left: it is the image captured by JA T.
          Please, let me know if you meant this, otherwise I'll try to help better and thank you for your patience 🙂

          Salvo

            salvomic Hi. Plugin does what is should. It picks up all images from article and this icon is also in article. I believe best would be to change this attachment image to an icon using background. Please provide an access to ftp and tell me how this attachment plugin is called.


            access credentials are in this thread
            The plugin is Attachments (in Italian Allegati) with some items in plugins (see attached image here).
            Please, tell me if this is ok.

              salvomic

              You can follow with teitbite's suggestion, I will share with the team if there can be a way to exclude specific files or not.

              Regards

                7 months later

                hello again 🙂
                after the last update of Jateline V Template, I've again the issue.
                I had to put the modified html/com_content/article/default.php (see below) otherwise I get the text and the JA Thumbnail box duplicated again below the article (both instances with the toolbar).

                If I disable JA Thumbnail I get only one image and only the intro text.
                I would like not to have two instances, not only to hid one instance with the workaround of the code...

                Please, help!
                See this article for the problem:
                [https://www.ondaiblea.it/index.php/it/sapere/cultura/10490-premio-federico-ii,-a-modica-il-22-dicembre-2019](http://) (now apparently corrected with the below code)
                Salvo


                <?php
                /**
                 * @package     Joomla.Site
                 * @subpackage  com_content
                 *
                 * @copyright   Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
                 * @license     GNU General Public License version 2 or later; see LICENSE.txt
                 */
                
                defined('_JEXEC') or die;
                
                $params   = $this->item->params;
                $urls     = json_decode($this->item->urls);
                /*if ($params->get('show_intro')) {
                	$separator = md5(time());
                	$this->item->text = $this->item->introtext . $separator . $this->item->fulltext;
                	$offset = $this->state->get('list.offset');
                	$dispatcher = JEventDispatcher::getInstance();
                	$dispatcher->trigger('onContentPrepare', array ('com_content.article', &$this->item, &$this->item->params, $offset));
                	$dispatcher->trigger('onContentAfterTitle', array ('com_content.article', &$this->item, &$this->item->params, $offset));
                	$dispatcher->trigger('onContentBeforeDisplay', array ('com_content.article', &$this->item, &$this->item->params, $offset));
                	$dispatcher->trigger('onContentAfterDisplay', array ('com_content.article', &$this->item, &$this->item->params, $offset));
                	$explode = explode($separator, $this->item->text);
                	$this->item->introtext = array_shift($explode);
                	$this->item->text = implode('', $explode);
                }*/
                
                JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
                JHtml::addIncludePath(T3_PATH . '/html/com_content');
                JHtml::addIncludePath(dirname(dirname(__FILE__)));
                ?>
                
                <?php if (JFactory::getApplication()->input->get ('tmpl') == 'component'): ?>
                
                	<?php echo JATemplateHelper::render ($this->item, 'joomla.content.item', array('print' => $this->print, 'item' => $this->item, 'params' => $this->params)) ?>
                
                <?php else: ?>
                
                	<?php if (JATemplateHelper::countModules ('article-top')): ?>
                		<div class="item-row row-top">
                			<?php echo JATemplateHelper::renderModules('article-top') ?>
                		</div>
                	<?php endif ?>
                
                	<div class="item-row row-main">
                		<div class="article-main">
                			<?php echo JATemplateHelper::render ($this->item, 'joomla.content.item', array('print' => $this->print, 'item' => $this->item, 'params' => $this->params)) ?>
                
                			<?php if (isset($urls) && ((!empty($urls->urls_position) && ($urls->urls_position == '0')) || ($params->get('urls_position') == '0' && empty($urls->urls_position))) || (empty($urls->urls_position) && (!$params->get('urls_position')))): ?>
                				<?php echo $this->loadTemplate('links'); ?>
                			<?php endif; ?>
                		</div>
                	</div>
                
                	<?php if (JATemplateHelper::countModules ('article-bottom')): ?>
                		<div class="item-row row-bottom">
                			<?php echo JATemplateHelper::renderModules('article-bottom') ?>
                		</div>
                	<?php endif ?>
                
                <?php endif ?>
                
                <style type="text/css">
                section.article-content p {
                    display: none;
                }
                section.article-content div {
                    display: none;
                }

                  saguaros
                  The bug there is if I put the original (not modified) code of default.php (/template/html/com_content/article).
                  I now modified the code so you cannot see the bug, but the duplicated text and images are there but only hidden...

                  Then,
                  1. with the original code I get full article with full article (intro + main) two times
                  2. two instances of JA Thumbnail plugin also duplicated (4 total): for every series an instance with images, the other not
                  3. I must modify the code to get only one instance of text and a correct JA Thumbnail instance

                  I put the credential, please help.
                  Have a nice day

                  Salvo

                  EDIT: besides, after some tries, now JA Thumbanil is ok but JA popup doesn't popup the images, exiting with the message "the requested code cannot be loaded". Mayabe a cache problem, but I deleted caches and the issue is still there...

                  thank you for help, however no more need to help: we decided to leave "JA Thumbnail" and use now "Sigplus Gallery" with "JA Popup".
                  So doing, the standard /template/html/com_content/default.php is ok: no duplication at all, no problem.
                  The bug come out only with JA Thumbnail.

                  However, if you kindly want still investigate, it could be useful to solve the bug in JA Thumbnail.

                  Thanks
                  Salvo

                    You need to Login to view replies.