thumbnail이 스킨에 별점기능을 넣고 싶은데 어떻게 해야 되나여?
추가로 html? 코드를 추가 하거나 수정을 하고 싶은데 어디서 해야 되나여?
ex) 기존에 카테고리가
제목1
이거 하나라면
html 수정(추가) 후에는
제목1
제목2(추가)
이런식으로 카테고리를 늘리고 싶어여
editor-fields.php 파일은 입력 필드 설정 기능을 지원하는 스킨에서
입력 필드를 표시하는 파일입니다.
입력 필드 설정을 지원하는 스킨에서 새로운 입력 필드를 추가하는 건
아래 링크를 참고 부탁드립니다.
고맙습니다.
<div id="kboard-thumbnail-editor">
<form class="kboard-form" method="post" action="<?php echo esc_url($url->getContentEditorExecute())?>" enctype="multipart/form-data" onsubmit="return kboard_editor_execute(this);">
<?php $skin->editorHeader($content, $board)?>
<?php foreach($board->fields()->getSkinFields() as $key=>$field):?>
<?php echo $board->fields()->getTemplate($field, $content, $boardBuilder)?>
<?php endforeach?>
<div class="kboard-control">
<div class="left">
<?php if($content->uid):?>
<a href="<?php echo esc_url($url->getDocumentURLWithUID($content->uid))?>" class="kboard-thumbnail-button-small"><?php echo __('Back', 'kboard')?></a>
<a href="<?php echo esc_url($url->getBoardList())?>" class="kboard-thumbnail-button-small"><?php echo __('List', 'kboard')?></a>
<?php else:?>
<a href="<?php echo esc_url($url->getBoardList())?>" class="kboard-thumbnail-button-small"><?php echo __('Back', 'kboard')?></a>
<?php endif?>
</div>
<div class="right">
<?php if($board->isWriter()):?>
<button type="submit" class="kboard-thumbnail-button-small"><?php echo __('Save', 'kboard')?></button>
<?php endif?>
</div>
</div>
</form>
</div>
<?php wp_enqueue_script('kboard-thumbnail-script', "{$skin_path}/script.js", array(), KBOARD_VERSION, true)?>
<div id="kboard-ocean-rating-editor">
<form class="kboard-form" method="post" action="<?php echo $url->getContentEditorExecute()?>" enctype="multipart/form-data" onsubmit="return kboard_editor_execute(this);">
<?php $skin->editorHeader($content, $board)?>
<div class="kboard-attr-row kboard-attr-title">
<label class="attr-name" for="kboard-input-title"><?php echo __('Title', 'kboard')?></label>
<div class="attr-value"><input type="text" id="kboard-input-title" name="title" value="<?php echo $content->title?>"></div>
</div>
<?php if($board->use_category):?>
<?php if($board->isTreeCategoryActive()):?>
<div class="kboard-attr-row">
<label class="attr-name" for="kboard-tree-category"><?php echo __('Category', 'kboard')?></label>
<div class="attr-value">
<?php for($i=1; $i<=$content->getTreeCategoryDepth(); $i++):?>
<input type="hidden" id="tree-category-check-<?php echo $i?>" value="<?php echo $content->option->{'tree_category_'.$i}?>">
<input type="hidden" name="kboard_option_tree_category_<?php echo $i?>" value="">
<?php endfor?>
<div class="kboard-tree-category-wrap"></div>
</div>
</div>
<?php else:?>
<?php if($board->initCategory1()):?>
<div class="kboard-attr-row">
<label class="attr-name" for="kboard-select-category1"><?php echo __('Category', 'kboard')?>1</label>
<div class="attr-value">
<select id="kboard-select-category1" name="category1">
<option value=""><?php echo __('Category', 'kboard')?> <?php echo __('Select', 'kboard')?></option>
<?php while($board->hasNextCategory()):?>
<option value="<?php echo $board->currentCategory()?>"<?php if($content->category1 == $board->currentCategory()):?> selected<?php endif?>><?php echo $board->currentCategory()?></option>
<?php endwhile?>
</select>
</div>
</div>
<?php endif?>
<?php if($board->initCategory2()):?>
<div class="kboard-attr-row">
<label class="attr-name" for="kboard-select-category2"><?php echo __('Category', 'kboard')?>2</label>
<div class="attr-value">
<select id="kboard-select-category2" name="category2">
<option value=""><?php echo __('Category', 'kboard')?> <?php echo __('Select', 'kboard')?></option>
<?php while($board->hasNextCategory()):?>
<option value="<?php echo $board->currentCategory()?>"<?php if($content->category2 == $board->currentCategory()):?> selected<?php endif?>><?php echo $board->currentCategory()?></option>
<?php endwhile?>
</select>
</div>
</div>
<?php endif?>
<?php endif?>
<?php endif?>
<div class="kboard-attr-row">
<label class="attr-name"><?php echo __('Secret', 'kboard')?></label>
<div class="attr-value"><input type="checkbox" name="secret" value="true" onchange="kboard_toggle_password_field(this)"<?php if($content->secret):?> checked<?php endif?>></div>
</div>
<?php if($board->viewUsernameField()):?>
<div class="kboard-attr-row">
<label class="attr-name" for="kboard-input-member-display"><?php echo __('Author', 'kboard')?></label>
<div class="attr-value"><input type="text" id="kboard-input-member-display" name="member_display" value="<?php echo $content->member_display?>" placeholder="<?php echo __('Author', 'kboard')?>..."></div>
</div>
<div class="kboard-attr-row">
<label class="attr-name" for="kboard-input-password"><?php echo __('Password', 'kboard')?></label>
<div class="attr-value"><input type="password" id="kboard-input-password" name="password" value="<?php echo $content->password?>" placeholder="<?php echo __('Password', 'kboard')?>..."></div>
</div>
<?php else:?>
<div style="overflow:hidden;width:0;height:0;">
<input style="width:0;height:0;background:transparent;color:transparent;border:none;" type="text" name="fake-autofill-fields">
<input style="width:0;height:0;background:transparent;color:transparent;border:none;" type="password" name="fake-autofill-fields">
</div>
<!-- 비밀글 비밀번호 필드 시작 -->
<div class="kboard-attr-row kboard-attr-password secret-password-row"<?php if(!$content->secret):?> style="display:none"<?php endif?>>
<label class="attr-name" for="kboard-input-password"><?php echo __('Password', 'kboard')?> <span class="attr-required-text">*</span></label>
<div class="attr-value"><input type="password" id="kboard-input-password" name="password" value="<?php echo esc_attr($content->password)?>" placeholder="<?php echo __('Password', 'kboard')?>..."></div>
</div>
<!-- 비밀글 비밀번호 필드 끝 -->
<?php endif?>
<div class="kboard-attr-row">
<label class="attr-name">별점</label>
<div class="attr-value">
<input type="hidden" name="kboard_option_rating" value="<?php echo $content->option->rating?>">
<span class="kboard-rating value-<?php echo $content->option->rating?>" title="<?php echo $content->option->rating?>"><img src="<?php echo $skin_path?>/images/blank.png" alt="" usemap="#kboard-rating-map"></span>
</div>
</div>
<?php if($board->useCAPTCHA() && !$content->uid):?>
<?php if(kboard_use_recaptcha()):?>
<div class="kboard-attr-row">
<label class="attr-name"></label>
<div class="attr-value"><div class="g-recaptcha" data-sitekey="<?php echo kboard_recaptcha_site_key()?>"></div></div>
</div>
<?php else:?>
<div class="kboard-attr-row">
<label class="attr-name" for="kboard-input-captcha"><img src="<?php echo kboard_captcha()?>" alt=""></label>
<div class="attr-value"><input type="text" id="kboard-input-captcha" name="captcha" value="" placeholder="<?php echo __('CAPTCHA', 'kboard')?>..."></div>
</div>
<?php endif?>
<?php endif?>
<div class="kboard-content">
<?php
echo kboard_content_editor(array(
'board' => $board,
'content' => $content,
'required' => false,
'placeholder' => '',
'editor_height' => '400',
));
?>
</div>
<!--
<div class="kboard-attr-row">
<label class="attr-name"><?php echo __('Thumbnail', 'kboard')?></label>
<div class="attr-value">
<?php if($content->thumbnail_file):?><?php echo $content->thumbnail_name?> - <a href="<?php echo $url->getDeleteURLWithAttach($content->uid);?>" onclick="return confirm('<?php echo __('Are you sure you want to delete?', 'kboard')?>');"><?php echo __('Delete file', 'kboard')?></a><?php endif?>
<input type="file" name="thumbnail">
</div>
</div>
-->
<div class="kboard-attr-row">
<label class="attr-name"><?php echo __('Photos', 'kboard')?></label>
<div class="attr-value">
<a href="#" onclick="kboard_editor_open_media();return false;"><?php echo __('KBoard Add Media', 'kboard')?></a>
</div>
</div>
<?php if($board->meta->max_attached_count > 0):?>
<!-- 첨부파일 시작 -->
<?php for($attached_index=1; $attached_index<=$board->meta->max_attached_count; $attached_index++):?>
<div class="kboard-attr-row">
<label class="attr-name" for="kboard-input-file<?php echo $attached_index?>"><?php echo __('Attachment', 'kboard')?><?php echo $attached_index?></label>
<div class="attr-value">
<?php if(isset($content->attach->{"file{$attached_index}"})):?><?php echo $content->attach->{"file{$attached_index}"}[1]?> - <a href="<?php echo $url->getDeleteURLWithAttach($content->uid, "file{$attached_index}")?>" onclick="return confirm('<?php echo __('Are you sure you want to delete?', 'kboard')?>');"><?php echo __('Delete file', 'kboard')?></a><?php endif?>
<input type="file" id="kboard-input-file<?php echo $attached_index?>" name="kboard_attach_file<?php echo $attached_index?>">
</div>
</div>
<?php endfor?>
<!-- 첨부파일 끝 -->
<?php endif?>
<div class="kboard-attr-row">
<label class="attr-name" for="kboard-select-wordpress-search"><?php echo __('WP Search', 'kboard')?></label>
<div class="attr-value">
<select id="kboard-select-wordpress-search" name="wordpress_search">
<option value="1"<?php if($content->search == '1'):?> selected<?php endif?>><?php echo __('Public', 'kboard')?></option>
<option value="2"<?php if($content->search == '2'):?> selected<?php endif?>><?php echo __('Only title (secret document)', 'kboard')?></option>
<option value="3"<?php if($content->search == '3'):?> selected<?php endif?>><?php echo __('Exclusion', 'kboard')?></option>
</select>
</div>
</div>
<div class="kboard-control">
<div class="left">
<?php if($content->uid):?>
<a href="<?php echo $url->getDocumentURLWithUID($content->uid)?>" class="kboard-ocean-rating-button-small"><?php echo __('Back', 'kboard')?></a>
<a href="<?php echo $url->getBoardList()?>" class="kboard-ocean-rating-button-small"><?php echo __('List', 'kboard')?></a>
<?php else:?>
<a href="<?php echo $url->getBoardList()?>" class="kboard-ocean-rating-button-small"><?php echo __('Back', 'kboard')?></a>
<?php endif?>
</div>
<div class="right">
<?php if($board->isWriter()):?>
<button type="submit" class="kboard-ocean-rating-button-small"><?php echo __('Save', 'kboard')?></button>
<?php endif?>
</div>
</div>
</form>
</div>
<map id="kboard-rating-map" name="kboard-rating-map">
<area shape="rect" coords="0,0,7,13" href="#" onclick="return false;" onmouseover="kboard_rating_value(1);">
<area shape="rect" coords="7,0,14,13" href="#" onclick="return false;" onmouseover="kboard_rating_value(2);">
<area shape="rect" coords="14,0,21,13" href="#" onclick="return false;" onmouseover="kboard_rating_value(3);">
<area shape="rect" coords="21,0,28,13" href="#" onclick="return false;" onmouseover="kboard_rating_value(4);">
<area shape="rect" coords="28,0,35,13" href="#" onclick="return false;" onmouseover="kboard_rating_value(5);">
<area shape="rect" coords="35,0,42,13" href="#" onclick="return false;" onmouseover="kboard_rating_value(6);">
<area shape="rect" coords="42,0,49,13" href="#" onclick="return false;" onmouseover="kboard_rating_value(7);">
<area shape="rect" coords="49,0,56,13" href="#" onclick="return false;" onmouseover="kboard_rating_value(8);">
<area shape="rect" coords="56,0,63,13" href="#" onclick="return false;" onmouseover="kboard_rating_value(9);">
<area shape="rect" coords="63,0,69,13" href="#" onclick="return false;" onmouseover="kboard_rating_value(10);">
</map>
<?php wp_enqueue_script('kboard-ocean-rating-script', "{$skin_path}/script.js", array(), KBOARD_VERSION, true)?>
오션 레이팅 처럼 html코드가 여러줄 나와야 되지 않나여?
근데 썸네일은 27줄이라서 어디서 코드를 수정을 해야될지 모르겠네여(입력필드도 훨씬 많이 만들어놨는데..)
editor-fields.php 는 어디 웹 화면인가여?
게시글 작성 페이지에서
editor.php 에서 수정을 하는게 맞나여?(코드가 27줄 밖에 없는뎅;;)// 썸네일 스킨이에여
KBoard 플러그인에서 입력 필드 설정을 지원하는 스킨에서
입력 필드는
워드프레스 관리자 -> KBoard -> 게시판 목록 -> 게시판 선택 -> 입력필드 설정 탭에서 관리하실 수 있습니다.
기존의 필드 외에 새로운 필드를 추가하는 방법은
아래 링크를 참고 부탁드립니다.
고맙습니다.
추가로 html? 코드를 추가 하거나 수정을 하고 싶은데 어디서 해야 되나여?
ex) 기존에 카테고리가
제목1
이거 하나라면
html 수정(추가) 후에는
제목1
제목2(추가)
이런식으로 카테고리를 늘리고 싶어여
thumbnail 스킨으로 editor.php 여기에 들어가 봤는데 코드가 53줄인데(게시글 작성 페이지가 아닌거 같은데여)..
안녕하세요~^^
현재 KBoard 게시판 스킨 중 별점 스킨은
KBoard 오션 별점 스킨에서만 지원하고 있습니다.
다른 스킨에 별점 기능을 추가하시려면 직접 스킨을 커스텀해주셔야 합니다.
FTP로 접속해서 /wp-content/plugins/kboard/skin/사용중인스킨/list.php 파일에서 게시글 목록을 표시하고 있습니다.
document.php 파일은 게시글 본문 페이지입니다.
editor.php 파일을 게시글 작성 페이지입니다.
latest.php 파일은 최신글 숏코드나 최신글 모아보기 시 표시되는 레이아웃 파일입니다.
스킨을 직접 커스텀하시는 게 어려우시다면
프로젝트 의뢰에 상세 내용을 올려보세요.
https://www.cosmosfarm.com/project
고맙습니다.