Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • ppnilsson Friend
    #841620

    hi there,
    which file do I hace to edit to delete the marked positions?

    many thanks,

    Peer


    1. 08-01-_2016_06-51-58
    Luna Garden Moderator
    #844000

    Hi,

    In order to hide the first mark go to file: componentscom_jacommentassetjsja.comment.js

    find for:

    function addActionButton(formName){
        //check if exist toolbar.
        if(jQuery(formName +" .jac-wrapper-actions").length >0 && jQuery(formName +" .jac-act-button").length <=0){
            if(jQuery(formName +"  .jac-expand-form").css("display") == "none"){
                jQuery('<li class="jac-act-button"><a title="'+JACommentConfig.mesExpandForm+'" href="javascript:void(0)">'+ JACommentConfig.mesExpandForm +'</a></li>').appendTo(formName +"  .jac-wrapper-actions");
            }else{
                jQuery('<li class="jac-act-button loaded"><a title="'+JACommentConfig.mesCollapseForm+'" href="javascript:void(0)">'+ JACommentConfig.mesCollapseForm +'</a></li>').appendTo(formName +"  .jac-wrapper-actions");
            }
        }else{
            //don't exist toolbar.
            //don't add action button
            if(jQuery(formName +"  .jac-act-button").length <=0){
                //find element allow add button act
                if(jQuery(formName +" .jac-act-form").length >0){
                    jQuery(formName +" .jac-act-form").show();
                    if(jQuery(formName +"  .jac-expand-form").css('display') == "none"){
                        jQuery('<div class="jac-act-button jac-li-act-only"><a title="'+JACommentConfig.mesExpandForm+'" href="javascript:void(0)">'+ JACommentConfig.mesExpandForm +'</a></div>').appendTo(formName +" .jac-act-form");
                    }else{
                        jQuery('<div class="jac-act-button jac-li-act-only loaded"><a title="'+JACommentConfig.mesCollapseForm+'" href="javascript:void(0)">'+  JACommentConfig.mesCollapseForm +'</a></div>').appendTo(formName +" .jac-act-form");
                    }
                }else{
                    if(jQuery(formName +"  .jac-expand-form").css('display') == "none"){
                        jQuery('<li class="jac-act-button jac-li-act-only"><a title="'+JACommentConfig.mesExpandForm+'" href="javascript:void(0)">'+ JACommentConfig.mesExpandForm +'</a></li>').appendTo(formName +"  ul.form-comment");
                    }else{
                        jQuery('<li class="jac-act-button jac-li-act-only loaded"><a title="'+JACommentConfig.mesCollapseForm+'" href="javascript:void(0)">'+  JACommentConfig.mesCollapseForm +'</a></li>').appendTo(formName +"  ul.form-comment");
                    }
                }
            }
        }

    change to:

    function addActionButton(formName){
        //check if exist toolbar.
        if(jQuery(formName +" .jac-wrapper-actions").length >0 && jQuery(formName +" .jac-act-button").length <=0){
            if(jQuery(formName +"  .jac-expand-form").css("display") == "none"){
                jQuery('<li class="jac-act-button"><a title="'+JACommentConfig.mesExpandForm+'" href="javascript:void(0)">'+ JACommentConfig.mesExpandForm +'</a></li>').appendTo(formName +"  .jac-wrapper-actions");
            }else{
                //jQuery('<li class="jac-act-button loaded"><a title="'+JACommentConfig.mesCollapseForm+'" href="javascript:void(0)">'+ JACommentConfig.mesCollapseForm +'</a></li>').appendTo(formName +"  .jac-wrapper-actions");
            }
        }else{
            //don't exist toolbar.
            //don't add action button
            if(jQuery(formName +"  .jac-act-button").length <=0){
                //find element allow add button act
                if(jQuery(formName +" .jac-act-form").length >0){
                    jQuery(formName +" .jac-act-form").show();
                    if(jQuery(formName +"  .jac-expand-form").css('display') == "none"){
                        jQuery('<div class="jac-act-button jac-li-act-only"><a title="'+JACommentConfig.mesExpandForm+'" href="javascript:void(0)">'+ JACommentConfig.mesExpandForm +'</a></div>').appendTo(formName +" .jac-act-form");
                    }else{
                        //jQuery('<div class="jac-act-button jac-li-act-only loaded"><a title="'+JACommentConfig.mesCollapseForm+'" href="javascript:void(0)">'+  JACommentConfig.mesCollapseForm +'</a></div>').appendTo(formName +" .jac-act-form");
                    }
                }else{
                    if(jQuery(formName +"  .jac-expand-form").css('display') == "none"){
                        jQuery('<li class="jac-act-button jac-li-act-only"><a title="'+JACommentConfig.mesExpandForm+'" href="javascript:void(0)">'+ JACommentConfig.mesExpandForm +'</a></li>').appendTo(formName +"  ul.form-comment");
                    }else{
                        //jQuery('<li class="jac-act-button jac-li-act-only loaded"><a title="'+JACommentConfig.mesCollapseForm+'" href="javascript:void(0)">'+  JACommentConfig.mesCollapseForm +'</a></li>').appendTo(formName +"  ul.form-comment");
                    }
                }
            }
        }

    In order to hide text ‘post comment by’ go to file: componentscom_jacommentthemesdefaulthtmlcommentsaddnew.php

    remove line:

    <?php // echo JText::_('POSTING_AS')." ".$currentUserInfo->username;?>(<a href="<?php echo JURI::base().'index.php?option=com_jacomment&amp;view=users&amp;task=logout_rpx';?>"><?php echo JText::_("LOGOUT");?></a>)

    ppnilsson Friend
    #845260

    great, many thanks

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

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

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