Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • wemadethis Friend
    #158189

    Hi,

    The Add Comment button displays after the page break in published articles. How do I fix this to display right after “Read More”? Please view the attached photo.

    The JA Comment default quickstart theme with JA Mona template displays great. Not sure what the issues it here.

    Thank you for your help,
    -Tri


    1. addcomment
    aman204 Friend
    #369720

    Can you provide a link to your site

    wemadethis Friend
    #369725

    Hi Aman,

    Thanks for the reply. Our site is http://www.hikevietnam.com

    Thank you,
    -Tri

    thuanlq Friend
    #370121

    Hi @wemadethis,
    You can resolve your issue, please do as following:
    – On configuration page of “Content – JA Comment” plugin, please choose “position of add new button” param is “After content display”.
    – Modify code in “default_item.php” file, in this file:
    change


    <?php if ($this->item->params->get('show_readmore') && $this->item->readmore) : ?>
    <a href="<?php echo $this->item->readmore_link; ?>" title="<?php echo $this->item->title; ?>" class="readon<?php echo $this->item->params->get('pageclass_sfx'); ?>">
    <?php if ($this->item->readmore_register) : ?>
    <?php echo JText::_('Register to read more...'); ?>
    <?php else : ?>
    <?php echo JText::_('Read more...'); ?>
    <?php endif; ?>
    </a>
    <?php endif; ?>

    </div>

    <span class="article_separator"> </span>
    <?php echo $this->item->event->afterDisplayContent; //Copy this line code?>

    To


    <?php if ($this->item->params->get('show_readmore') && $this->item->readmore) : ?>
    <a href="<?php echo $this->item->readmore_link; ?>" title="<?php echo $this->item->title; ?>" class="readon<?php echo $this->item->params->get('pageclass_sfx'); ?>">
    <?php if ($this->item->readmore_register) : ?>
    <?php echo JText::_('Register to read more...'); ?>
    <?php else : ?>
    <?php echo JText::_('Read more...'); ?>
    <?php endif; ?>
    </a>
    <?php endif; ?>
    <?php echo $this->item->event->afterDisplayContent;//After change code ?>
    </div>

    <span class="article_separator"> </span>
    //delete this line code

    – Modify code in “templatesja_monahtmlcom_contentcategoryblog_item.php”, in this file:
    change code


    <?php if ($this->item->params->get('show_readmore') && $this->item->readmore) : ?>
    <p>
    ....
    </p>
    <?php endif; ?>

    </div></div>

    </div>

    <?php echo $this->escape($this->item->event->afterDisplayContent); //copy and delete this line?>

    To

    <?php if ($this->item->params->get('show_readmore') && $this->item->readmore) : ?>
    <p>
    ...
    </p>
    <?php endif; ?>
    <?php echo $this->escape($this->item->event->afterDisplayContent); //Paste to this line ?>
    </div></div>

    </div>

    – Change style on template css to display jacomment button

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

This topic contains 4 replies, has 3 voices, and was last updated by  thuanlq 13 years, 4 months ago.

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