1. 정확한 제품 또는 플러그인 이름
kboard
2. 상세 내용
안녕하세요 kboard로 스킨을 커스텀하여 이용중입니다.
저번에 스킨커스텀 완료후 테스트 기간동안 게시글 작성했을땐 이상이없었는데 오늘 게시글을 추가하니 오류가 생겨서요.
1. 게시글 순서를 내림차순으로 설정해서 최신글을 쓰면 맨위에 떠야하는데 최신글이 가운데로 갑니다.
3. 확인 가능한 상세 페이지 주소
https://www.go-cloud-fans.com/information/notice/
4. 수정한 코드 내역 (있다면)
이건 커스텀한 list.php코드입니다.
<ul class="kboard-list-contents">
<?php while($content = $list->hasNextNotice()):?>
<li class="kboard-list-notice<?php if($content->uid == kboard_uid()):?> kboard-list-selected<?php endif?>">
<!-- <div class="kboard-list-category">공지사항</div> -->
<a href="<?php echo $url->set('uid', $content->uid)->set('mod', 'document')->toString()?>">
<div class="kboard-list-title faqTitle">
<div class="kboard-ask-one-cut-strings">
<?php if($content->secret):?><img src="<?php echo $skin_path?>/images/icon-lock.png" class="kboard-icon-lock" alt="<?php echo __('Secret', 'kboard')?>"><?php endif?>
<?php echo $content->title?>
<span class="kboard-comments-count"><?php echo $content->getCommentsCount()?></span>
<?php if($content->isNew()):?><span class="kboard-ask-one-new-notify">N</span><?php endif?>
<?php if($content->category2):?>
<div class="kboard-mobile-status">
<span class="kboard-ask-one-status status-<?php echo array_search($content->category2, $status_list)?>"><?php echo $content->category2?></span>
</div>
<?php endif?>
<!--<div class="kboard-mobile-contents">
<span class="contents-item kboard-user"><?php echo apply_filters('kboard_user_display', $content->getUserName(), $content->getUserID(), $content->getUserName(), 'kboard', $boardBuilder)?></span>
<span class="contents-separator kboard-date">|</span>
<span class="contents-item kboard-date"><?php echo date('y-m-d', strtotime($content->date))?></span>
<span class="contents-separator">|</span>
<span class="contents-item"><?php echo __('Votes', 'kboard')?> <?php echo $content->vote?></span>
<span class="contents-separator">|</span>
<span class="contents-item"><?php echo __('Views', 'kboard')?> <?php echo $content->view?></span>
</div>-->
</div>
<div class="qna-date m">
<span class="contents-item kboard-date"><?php echo date('20y-m-d', strtotime($content->date))?></span>
</div>
</div>
<div class="qna-date p">
<span class="contents-item kboard-date"><?php echo date('20y-m-d', strtotime($content->date))?></span>
</div>
</a>
</li>
<?php endwhile?>
<?php while($content = $list->hasNext()):?>
<li class="<?php if($content->uid == kboard_uid()):?>kboard-list-selected<?php endif?>">
<!-- <div class="kboard-list-category">공지사항</div> -->
<a href="<?php echo $url->set('uid', $content->uid)->set('mod', 'document')->toString()?>">
<div class="kboard-list-title faqTitle">
<div class="kboard-ask-one-cut-strings">
<?php if($content->secret):?><img src="<?php echo $skin_path?>/images/icon-lock.png" class="kboard-icon-lock" alt="<?php echo __('Secret', 'kboard')?>"><?php endif?>
<?php echo $content->title?>
<span class="kboard-comments-count"><?php echo $content->getCommentsCount()?></span>
<?php if($content->isNew()):?><span class="kboard-ask-one-new-notify">N</span><?php endif?>
<?php if($content->category2):?>
<div class="kboard-mobile-status">
<span class="kboard-ask-one-status status-<?php echo array_search($content->category2, $status_list)?>"><?php echo $content->category2?></span>
</div>
<?php endif?>
<!--<div class="kboard-mobile-contents">
<span class="contents-item kboard-user"><?php echo apply_filters('kboard_user_display', $content->getUserName(), $content->getUserID(), $content->getUserName(), 'kboard', $boardBuilder)?></span>
<span class="contents-separator kboard-date">|</span>
<span class="contents-item kboard-date"><?php echo date('y-m-d', strtotime($content->date))?></span>
<span class="contents-separator">|</span>
<span class="contents-item"><?php echo __('Votes', 'kboard')?> <?php echo $content->vote?></span>
<span class="contents-separator">|</span>
<span class="contents-item"><?php echo __('Views', 'kboard')?> <?php echo $content->view?></span>
</div>-->
</div>
</div>
<div class="qna-date">
<span class="contents-item kboard-date"><?php echo date('20y-m-d', strtotime($content->date))?></span>
</div>
</a>
</li>
<?php $boardBuilder->builderReply($content->uid)?>
<?php endwhile?>
</ul>
안녕하세요~^^
해당 페이지 상단에 나오는 게시글 3개는 공지사항 게시글이라
중간에 나오게 보이는 걸로 확인됩니다
공지사항 게시글과 일반 게시글을 구별할 수 있도록 수정해주시겠어요?
고맙습니다.
어 저페이지의 게시글은 모두 공지사항게시글입니다 ! 따로 카테고리 설정도 안하여서 일반게시글은 쓸수가없어요!
근데 개발자도구로 찍어서 보니까 li에 class kboard-list-notice가 안붙어 나오는거같아요!
class가 안붙어 나오는거는 어디서 수정하면 되나요..?