맨 아래 'Powered by KBoard' 문구가 보이는데 이걸 글쓰기와 동일한 라인에 두려고 노력중인데 잘안되서 질문드립니다
<div class="kboard-thumbnail-poweredby">
<div class="kboard-control">
<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>
<a href="<?php echo $url->set('mod', 'editor')->toString()?>" class="kboard-thumbnail-button-small"><?php echo __('New', 'kboard')?></a>
</div>
</div>
이런식으로 변경을했는데 글쓰기박스하고 문구하고 딱 달라붙어버리는 현상이 생기는데요
문구는 왼쪽으로 글쓰기는 원위치인 오른쪽으로 표기하려면 어떻게해야하나요?
아래처럼 해보시면 어떨까 합니다.
굵게 표시된 코드를 추가해봤습니다.
<div class="kboard-thumbnail-poweredby">
<div class="kboard-control">
<div style="float:left"><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>
<div style="float:right"><a href="<?php echo $url->set('mod', 'editor')->toString()?>" class="kboard-thumbnail-button-small"><?php echo __('New', 'kboard')?></a></div>
</div>
</div>
답변 감사합니다.
올려주신 코드로 수정할 경우 글쓰기가 가능한 사용자한테만 Powered by KBoard가 노출되는 현상이 발생합니다.
올려주신 코드 외 다른 부분에 권한 체크하는 코드가 있는 듯합니다.
스킨의 editor.php 파일의 전체 코드를 올려주시겠어요?
모든 게시판에는 글쓰기가 로그인 사용자 또는 특정 권한의 사용자한테로 설정이 돼있습니다.
list.php의 전체 코드입니다.
<div id="kboard-thumbnail-list">
<!-- 게시판 정보 시작 -->
<div class="kboard-list-header">
<?php if(!$board->isPrivate()):?>
<div class="kboard-total-count">
<?php echo __('Total', 'kboard')?> <?php echo number_format($board->getListTotal())?>
</div>
<?php endif?>
<div class="kboard-sort">
<form id="kboard-sort-form-<?php echo $board->id?>" method="get" action="<?php echo $url->toString()?>">
<?php echo $url->set('pageid', '1')->set('category1', '')->set('category2', '')->set('target', '')->set('keyword', '')->set('mod', 'list')->set('kboard_list_sort_remember', $board->id)->toInput()?>
<select name="kboard_list_sort" onchange="jQuery('#kboard-sort-form-<?php echo $board->id?>').submit();">
<option value="newest"<?php if($list->getSorting() == 'newest'):?> selected<?php endif?>><?php echo __('Newest', 'kboard')?></option>
<option value="best"<?php if($list->getSorting() == 'best'):?> selected<?php endif?>><?php echo __('Best', 'kboard')?></option>
<option value="viewed"<?php if($list->getSorting() == 'viewed'):?> selected<?php endif?>><?php echo __('Viewed', 'kboard')?></option>
<option value="updated"<?php if($list->getSorting() == 'updated'):?> selected<?php endif?>><?php echo __('Updated', 'kboard')?></option>
</select>
</form>
</div>
</div>
<!-- 게시판 정보 끝 -->
<?php if($board->use_category == 'yes'):?>
<!-- 카테고리 시작 -->
<div class="kboard-category category-mobile">
<form id="kboard-category-form-<?php echo $board->id?>" method="get" action="<?php echo $url->toString()?>">
<?php echo $url->set('pageid', '1')->set('category1', '')->set('category2', '')->set('target', '')->set('keyword', '')->set('mod', 'list')->toInput()?>
<?php if($board->initCategory1()):?>
<select name="category1" onchange="jQuery('#kboard-category-form-<?php echo $board->id?>').submit();">
<option value=""><?php echo __('All', 'kboard')?></option>
<?php while($board->hasNextCategory()):?>
<option value="<?php echo $board->currentCategory()?>"<?php if(kboard_category1() == $board->currentCategory()):?> selected<?php endif?>><?php echo $board->currentCategory()?></option>
<?php endwhile?>
</select>
<?php endif?>
<?php if($board->initCategory2()):?>
<select name="category2" onchange="jQuery('#kboard-category-form-<?php echo $board->id?>').submit();">
<option value=""><?php echo __('All', 'kboard')?></option>
<?php while($board->hasNextCategory()):?>
<option value="<?php echo $board->currentCategory()?>"<?php if(kboard_category2() == $board->currentCategory()):?> selected<?php endif?>><?php echo $board->currentCategory()?></option>
<?php endwhile?>
</select>
<?php endif?>
</form>
</div>
<div class="kboard-category category-pc">
<?php if($board->initCategory1()):?>
<ul class="kboard-category-list">
<li<?php if(!kboard_category1()):?> class="kboard-category-selected"<?php endif?>><a href="<?php echo $url->set('category1', '')->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->tostring()?>"><?php echo __('All', 'kboard')?></a></li>
<?php while($board->hasNextCategory()):?>
<li<?php if(kboard_category1() == $board->currentCategory()):?> class="kboard-category-selected"<?php endif?>>
<a href="<?php echo $url->set('category1', $board->currentCategory())->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->toString()?>"><?php echo $board->currentCategory()?></a>
</li>
<?php endwhile?>
</ul>
<?php endif?>
<?php if($board->initCategory2()):?>
<ul class="kboard-category-list">
<li<?php if(!kboard_category2()):?> class="kboard-category-selected"<?php endif?>><a href="<?php echo $url->set('category2', '')->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->tostring()?>"><?php echo __('All', 'kboard')?></a></li>
<?php while($board->hasNextCategory()):?>
<li<?php if(kboard_category2() == $board->currentCategory()):?> class="kboard-category-selected"<?php endif?>>
<a href="<?php echo $url->set('category2', $board->currentCategory())->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->toString()?>"><?php echo $board->currentCategory()?></a>
</li>
<?php endwhile?>
</ul>
<?php endif?>
</div>
<!-- 카테고리 끝 -->
<?php endif?>
<!-- 리스트 시작 -->
<div class="kboard-list">
<table>
<thead>
<tr>
<td class="kboard-list-uid"><?php echo __('Number', 'kboard')?></td>
<td class="kboard-list-thumbnail"><?php echo __('Thumbnail', 'kboard')?></td>
<td class="kboard-list-title"><?php echo __('Title', 'kboard')?></td>
<td class="kboard-list-user"><?php echo __('Author', 'kboard')?></td>
<td class="kboard-list-date"><?php echo __('Date', 'kboard')?></td>
<td class="kboard-list-vote"><?php echo __('Votes', 'kboard')?></td>
<td class="kboard-list-view"><?php echo __('Views', 'kboard')?></td>
</tr>
</thead>
<tbody>
<?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-thumbnail">
<a href="<?php echo $url->set('uid', $content->uid)->set('mod', 'document')->toString()?>">
<?php if($content->getThumbnail(120, 90)):?><img src="<?php echo $content->getThumbnail(120, 90)?>" alt=""><?php else:?><i class="icon-picture"></i><?php endif?>
</a>
</td>
<td class="kboard-list-title">
<a href="<?php echo $url->set('uid', $content->uid)->set('mod', 'document')->toString()?>">
<div class="kboard-thumbnail-cut-strings">
<?php if($content->getThumbnail(96, 70)):?>
<div class="kboard-mobile-contents">
<img src="<?php echo $content->getThumbnail(96, 70)?>" alt="" class="contents-thumbnail">
</div>
<?php endif?>
<?php if($content->isNew()):?><span class="kboard-thumbnail-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 if($content->category1):?>[<?php echo $content->category1?>]<?php endif?>
<?php if($content->category2):?>[<?php echo $content->category2?>]<?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"><?php echo apply_filters('kboard_user_display', $content->member_uid?bp_core_get_userlink($content->member_uid):$content->member_display, $content->member_uid, $content->member_uid?bp_core_get_userlink($content->member_uid):$content->member_display, 'kboard', $boardBuilder)?></span>
<span class="contents-separator">|</span>
<span class="contents-item"><?php echo $content->getDate()?></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>
</td>
<td class="kboard-list-user"><?php echo apply_filters('kboard_user_display', $content->member_uid?bp_core_get_userlink($content->member_uid):$content->member_display, $content->member_uid, $content->member_uid?bp_core_get_userlink($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-thumbnail">
<a href="<?php echo $url->set('uid', $content->uid)->set('mod', 'document')->toString()?>">
<?php if($content->getThumbnail(120, 90)):?><img src="<?php echo $content->getThumbnail(120, 90)?>" alt=""><?php else:?><i class="icon-picture"></i><?php endif?>
</a>
</td>
<td class="kboard-list-title">
<a href="<?php echo $url->set('uid', $content->uid)->set('mod', 'document')->toString()?>">
<div class="kboard-thumbnail-cut-strings">
<?php if($content->getThumbnail(96, 70)):?>
<div class="kboard-mobile-contents">
<img src="<?php echo $content->getThumbnail(96, 70)?>" alt="" class="contents-thumbnail">
</div>
<?php endif?>
<?php if($content->isNew()):?><span class="kboard-thumbnail-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 if($content->category1):?>[<?php echo $content->category1?>]<?php endif?>
<?php if($content->category2):?>[<?php echo $content->category2?>]<?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"><?php echo apply_filters('kboard_user_display', $content->member_uid?bp_core_get_userlink($content->member_uid):$content->member_display, $content->member_uid, $content->member_uid?bp_core_get_userlink($content->member_uid):$content->member_display, 'kboard', $boardBuilder)?></span>
<span class="contents-separator">|</span>
<span class="contents-item"><?php echo $content->getDate()?></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>
</td>
<td class="kboard-list-user"><?php echo apply_filters('kboard_user_display', $content->member_uid?bp_core_get_userlink($content->member_uid):$content->member_display, $content->member_uid, $content->member_uid?bp_core_get_userlink($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?>
</tbody>
</table>
</div>
<!-- 리스트 끝 -->
<!-- 페이징 시작 -->
<div class="kboard-pagination">
<ul class="kboard-pagination-pages">
<?php echo kboard_pagination($list->page, $list->total, $list->rpp)?>
</ul>
</div>
<!-- 페이징 끝 -->
<!-- 검색폼 시작 -->
<div class="kboard-search">
<form id="kboard-search-form-<?php echo $board->id?>" method="get" action="<?php echo $url->toString()?>">
<?php echo $url->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->toInput()?>
<select name="target">
<option value=""><?php echo __('All', 'kboard')?></option>
<option value="title"<?php if(kboard_target() == 'title'):?> selected="selected"<?php endif?>><?php echo __('Title', 'kboard')?></option>
<option value="content"<?php if(kboard_target() == 'content'):?> selected="selected"<?php endif?>><?php echo __('Content', 'kboard')?></option>
<option value="member_display"<?php if(kboard_target() == 'member_display'):?> selected="selected"<?php endif?>><?php echo __('Author', 'kboard')?></option>
</select>
<input type="text" name="keyword" value="<?php echo kboard_keyword()?>">
<button type="submit" class="kboard-thumbnail-button-small"><?php echo __('Search', 'kboard')?></button>
</form>
</div>
<!-- 검색폼 끝 -->
<?php if($board->isWriter()):?>
<!-- 버튼 시작 -->
<div class="kboard-thumbnail-poweredby">
<div class="kboard-control">
<div style="float:left"><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>
<div style="float:right"><a href="<?php echo $url->set('mod', 'editor')->toString()?>" class="kboard-thumbnail-button-small"><?php echo __('New', 'kboard')?></a></div>
</div>
< /div>
<!-- 버튼 끝 -->
<?php endif?>
< /div>
죄송합니다;;
저의 실수로 다른 파일을 말씀드렸습니다.
editor.php 파일이 아니라 list.php 파일의 전체 코드를 봐야 답변을 드릴 수 있겠습니다.
번거로우시겠지만 다시 한번 부탁드립니다.
list.php 파일의 내용을 알려주시겠어요?
아닙니다 아닙니다 신경 써주시는 것만으로도 감사드립니다.
위의 코드를 변경해서 올려드렸습니다.
아래 굵게 표시된 코드 사이에 있는 내용은 글쓰기 권한이 있는 사람에게만 표시됩니다.
<?php if($board->isWriter()):?>
<!-- 버튼 시작 -->
<div class="kboard-thumbnail-poweredby">
<div class="kboard-control">
<div style="float:left"><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>
<div style="float:right"><a href="<?php echo $url->set('mod', 'editor')->toString()?>" class="kboard-thumbnail-button-small"><?php echo __('New', 'kboard')?></a></div>
</div>
< /div>
<!-- 버튼 끝 -->
<?php endif?>
아래처럼 변경해보시겠어요?
<!-- 버튼 시작 -->
<div class="kboard-thumbnail-poweredby">
<div class="kboard-control">
<div style="float:left"><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 if($board->isWriter()):?>
<div style="float:right"><a href="<?php echo $url->set('mod', 'editor')->toString()?>" class="kboard-thumbnail-button-small"><?php echo __('New', 'kboard')?></a></div>
<?php endif?>
</div>
< /div>
<!-- 버튼 끝 -->
만약 굵게 표시된 코드를 지우면 모두에게 표시됩니다.
고맙습니다~^^