게시판 글을 클릭하면 나오는 아래쪽에 있는 목록보기, 답글쓰기, 글수정, 글삭제 버튼을 글 위쪽에도 항상 보이게 하고 싶은데 가능한가요?

안녕하세요. 좋은 아침입니다.

워드프레스 게시판 KBoard(케이보드) 사용중입니다.

게시판 글을 클릭하면 나오는 아래쪽에 있는 목록보기, 답글쓰기, 글수정, 글삭제 버튼을  글 위쪽에도 항상 보이게 하고 싶은데 가능한가요? (샘플로 그림 아래 첨부하였습니다.)

 

그럼 좋은 하루 되세요. 감사합니다.

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

    FTP로 접속해서 스킨 파일을 수정해주세요.

    /wp-content/plugins/kboard/skin/사용중인스킨/document.php 파일을 수정해주세요.

     

    아래 코드를 원하시는 상단에 추가를 하시면 되겠습니다.

    <div class="kboard-control">
    	<div class="left">
    		<a href="<?php echo $url->set('mod', 'list')->toString()?>" class="kboard-default-button-small"><?php echo __('List', 'kboard')?></a>
    		<?php if($board->isReply() && !$content->notice):?><a href="<?php echo $url->set('parent_uid', $content->uid)->set('mod', 'editor')->toString()?>" class="kboard-default-button-small"><?php echo __('Reply', 'kboard')?></a><?php endif?>
    	</div>
    	<?php if($content->isEditor() || $board->permission_write=='all'):?>
    	<div class="right">
    		<a href="<?php echo $url->set('uid', $content->uid)->set('mod', 'editor')->toString()?>" class="kboard-default-button-small"><?php echo __('Edit', 'kboard')?></a>
    		<a href="<?php echo $url->getContentRemove($content->uid)?>" class="kboard-default-button-small" onclick="return confirm('<?php echo __('Are you sure you want to delete?', 'kboard')?>');"><?php echo __('Delete', 'kboard')?></a>
    	</div>
    	<?php endif?>
    </div>

     

    default 스킨을 사용하고 있다면 아래 코드를 사용해보세요.

    <div id="kboard-document">
    	<div id="kboard-default-document">
    		
    		<!-- 새로 추가한 버튼 태그 시작 -->
    		<div class="kboard-control">
    			<div class="left">
    				<a href="<?php echo $url->set('mod', 'list')->toString()?>" class="kboard-default-button-small"><?php echo __('List', 'kboard')?></a>
    				<?php if($board->isReply() && !$content->notice):?><a href="<?php echo $url->set('parent_uid', $content->uid)->set('mod', 'editor')->toString()?>" class="kboard-default-button-small"><?php echo __('Reply', 'kboard')?></a><?php endif?>
    			</div>
    			<?php if($content->isEditor() || $board->permission_write=='all'):?>
    			<div class="right">
    				<a href="<?php echo $url->set('uid', $content->uid)->set('mod', 'editor')->toString()?>" class="kboard-default-button-small"><?php echo __('Edit', 'kboard')?></a>
    				<a href="<?php echo $url->getContentRemove($content->uid)?>" class="kboard-default-button-small" onclick="return confirm('<?php echo __('Are you sure you want to delete?', 'kboard')?>');"><?php echo __('Delete', 'kboard')?></a>
    			</div>
    			<?php endif?>
    		</div>
    		<!-- 새로 추가한 버튼 태그 끝 -->
    		
    		<div class="kboard-document-wrap" itemscope itemtype="http://schema.org/Article">
    			<div class="kboard-title" itemprop="name">
    				<h1><?php echo $content->title?></h1>
    			</div>
    			
    			<div class="kboard-detail">
    				<?php if($content->category1):?>
    				<div class="detail-attr detail-category1">
    					<div class="detail-name"><?php echo $content->category1?></div>
    				</div>
    				<?php endif?>
    				<?php if($content->category2):?>
    				<div class="detail-attr detail-category2">
    					<div class="detail-name"><?php echo $content->category2?></div>
    				</div>
    				<?php endif?>
    				<div class="detail-attr detail-writer">
    					<div class="detail-name"><?php echo __('Author', 'kboard')?></div>
    					<div class="detail-value"><?php echo apply_filters('kboard_user_display', $content->member_display, $content->member_uid, $content->member_display, 'kboard', $boardBuilder)?></div>
    				</div>
    				<div class="detail-attr detail-date">
    					<div class="detail-name"><?php echo __('Date', 'kboard')?></div>
    					<div class="detail-value"><?php echo date('Y-m-d H:i', strtotime($content->date))?></div>
    				</div>
    				<div class="detail-attr detail-view">
    					<div class="detail-name"><?php echo __('Views', 'kboard')?></div>
    					<div class="detail-value"><?php echo $content->view?></div>
    				</div>
    			</div>
    			
    			<div class="kboard-content" itemprop="description">
    				<div class="content-view">
    					<?php echo $content->content?>
    				</div>
    			</div>
    			
    			<div class="kboard-document-action">
    				<div class="left">
    					<button type="button" class="kboard-button-action kboard-button-like" onclick="kboard_document_like(this)" data-uid="<?php echo $content->uid?>" title="<?php echo __('Like', 'kboard')?>"><?php echo __('Like', 'kboard')?> <span class="kboard-document-like-count"><?php echo intval($content->like)?></span></button>
    					<button type="button" class="kboard-button-action kboard-button-unlike" onclick="kboard_document_unlike(this)" data-uid="<?php echo $content->uid?>" title="<?php echo __('Unlike', 'kboard')?>"><?php echo __('Unlike', 'kboard')?> <span class="kboard-document-unlike-count"><?php echo intval($content->unlike)?></span></button>
    				</div>
    				<div class="right">
    					<button type="button" class="kboard-button-action kboard-button-print" onclick="kboard_document_print('<?php echo $url->getDocumentPrint($content->uid)?>')" title="<?php echo __('Print', 'kboard')?>"><?php echo __('Print', 'kboard')?></button>
    				</div>
    			</div>
    			
    			<?php if($content->isAttached()):?>
    			<div class="kboard-attach">
    				<?php foreach($content->attach as $key=>$attach):?>
    				<button type="button" class="kboard-button-action kboard-button-download" onclick="window.location.href='<?php echo $url->getDownloadURLWithAttach($content->uid, $key)?>'" title="<?php echo sprintf(__('Download %s', 'kboard'), $attach[1])?>"><?php echo $attach[1]?></button>
    				<?php endforeach?>
    			</div>
    			<?php endif?>
    		</div>
    		
    		<?php if($content->visibleComments()):?>
    		<div class="kboard-comments-area"><?php echo $board->buildComment($content->uid)?></div>
    		<?php endif?>
    		
    		<div class="kboard-document-navi">
    			<div class="kboard-prev-document">
    				<?php
    				$bottom_content_uid = $content->getPrevUID();
    				if($bottom_content_uid):
    				$bottom_content = new KBContent();
    				$bottom_content->initWithUID($bottom_content_uid);
    				?>
    				<a href="<?php echo $url->getDocumentURLWithUID($bottom_content_uid)?>">
    					<span class="navi-arrow">«</span>
    					<span class="navi-document-title kboard-default-cut-strings"><?php echo $bottom_content->title?></span>
    				</a>
    				<?php endif?>
    			</div>
    			
    			<div class="kboard-next-document">
    				<?php
    				$top_content_uid = $content->getNextUID();
    				if($top_content_uid):
    				$top_content = new KBContent();
    				$top_content->initWithUID($top_content_uid);
    				?>
    				<a href="<?php echo $url->getDocumentURLWithUID($top_content_uid)?>">
    					<span class="navi-document-title kboard-default-cut-strings"><?php echo $top_content->title?></span>
    					<span class="navi-arrow">»</span>
    				</a>
    				<?php endif?>
    			</div>
    		</div>
    		
    		<div class="kboard-control">
    			<div class="left">
    				<a href="<?php echo $url->set('mod', 'list')->toString()?>" class="kboard-default-button-small"><?php echo __('List', 'kboard')?></a>
    				<?php if($board->isReply() && !$content->notice):?><a href="<?php echo $url->set('parent_uid', $content->uid)->set('mod', 'editor')->toString()?>" class="kboard-default-button-small"><?php echo __('Reply', 'kboard')?></a><?php endif?>
    			</div>
    			<?php if($content->isEditor() || $board->permission_write=='all'):?>
    			<div class="right">
    				<a href="<?php echo $url->set('uid', $content->uid)->set('mod', 'editor')->toString()?>" class="kboard-default-button-small"><?php echo __('Edit', 'kboard')?></a>
    				<a href="<?php echo $url->getContentRemove($content->uid)?>" class="kboard-default-button-small" onclick="return confirm('<?php echo __('Are you sure you want to delete?', 'kboard')?>');"><?php echo __('Delete', 'kboard')?></a>
    			</div>
    			<?php endif?>
    		</div>
    		
    		<?php if(!$board->meta->always_view_list):?>
    		<div class="kboard-default-poweredby">
    			<a href="http://www.cosmosfarm.com/products/kboard" onclick="window.open(this.href);return false;" title="<?php echo __('KBoard is the best community software available for WordPress', 'kboard')?>">Powered by KBoard</a>
    		</div>
    		<?php endif?>
    	</div>
    </div>

     

    고맙습니다.

  • 안녕하세요. 

    적용 너무 잘 됩니다.

    항상 감사드리고 주변에 홍보 많이 하겠습니다.

    감사합니다!!

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