Support Tickets - Comments Title when off

Comments Title when off

CMS 28.11.2015 2785 Bug Report Status: Closed Solution: Yes bluesatkv


Hi Jerome,

Next idea for your future version.

BLOG:

I think that If comments are off in article it is not important to be shown info about the number of comments.

Code for comments is in line 40 in original file plugins/blog/template/blogart.php.

New idea with hide whole 'div' for comments in blog

<!-- Comments -->
                    <?php if (JAK_BLOGPOST && $JAK_COMMENT_FORM) { ?>
                    <div class="post-coments">
                        <h4><?php echo $tlblog["blog"]["d10"];?> (<span id="cComT"><?php echo $JAK_COMMENTS_TOTAL;?></span>)</h4>
                        <ul class="post-comments">
                        <?php if (isset($JAK_COMMENTS) && is_array($JAK_COMMENTS)) foreach($JAK_COMMENTS as $v) { ?>
                            <li>
                                <div class="comment-wrapper">
                                    <div class="comment-author"><img src="<?php if ($v["userid"] != 0) { echo BASE_URL.JAK_FILES_DIRECTORY.'/userfiles'.$v["picture"]; } else { echo BASE_URL.JAK_FILES_DIRECTORY.'/userfiles'.'/standard.png'; }?>" alt="avatar" /> <?php echo $v["username"];?></div>
                                    <?php if ($CHECK_USR_SESSION == $v["session"]) { ?>
                                    <div class="alert alert-info"><?php echo $tl["general"]["g103"];?></div>
                                    <?php } ?>
                                    <div class="com">
                                        <?php echo $v["message"];?>
                                    </div>
                                    
                                    <!-- Comment Controls -->
                                    <div class="comment-actions">
                                        <span class="comment-date"><?php echo $v["created"];?></span>
                                        <?php if (JAK_BLOGMODERATE) { ?>
                                        <a href="<?php echo $v["parseurl1"];?>" class="btn btn-default btn-xs"><i class="fa fa-trash-o"></i></a>
                                        <?php } if (JAK_BLOGPOSTDELETE && $v["userid"] == JAK_USERID || JAK_BLOGMODERATE) { ?>
                                        <a href="<?php echo $v["parseurl2"];?>" class="btn btn-default btn-xs commedit"><i class="fa fa-pencil"></i></a>
                                        <?php } if (JAK_BLOGPOSTDELETE && $v["userid"] == JAK_USERID || JAK_BLOGMODERATE) { ?>
                                        <a href="<?php echo $v["parseurl3"];?>" class="btn btn-default btn-xs"><i class="fa fa-ban"></i></a>
                                        <?php } ?>
                                    </div>
                                </div>
                            </li>
                        <?php } ?>
                            <li id="insertPost"></li>
                        </ul>
                        
                        <!-- Show Comment Editor if set so -->
                        <?php if (JAK_BLOGPOST && $JAK_COMMENT_FORM) { include_once APP_PATH.'template/'.$jkv["sitestyle"].'/userform.php'; } ?>
                        
                    </div>
                    <?php } ?>

Same is for FAQ


Replies (3)

  • avatar Jerome

    Already changed in CMS 1.5, thank you.

    28.11.2015 0
  • avatar bluesatkv

    Ok, many thanks for your support. Your CMS is already perfect laughing

    28.11.2015 0
  • avatar Jerome

    Fixed within version 1.5

    *** Ticket closed ***

    30.11.2015 0