test
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • davidyv Friend
    #160537

    Hi,

    I need JA Comment zone will be folded, with a link “See the comments” to unfold the comments zone. how could i do?

    Thanks,

    David

    Sorry, moved to http://www.joomlart.com/forums/showthread.php?52473-How-to-fold-the-comment-zone&p=223023#post223023

    thuanlq Friend
    #377872

    Hi David,

    You can make fold comment display, please do as following:
    – Open the file “total.php” in the folder “componentscom_jacommentthemesdefaulthtmlcomments”, then change this line code:


    <h2 class="componentheading"><span id="jac-number-total-comment"><?php echo $this->totalAll; ?> <?php if($this->totalAll > 1){echo JText::_("Comments");}else{echo JText::_("Comment");}?></span>

    To


    <h2 class="componentheading"><span id="jac-number-total-comment"><?php echo $this->totalAll; ?> <?php if($this->totalAll > 1){echo JText::_("Comments");}else{echo JText::_("Comment");}?></span>
    </h2>
    <br>
    <span id="show_hide_comments" onClick="showHideComments()"><?php echo JText::_("See the comments");?></span>

    – Now create new js function – showHideComments() in the file “ja.comment.js” in the folder “componentscom_jacommentassetjs”:


    function showHideComments(){
    /*this function will fold & unfold the comments zone*/
    }

    Good luck!!

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

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

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