Tagged: JAComment hide posting as
hi there, which file do I hace to edit to delete the marked positions?
many thanks,
Peer
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&view=users&task=logout_rpx';?>"><?php echo JText::_("LOGOUT");?></a>)
great, many thanks
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
New Unified Portal is live
Must Read
Please post all new support queries in our New Forum.
Please read this Announcement for details.