모바일에서 게시판 리스트의 번호가 보이지 않아요ㅠ 도와주세요

모바일에서도 게시판리스트 번호가 보이게 하고 싶습니다. 도와주세요ㅠ

사이트

워드프레스 에러 기술지원 서비스 전문가에게 맡기세요
좋은 정보와 인맥을 동시에, 워드프레스 사용자 단톡방 참여하기
  • 안녕하세요~^^

    모바일에서도 게시글 목록 페이지에서 번호를 표시하시려면

    FTP로 접속해서 /wp-content/plugins/kboard/skin/사용중인스킨/list.php 파일에서

    아래의 코드를 찾아서

    <?php while($content = $list->hasNextNotice()):?>
    <tr class="kboard-list-notice<?php if($content->uid == kboard_uid()):?> kboard-list-selected<?php endif?>">
    	<td class="kboard-list-uid"><?php echo __('Notice', 'kboard')?></td>
    	<td class="kboard-list-title">
    		<a href="<?php echo $url->set('uid', $content->uid)->set('mod', 'document')->toString()?>">
    			<div class="kboard-default-cut-strings">
    				<?php if($content->isNew()):?><span class="kboard-default-new-notify">New</span><?php endif?>
    				<?php if($content->secret):?><img src="<?php echo $skin_path?>/images/icon-lock.png" alt="<?php echo __('Secret', 'kboard')?>"><?php endif?>
    				<?php echo $content->title?>
    				<span class="kboard-comments-count"><?php echo $content->getCommentsCount()?></span>
    			</div>
    		</a>
    		<div class="kboard-mobile-contents">
    			<span class="contents-item kboard-user"><?php echo apply_filters('kboard_user_display', $content->member_display, $content->member_uid, $content->member_display, 'kboard', $boardBuilder)?></span>
    			<span class="contents-separator kboard-date">|</span>
    			<span class="contents-item kboard-date"><?php echo $content->getDate()?></span>
    			<span class="contents-separator kboard-vote">|</span>
    			<span class="contents-item kboard-vote"><?php echo __('Votes', 'kboard')?> <?php echo $content->vote?></span>
    			<span class="contents-separator kboard-view">|</span>
    			<span class="contents-item kboard-view"><?php echo __('Views', 'kboard')?> <?php echo $content->view?></span>
    		</div>
    	</td>
    	<td class="kboard-list-user"><?php echo apply_filters('kboard_user_display', $content->member_display, $content->member_uid, $content->member_display, 'kboard', $boardBuilder)?></td>
    	<td class="kboard-list-date"><?php echo $content->getDate()?></td>
    	<td class="kboard-list-vote"><?php echo $content->vote?></td>
    	<td class="kboard-list-view"><?php echo $content->view?></td>
    </tr>
    <?php endwhile?>
    <?php while($content = $list->hasNext()):?>
    <tr class="<?php if($content->uid == kboard_uid()):?>kboard-list-selected<?php endif?>">
    	<td class="kboard-list-uid"><?php echo $list->index()?></td>
    	<td class="kboard-list-title">
    		<a href="<?php echo $url->set('uid', $content->uid)->set('mod', 'document')->toString()?>">
    			<div class="kboard-default-cut-strings">
    				<?php if($content->isNew()):?><span class="kboard-default-new-notify">New</span><?php endif?>
    				<?php if($content->secret):?><img src="<?php echo $skin_path?>/images/icon-lock.png" alt="<?php echo __('Secret', 'kboard')?>"><?php endif?>
    				<?php echo $content->title?>
    				<span class="kboard-comments-count"><?php echo $content->getCommentsCount()?></span>
    			</div>
    		</a>
    		<div class="kboard-mobile-contents">
    			<span class="contents-item kboard-user"><?php echo apply_filters('kboard_user_display', $content->member_display, $content->member_uid, $content->member_display, 'kboard', $boardBuilder)?></span>
    			<span class="contents-separator kboard-date">|</span>
    			<span class="contents-item kboard-date"><?php echo $content->getDate()?></span>
    			<span class="contents-separator kboard-vote">|</span>
    			<span class="contents-item kboard-vote"><?php echo __('Votes', 'kboard')?> <?php echo $content->vote?></span>
    			<span class="contents-separator kboard-view">|</span>
    			<span class="contents-item kboard-view"><?php echo __('Views', 'kboard')?> <?php echo $content->view?></span>
    		</div>
    	</td>
    	<td class="kboard-list-user"><?php echo apply_filters('kboard_user_display', $content->member_display, $content->member_uid, $content->member_display, 'kboard', $boardBuilder)?></td>
    	<td class="kboard-list-date"><?php echo $content->getDate()?></td>
    	<td class="kboard-list-vote"><?php echo $content->vote?></td>
    	<td class="kboard-list-view"><?php echo $content->view?></td>
    </tr>
    <?php $boardBuilder->builderReply($content->uid)?>
    <?php endwhile?>

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

    <?php while($content = $list->hasNextNotice()):?>
    <tr class="kboard-list-notice<?php if($content->uid == kboard_uid()):?> kboard-list-selected<?php endif?>">
    	<td class="kboard-list-uid"><?php echo __('Notice', 'kboard')?></td>
    	<td class="kboard-list-title">
    		<a href="<?php echo $url->set('uid', $content->uid)->set('mod', 'document')->toString()?>">
    			<div class="kboard-default-cut-strings">
    				<?php if($content->isNew()):?><span class="kboard-default-new-notify">New</span><?php endif?>
    				<?php if($content->secret):?><img src="<?php echo $skin_path?>/images/icon-lock.png" alt="<?php echo __('Secret', 'kboard')?>"><?php endif?>
    				<?php echo $content->title?>
    				<span class="kboard-comments-count"><?php echo $content->getCommentsCount()?></span>
    			</div>
    		</a>
    		<div class="kboard-mobile-contents">
    			<span class="contents-item kboard-uid">공지사항</span>
    			<span class="contents-separator kboard-uid">|</span>
    			<span class="contents-item kboard-user"><?php echo apply_filters('kboard_user_display', $content->member_display, $content->member_uid, $content->member_display, 'kboard', $boardBuilder)?></span>
    			<span class="contents-separator kboard-date">|</span>
    			<span class="contents-item kboard-date"><?php echo $content->getDate()?></span>
    			<span class="contents-separator kboard-vote">|</span>
    			<span class="contents-item kboard-vote"><?php echo __('Votes', 'kboard')?> <?php echo $content->vote?></span>
    			<span class="contents-separator kboard-view">|</span>
    			<span class="contents-item kboard-view"><?php echo __('Views', 'kboard')?> <?php echo $content->view?></span>
    		</div>
    	</td>
    	<td class="kboard-list-user"><?php echo apply_filters('kboard_user_display', $content->member_display, $content->member_uid, $content->member_display, 'kboard', $boardBuilder)?></td>
    	<td class="kboard-list-date"><?php echo $content->getDate()?></td>
    	<td class="kboard-list-vote"><?php echo $content->vote?></td>
    	<td class="kboard-list-view"><?php echo $content->view?></td>
    </tr>
    <?php endwhile?>
    <?php while($content = $list->hasNext()):?>
    <tr class="<?php if($content->uid == kboard_uid()):?>kboard-list-selected<?php endif?>">
    	<td class="kboard-list-uid"><?php echo $list->index()?></td>
    	<td class="kboard-list-title">
    		<a href="<?php echo $url->set('uid', $content->uid)->set('mod', 'document')->toString()?>">
    			<div class="kboard-default-cut-strings">
    				<?php if($content->isNew()):?><span class="kboard-default-new-notify">New</span><?php endif?>
    				<?php if($content->secret):?><img src="<?php echo $skin_path?>/images/icon-lock.png" alt="<?php echo __('Secret', 'kboard')?>"><?php endif?>
    				<?php echo $content->title?>
    				<span class="kboard-comments-count"><?php echo $content->getCommentsCount()?></span>
    			</div>
    		</a>
    		<div class="kboard-mobile-contents">
    			<div class="kboard-mobile-contents">
    				<span class="contents-item kboard-uid">번호 : <?php echo $list->index()?></span>
    				<span class="contents-separator kboard-uid">|</span>
    				<span class="contents-item kboard-user"><?php echo apply_filters('kboard_user_display', $content->member_display, $content->member_uid, $content->member_display, 'kboard', $boardBuilder)?></span>
    				<span class="contents-separator kboard-date">|</span>
    				<span class="contents-item kboard-date"><?php echo $content->getDate()?></span>
    				<span class="contents-separator kboard-vote">|</span>
    				<span class="contents-item kboard-vote"><?php echo __('Votes', 'kboard')?> <?php echo $content->vote?></span>
    				<span class="contents-separator kboard-view">|</span>
    				<span class="contents-item kboard-view"><?php echo __('Views', 'kboard')?> <?php echo $content->view?></span>
    			</div>
    		</div>
    	</td>
    	<td class="kboard-list-user"><?php echo apply_filters('kboard_user_display', $content->member_display, $content->member_uid, $content->member_display, 'kboard', $boardBuilder)?></td>
    	<td class="kboard-list-date"><?php echo $content->getDate()?></td>
    	<td class="kboard-list-vote"><?php echo $content->vote?></td>
    	<td class="kboard-list-view"><?php echo $content->view?></td>
    </tr>
    <?php $boardBuilder->builderReply($content->uid)?>
    <?php endwhile?>

    위 코드 중에서 아래의 코드와

    <span class="contents-item kboard-uid">공지사항</span>
    <span class="contents-separator kboard-uid">|</span>

    아래의 코드를 문구와 위치는 적당히 수정하신 후에 적용해보세요.

    <span class="contents-item kboard-uid">번호 : <?php echo $list->index()?></span>
    <span class="contents-separator kboard-uid">|</span>

    고맙습니다.

  • 감사합니다!! 잘적용되네요 ㅎ

좋은 정보와 인맥을 동시에, 워드프레스 사용자 단톡방 참여하기