-
AuthorPosts
-
January 2, 2011 at 12:55 pm #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
aman204 Friendaman204
- Join date:
- January 2010
- Posts:
- 1945
- Downloads:
- 0
- Uploads:
- 43
- Thanks:
- 11
- Thanked:
- 418 times in 356 posts
January 2, 2011 at 9:47 pm #369720Can you provide a link to your site
January 2, 2011 at 9:57 pm #369725thuanlq Friendthuanlq
- Join date:
- October 2010
- Posts:
- 528
- Downloads:
- 0
- Uploads:
- 29
- Thanks:
- 8
- Thanked:
- 121 times in 99 posts
January 5, 2011 at 3:16 am #370121Hi @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 buttonAuthorPostsViewing 4 posts - 1 through 4 (of 4 total)This topic contains 4 replies, has 3 voices, and was last updated by thuanlq 13 years, 11 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Add Comment button displaying incorrectly
Viewing 4 posts - 1 through 4 (of 4 total)