KBoard 에스크원 상태 링크화 질문

안녕하세요

새로운 스킨인 "KBoard 크로스 링크" 스킨을 둘러봤는데요

해당스킨의 리스트에서 카테고리를 클릭하게되면 해당하는 카테고리만 리스트에 정렬되게 되있는데

이걸 혹시 에스크원에도 사용하게할수있을까요?

답변대기를 누르면 답변대기만 나오게 그리고 답변완료를 누르면 답변완료가 보이게 설정하고싶습니다

좋은 정보와 인맥을 동시에, 워드프레스 사용자 단톡방 참여하기
좋은 정보와 인맥을 동시에, 워드프레스 사용자 단톡방 참여하기
  • 안녕하세요~^^

    FTP로 접속해서 /wp-content/plugins/kboard/skin/ask-one/list.php 파일에서

    아래의 코드를 찾아서

    <td class="kboard-list-status">
    	<?php if($content->category2 == '답변대기'):?><span class="kboard-ask-one-status-wait">답변대기</span><?php endif?>
    	<?php if($content->category2 == '답변완료'):?><span class="kboard-ask-one-status-complete">답변완료</span><?php endif?>
    </td>

    아래의 코드로 교체해보세요.

    <td class="kboard-list-status">
    	<?php if($content->category2 == '답변대기'):?><a href="<?php echo $url->set('category2', $content->category2)->set('pageid', '1')->set('mod', 'list')->toString()?>"><span class="kboard-ask-one-status-wait">답변대기</span></a><?php endif?>
    	<?php if($content->category2 == '답변완료'):?><a href="<?php echo $url->set('category2', $content->category2)->set('pageid', '1')->set('mod', 'list')->toString()?>"><span class="kboard-ask-one-status-complete">답변완료</span></a><?php endif?>
    </td>

    고맙습니다.

  • 답변감사합니다

    리스트에선 정상적으로 작동하는데

    latest로 저번에 질문드린 분류값을 따로 생성하여 카테고리2를 표시하고있는데 latest.php쪽도 똑같이 변경을 해봤는데 잘안됩니다

    홈페이지 메인에 최신글(분류값표시)을 삽입하였을때 그 분류값을 누르면 해당 게시판리스트로 이동후 그분류값에 대한 카테고리만 표시되겠끔하고싶은데

    많이 어려운거같습니다 리스트는 알려주신데로 쉽게 설정했습니다

    혹시 이점에 대해서도 알려주실수있나요?

  • 안녕하세요~^^

    1. FTP로 접속해서 /wp-content/plugins/kboard/skin/ask-one/latest.php 파일에

    아래의 코드를 찾아서

    <tr>
    	<th class="kboard-latest-title"><?php echo __('Title', 'kboard')?></th>
    	<th class="kboard-latest-date"><?php echo __('Date', 'kboard')?></th>
    </tr>

    아래의 코드처럼 적절히 수정 후 적용해보세요.

    <tr>
    	<th class="kboard-latest-title"><?php echo __('Title', 'kboard')?></th>
    	<th class="kboard-latest-date"><?php echo __('Date', 'kboard')?></th>
    	<th class="kboard-latest-category2">상태</th>
    </tr>

     

    2. latest.php 파일에서 아래의 코드를 찾아서

    <tr>
    	<td class="kboard-latest-title">
    		<a href="<?php echo $url->set('uid', $content->uid)->set('mod', 'document')->toStringWithPath($board_url)?>">
    			<div class="kboard-ask-one-cut-strings">
    				<?php if($content->isNew()):?><span class="kboard-ask-one-new-notify">N</span><?php endif?>
    				<?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>
    			</div>
    		</a>
    	</td>
    	<td class="kboard-latest-date"><?php echo $content->getDate()?></td>
    </tr>

    아래의 코드처럼 적용해보세요.

    <tr>
    	<td class="kboard-latest-title">
    		<a href="<?php echo $url->set('uid', $content->uid)->set('mod', 'document')->toStringWithPath($board_url)?>">
    			<div class="kboard-ask-one-cut-strings">
    				<?php if($content->isNew()):?><span class="kboard-ask-one-new-notify">N</span><?php endif?>
    				<?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>
    			</div>
    		</a>
    	</td>
    	<td class="kboard-latest-date"><?php echo $content->getDate()?></td>
    	<td class="kboard-latest-category2">
    		<?php if($content->category2 == '답변대기'):?><a href="<?php echo $url->set('category2', $content->category2)->set('pageid', '1')->set('mod', 'list')->toStringWithPath($board_url)?>"><span class="kboard-ask-one-status-wait">답변대기</span></a><?php endif?>
    		<?php if($content->category2 == '답변완료'):?><a href="<?php echo $url->set('category2', $content->category2)->set('pageid', '1')->set('mod', 'list')->toStringWithPath($board_url)?>"><span class="kboard-ask-one-status-complete">답변완료</span></a><?php endif?>
    	</td>
    </tr>

    3. style.css 파일에서

    아래의 코드를 찾아서

    #kboard-ask-one-latest table .kboard-latest-date { width: 80px; text-align: center; font-size: 13px; }

    찾은 코드 밑에 아래의 코드를 추가해보세요.

    #kboard-ask-one-latest table .kboard-latest-category2 { text-align: center; }

    다른 CSS 속성은 사이트에 맞게 적절하게 수정해보세요.

    고맙습니다.

  • 답변감사합니다

    해당 코드는 게시판 하나당 하나의 최신글만 적용이되는거같습니다

    감사합니다

워드프레스 에러 기술지원 서비스 전문가에게 맡기세요