워드프레스 게시판 KBoard(케이보드) 사용중입니다.
관리자 로그인 화면에서는 글수정, 글삭제 버튼이 보이는데
글쓴이에게는 글수정, 글삭제 버튼이 안보입니다. ㅜㅜ
사이트 주소는 leejinhwa.kr 이구요.
해당 소스 파일은 아래와 같습니다.
<div class="kboard-control">
<div class="left">
<span><?php echo __('Date', 'kboard')?><?php echo " " ?>: <?php echo date('Y-m-d', strtotime($content->date))?></span>
</div>
<?php if($board->isEditor($content->member_uid) || $board->permission_write=='all'):?>
<div class="right">
<a href="<?php echo $url->set('uid', $content->uid)->set('mod', 'editor')->toString()?>" class="kboard-avatar-button-small"><?php echo __('Edit', 'kboard')?></a>
<a href="<?php echo $url->set('uid', $content->uid)->set('mod', 'remove')->toString()?>" class="kboard-avatar-button-small" onclick="return confirm('<?php echo __('Are you sure you want to delete?', 'kboard')?>');"><?php echo __('Delete', 'kboard')?></a>
</div>
<?php endif?>
</div>
안녕하세요~^^
올려주신 코드만으로는 원인을 파악할 수 없네요;;
(스킨을 수정하신 분께 문의하시는게 가장 빠를 듯합니다.)
FTP로 접속해서 /wp-content/plugins/kboard/skin/사용중인스킨/document.php
전체 코드를 올려주실 수 있으신가요?
고맙습니다.
전체 코드는 다음과 같습니다.
<div id="kboard-avatar-document" class="kboard-request-form finalform">
<div class="kboard-header"></div>
<div class="kboard-document-wrap" itemscope itemtype="http://schema.org/Article">
<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">
<div class="detail-value"><?php echo $content->title?></div>
</div>
<div class="detail-attr detail-writer">
<div class="detail-name"><?php echo __('Author', 'kboard')?><?php echo " " ?></div>
<div class="detail-value"><?php echo $content->member_display?></div>
</div>
</div>
<?php if( current_user_can('editor') || current_user_can('administrator') ) : ?>
<?php if($board->isEditor($content->member_uid)):?><p>
<div id="kboard-avatar-editor" class="kboard-request-form">
<form method="post" action="<?php echo $url->getContentEditorExecute()?>" enctype="multipart/form-data" onsubmit="return kboard_editor_execute(this);">
<?php wp_nonce_field('kboard-editor-execute', 'kboard-editor-execute-nonce');?>
<input type="hidden" name="action" value="kboard_editor_execute">
<input type="hidden" name="mod" value="editor">
<input type="hidden" name="uid" value="<?php echo $content->uid?>">
<input type="hidden" name="board_id" value="<?php echo $content->board_id?>">
<input type="hidden" name="parent_uid" value="<?php echo $content->parent_uid?>">
<input type="hidden" name="member_uid" value="<?php echo $content->member_uid?>">
<input type="hidden" name="member_display" value="<?php echo $content->member_display?>">
<input type="hidden" name="date" value="<?php echo $content->date?>">
<input type="checkbox" name="secret" value="true" style="display:none!important;" checked>
</form>
</div>
<div class="kboard-control">
<div class="left">
<span><?php echo __('Date', 'kboard')?><?php echo " " ?>: <?php echo date('Y-m-d', strtotime($content->date))?></span>
</div>
<?php if($board->isEditor($content->member_uid) || $board->permission_write=='all'):?>
<div class="right">
<a href="<?php echo $url->set('uid', $content->uid)->set('mod', 'editor')->toString()?>" class="kboard-avatar-button-small"><?php echo __('Edit', 'kboard')?></a>
<a href="<?php echo $url->set('uid', $content->uid)->set('mod', 'remove')->toString()?>" class="kboard-avatar-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 endif?>
<?php endif?>
<div class="kboard-content" itemprop="description">
<div class="content-view">
<?php if($content->thumbnail_file):?><p class="thumbnail-area"><img src="<?php echo get_site_url() . $content->thumbnail_file?>" alt=""></p><?php endif;?>
<?php if(!($content->notice)):?>
<?php endif?>
<!-- 기본 정보-->
<div style="margin-bottom:20px;">
<div class="kboard-doc-row heading">
<h5>기본 정보</h5>
</div>
<!--
<div class="kboard-doc-row">
<label class="doc-name"><?php echo __('성명', 'kboard')?></label>
<div class="doc-value">
<?php if($content->member_uid):?>
<span title="<?php echo $content->member_display?>"></span><?php echo $content->member_display . ' '?>
<?php else:?>
<?php echo $content->member_display?>
<?php endif?>
</div>
</div>
-->
<div class="kboard-doc-row">
<label class="doc-name"><?php echo __('성함 및 관계', 'kboard')?></label>
<div class="doc-value"><?php echo $content->option->usernamerel?></div>
</div>
<div class="kboard-doc-row">
<label class="doc-name"><?php echo __('연락처', 'kboard')?></label>
<div class="doc-value"><?php echo $content->option->usermobilephone?></div>
</div>
<div class="kboard-doc-row">
<label class="doc-name"><?php echo __('이메일', 'kboard')?></label>
<div class="doc-value"><?php echo $content->option->useremail?></div>
</div>
<div class="kboard-doc-row">
<label class="doc-name"><?php echo __('예식날짜', 'kboard')?></label>
<div class="doc-value"><?php echo $content->option->userdate?></div>
</div>
<div class="kboard-doc-row">
<label class="doc-name"><?php echo __('예식장소', 'kboard')?></label>
<div class="doc-value"><?php echo $content->option->location?></div>
</div>
<div class="kboard-doc-row">
<label class="doc-name"><?php echo __('메세지', 'kboard')?></label>
<div class="content-textbox"><?php echo $content->content?></div>
</div>
<?php if(isset($content->attach->file1)):?>
<div class="kboard-doc-row">
<label class="doc-name"><?php echo __('첨부 이미지', 'kboard')?></label>>
<div class="doc-value">
<a href="<?php echo $url->getDownloadURLWithAttach($content->uid, 'file1')?>"><?php echo $content->attach->file1[1]?></a>
</div>
</div>
<?php endif?>
</div>
<?php if($content->category1 == '예약확정' ):?>
<!-- 예약확정 정보 -->
<div id="confirm-info">
<div class="kboard-doc-row heading">
<h5>예약확정 정보</h5>
</div>
<!-- 선택 상품 시작 -->
<div class="kboard-doc-row">
<label class="doc-name"><?php echo __('선택상품', 'kboard')?></label>
<div class="doc-value">
<!-- 본식촬영 -->
<?php if($content->option->wedding): ?>
<div class="prd">
<label class="prd-title prdname"><?php echo __('본식촬영', 'kboard')?></label>
<div class="prd-content">
<div class="prd-content-row">
<span class="prd-label prdnamesub">- 기본옵션</span>
<span class="prd-default-opt"><?php echo $content->option->wedding_opt?></span>
</div>
<div class="prd-content-row">
<span class="prd-label prdnamesub">- 추가옵션</span>
<ul>
<?php if($content->option->wedding_add1): ?>
<li class="doc-list"><?php echo $content->option->wedding_add1 ?></li>
<?php endif ?>
<?php if($content->option->wedding_add2): ?>
<li class="doc-list"><?php echo $content->option->wedding_add2 ?></li>
<?php endif ?>
<?php if($content->option->wedding_add3): ?>
<li class="doc-list"><?php echo $content->option->wedding_add3 ?></li>
<?php endif ?>
</ul>
</div>
</div>
</div>
<?php endif ?>
<!-- 야외셀프웨딩스타일링 -->
<?php if($content->option->selfwedding): ?>
<div class="prd">
<label class="prd-title prdname"><?php echo __('야외셀프웨딩스타일링', 'kboard')?></label>
<div class="prd-content">
<div class="prd-content-row">
<span class="prd-label prdnamesub">- 기본옵션</span>
<span class="prd-default-opt"><?php echo $content->option->selfwedding_opt?></span>
</div>
<div class="prd-content-row">
<span class="prd-label prdnamesub">- 추가옵션</span>
<ul>
<?php if($content->option->selfwedding_add1): ?>
<li class="doc-list"><?php echo $content->option->selfwedding_add1 ?></li>
<?php endif ?>
<?php if($content->option->selfwedding_add2): ?>
<li class="doc-list"><?php echo $content->option->selfwedding_add2 ?></li>
<?php endif ?>
</ul>
</div>
</div>
</div>
<?php endif ?>
<!-- 브라이드 로망스 -->
<?php if($content->option->brideromance): ?>
<div class="prd">
<label class="prd-title prdname"><?php echo __('브라이드로망스', 'kboard')?></label>
<div class="prd-content">
<div class="prd-content-row">
<span class="prd-label prdnamesub">- 기본옵션</span>
<span class="prd-default-opt"><?php echo $content->option->brideromance_opt?></span>
</div>
<div class="prd-content-row">
<span class="prd-label prdnamesub">- 추가옵션</span>
<ul>
<?php if($content->option->brideromance_add1): ?>
<li class="doc-list"><?php echo $content->option->brideromance_add1 ?></li>
<?php endif ?>
<?php if($content->option->brideromance_add2): ?>
<li class="doc-list"><?php echo $content->option->brideromance_add2 ?></li>
<?php endif ?>
<?php if($content->option->brideromance_add3): ?>
<li class="doc-list"><?php echo $content->option->brideromance_add3 ?></li>
<?php endif ?>
<?php if($content->option->brideromance_add4): ?>
<li class="doc-list"><?php echo $content->option->brideromance_add4 ?></li>
<?php endif ?>
</ul>
</div>
</div>
</div>
<?php endif ?>
<!-- 브라이덜 샤워 -->
<?php if($content->option->bridalshower): ?>
<div class="prd">
<label class="prd-title prdname"><?php echo __('브라이덜샤워', 'kboard')?></label>
<div class="prd-content">
<div class="prd-content-row">
<span class="prd-label prdnamesub">- 기본옵션</span>
<span class="prd-default-opt"><?php echo $content->option->bridalshower_opt?></span>
</div>
<div class="prd-content-row">
<span class="prd-label prdnamesub">- 추가인원</span>
<span class="prd-person prd-default-opt"><?php echo $content->option->bridalshowerp?></span>
</div>
</div>
</div>
<?php endif ?>
<!-- 돌 스냅 -->
<?php if($content->option->baby): ?>
<div class="prd">
<label class="prd-title prdname"><?php echo __('돌스냅', 'kboard')?></label>
<div class="prd-content">
<div class="prd-content-row">
<span class="prd-label prdnamesub">- 기본옵션</span>
<span class="prd-default-opt"><?php echo $content->option->baby_opt?></span>
</div>
<div class="prd-content-row">
<span class="prd-label prdnamesub">- 추가옵션</span>
<span class="prd-default-opt"><?php echo $content->option->baby_add1?></span>
</div>
</div>
</div>
<?php endif ?>
<!-- 가족 스냅 -->
<?php if($content->option->family): ?>
<div class="prd">
<label class="prd-title prdname"><?php echo __('가족스냅', 'kboard')?></label>
<div class="prd-content">
<div class="prd-content-row">
<span class="prd-label prdnamesub">- 기본옵션</span>
<span class="prd-default-opt"><?php echo $content->option->family_opt?></span>
</div>
</div>
</div>
<?php endif ?>
<!-- 기타 스냅 -->
<?php if($content->option->etc): ?>
<div class="prd">
<label class="prd-title prdname"><?php echo __('기타스냅', 'kboard')?></label>
<div class="prd-content">
<div class="prd-content-row">
</div>
</div>
</div>
<?php endif ?>
</div>
</div>
<!--선택상품 끝-->
<div class="kboard-doc-row">
<label class="doc-name"><?php echo __('신부님 정보', 'kboard')?></label>
<ul>
<li class="doc-list"><?php echo $content->option->bname?></li>
<li class="doc-list"><?php echo $content->option->bnameen?></li>
<li class="doc-list"><?php echo $content->option->bmobile?></li>
</ul>
</div>
<div class="kboard-doc-row">
<label class="doc-name"><?php echo __('신랑님 정보', 'kboard')?></label>
<ul>
<li class="doc-list"><?php echo $content->option->gname?></li>
<li class="doc-list"><?php echo $content->option->gnameen?></li>
<li class="doc-list"><?php echo $content->option->gmobile?></li>
</ul>
</div>
<div class="kboard-doc-row">
<label class="doc-name"><?php echo __('메이크업실', 'kboard')?></label>
<div class="doc-value"><?php echo $content->option->makeup?></div>
</div>
<div class="kboard-doc-row">
<label class="doc-name"><?php echo __('이벤트 참여', 'kboard')?></label>
<ul>
<li class="doc-list"><?php echo $content->option->event01?></li>
<li class="doc-list"><?php echo $content->option->event02?></li>
</ul>
</div>
</div>
<?php endif?>
</div>
</div>
</div>
<?php if($board->isComment()):?>
<div class="kboard-comments-area"><?php echo $board->buildComment($content->uid)?></div>
<?php endif?>
</div>
안녕하세요.
올려주신 코드를 확인해보니
<?php if( current_user_can('editor') || current_user_can('administrator') ) : ?>
이 코드가 있는데요.
관리자인지 아닌지 체크하는 코드입니다.
역시 스킨을 만드신 분께서 가장 잘 알 듯합니다.
어떤 의도로 해당 코드를 추가했는지 살펴보시고, 불필요하다면 제거하셔야 할 듯합니다.
고맙습니다.