KBoard 다운로드 스킨 입력필드 문의

1. KBoard 다운로드 스킨 입력필드 설정에서 설정을 하고 홈페이지를 확인해도 바뀌지 않습니다

2. 홈페이지주소/?mod=remove&pageid=1&uid=52&kboard-content-remove-nonce=8ee32065f4

   또 한가지는 게시글을 지우면 위에 처럼 뜨면서 화면이 먹통이 됩니다 

   우클릭 뒤로가기하고 목록을 보면 게시글은 지워졌구요

   스킨을 바꾸어도 같은 결과입니다 

   해결방법 좀 알려주세요 ㅡ,.ㅡ;;

 

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

    1. 현재는 관리자 페이지에서 입력필드를 설정하는 기능이

    기본 스킨(avatar, contact-form, default, thumbnail)에만 적용되어 있기 때문에

    직접 스킨 파일을 수정해주셔야 합니다.

    아래의 링크를 참고해보시겠어요?

    워드프레스 게시판 KBoard(케이보드) 새로운 입력 필드 추가 방법 (커스터마이징)

    빠른 시일 내에 다른 스킨에도 적용해서 업데이트하도록 하겠습니다.

     

    2. 글 만으로는 원인을 파악하기 어렵습니다.

    정확한 원인은 디버그 모드를 활성화해서

    어떤 오류 메시지가 표시되는지 확인해보셔야 할 듯합니다.

    디버그 모드 활성화 방법은 아래의 링크를 참고해보세요.

    워드프레스 에러 확인하기 - 디버그 모드 활성화 방법

    오류 메시지가 표시되지 않는다면

     

    잠시 다른 테마로 바꿔서 문제가 있는지 확인해보시고

    다른 플러그인들을 비활성화해서 충돌이 있는지도 확인해보셔야 할 듯합니다.

    고맙습니다.

  • 전혀 안되는데여..?2월달 포스트 업데이트 되고 나서 안되는거 아닌가요?

    <div id="kboard-avatar-editor">
        <form class="kboard-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="hidden" name="user_id" value="<?php echo get_current_user_id()?>"><?php if($board->isAdmin()):?>

            
            <?php foreach($board->fields()->getSkinFields() as $key=>$field):?>
                <?php echo $board->fields()->getTemplate($field, $content)?>
            <?php endforeach?>

            <div class="kboard-control">
                <div class="left">
                    <?php if($content->uid):?>
                    <a href="<?php echo $url->getDocumentURLWithUID($content->uid)?>" class="kboard-avatar-button-small"><?php echo __('Back', 'kboard')?></a>
                    <a href="<?php echo $url->set('mod', 'list')->toString()?>" class="kboard-avatar-button-small"><?php echo __('List', 'kboard')?></a>
                    <?php else:?>
                    <a href="<?php echo $url->set('mod', 'list')->toString()?>" class="kboard-avatar-button-small"><?php echo __('Back', 'kboard')?></a>
                    <?php endif?>
                </div>

                <div class="right">
                    <?php if($board->isWriter()):?>
                    <button type="submit" class="kboard-avatar-button-small"><?php echo __('Save', 'kboard')?></button>
                    <?php endif?>
                </div>
            </div>
        </form>
    </div>

    <?php wp_enqueue_script('kboard-avatar-script', "{$skin_path}/script.js", array(), KBOARD_VERSION, true)?>

     

     

    이 에디터 파일 어디에 삽입을 해도 안 됩니다..

     

  • KBoard 다운로드 스킨에 위의 코드를 추가하셨다는 말씀이신지요?

    현재는 KBoard 다운로드 스킨에 입력필드 관련 코드가 없기 때문에

    아래의 링크를 참고하셔서 직접 필드를 추가해주셔야 합니다.

    워드프레스 게시판 KBoard(케이보드) 새로운 입력 필드 추가 방법 (커스터마이징)

     

    기본 스킨에 있는 코드를 적용하시려면

    FTP로 접속해서 /wp-content/plugins/kboard/skin/사용중인스킨/editor.php 파일의 코드를

    올려주신 코드처럼 교체해주시면 됩니다.

    /wp-content/plugins/kboard/skin/사용중인스킨/ 경로에 기본 스킨에 있는

    editor-fields.php 파일도 복사해서 추가해주세요.

     

    기본 스킨에 있는 코드를 다운로드 스킨에 적용하시면

    기존에 다운로드 스킨에 적용되어 있는 다운로드 비밀번호 기능을 사용할 수 없습니다.

    고맙습니다.

  • <div id="kboard-avatar-editor">
        <form class="kboard-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="hidden" name="user_id" value="<?php echo get_current_user_id()?>">
            
            <?php foreach($board->fields()->getSkinFields() as $key=>$field):?>
                <?php echo $board->fields()->getTemplate($field, $content)?>
            <?php endforeach?>
            
            <div class="kboard-control">
                <div class="left">
                    <?php if($content->uid):?>
                    <a href="<?php echo $url->getDocumentURLWithUID($content->uid)?>" class="kboard-avatar-button-small"><?php echo __('Back', 'kboard')?></a>
                    <a href="<?php echo $url->set('mod', 'list')->toString()?>" class="kboard-avatar-button-small"><?php echo __('List', 'kboard')?></a>
                    <?php else:?>
                    <a href="<?php echo $url->set('mod', 'list')->toString()?>" class="kboard-avatar-button-small"><?php echo __('Back', 'kboard')?></a>
                    <?php endif?>
                </div>
                <div class="right">
                    <?php if($board->isWriter()):?>
                    <button type="submit" class="kboard-avatar-button-small"><?php echo __('Save', 'kboard')?></button>
                    <?php endif?>
                </div>
            </div>
        </form>
    </div>

    <?php wp_enqueue_script('kboard-avatar-script', "{$skin_path}/script.js", array(), KBOARD_VERSION, true)?>

     

     

    ==============이건 기본 avatar 스킨의 editor.php 파일입니다. ======================

    말씀해주신 블로그의 글의 

     

    <div class="kboard-attr-row"> <label class="attr-name" for="kboard_option_tel">전화번호</label> <div class="attr-value"><input type="text" id="kboard_option_tel" name="kboard_option_tel" value="<?php echo $content->option->tel?>"></div> </div> 

     

    를 간단하게 삽입하려하는데 어디에 삽입해야할지 모르겠습니다. 계속 신스택 에러만 뜹니다...

     

     

    그리고 ====================하단은 editor-fields 관련 질문=========================

    <?php if($field['field_type'] == 'ip'):?>
        <input type="hidden" name="kboard_option_ip" value="<?php echo kboard_user_ip()?>">
    <?php elseif($field['field_type'] == 'content'):?>
        <div class="kboard-attr-row <?php echo esc_attr($field['class'])?> <?php echo esc_attr($required)?>">
            <label class="attr-name" for="<?php echo esc_attr($meta_key)?>"><span class="field-name"><?php echo esc_html($field_name)?></span><?php if($required):?> <span class="attr-required-text">*</span><?php endif?></label>
            <div class="kboard-content">
                <?php if($board->use_editor):?>
                    <?php wp_editor($content->content, 'kboard_content', array('media_buttons'=>$board->isAdmin(), 'editor_height'=>400))?>
                <?php else:?>
                    <textarea name="kboard_content" id="kboard_content" class="<?php echo esc_attr($required)?>"<?php if($placeholder):?> placeholder="<?php echo esc_attr($placeholder)?>"<?php endif?>><?php echo esc_textarea($content->content)?></textarea>
                <?php endif?>
            </div>
        </div>
    <?php elseif($field['field_type'] == 'author'):?>
        <?php if($field['permission'] == 'always_visible' || (!$field['permission'] && $board->viewUsernameField())):?>
            <div class="kboard-attr-row <?php echo esc_attr($field['class'])?> required">
                <label class="attr-name" for="kboard-input-member-display"><span class="field-name"><?php echo esc_html($field_name)?></span> <span class="attr-required-text">*</span></label>
                <div class="attr-value"><input type="text" id="kboard-input-member-display" name="member_display" class="required" value="<?php echo $content->member_display?esc_attr($content->member_display):esc_attr($default_value)?>"<?php if($placeholder):?> placeholder="<?php echo esc_attr($placeholder)?>"<?php endif?>></div>
            </div>
        <?php elseif($field['permission'] == 'always_hide'):?>
            <input type="hidden" id="kboard-input-member-display" name="member_display" value="<?php echo esc_attr($default_value)?>">
        <?php endif?>
        <?php if($board->viewUsernameField()):?>
            <div class="kboard-attr-row kboard-attr-password">
                <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?>
    <?php elseif($field['field_type'] == 'captcha'):?>
        <?php if($board->useCAPTCHA() && !$content->uid):?>
            <?php if(kboard_use_recaptcha()):?>
            <div class="kboard-attr-row <?php echo esc_attr($field['class'])?>">
                <label class="attr-name"></label>
                <div class="attr-value"><div class="g-recaptcha" data-sitekey="<?php echo kboard_recaptcha_site_key()?>"></div>
                <?php if(isset($field['description']) && $field['description']):?><div class="description"><?php echo esc_html($field['description'])?></div><?php endif?></div>
            </div>
            <?php else:?>
            <div class="kboard-attr-row <?php echo esc_attr($field['class'])?>">
                <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')?>...">
                <?php if(isset($field['description']) && $field['description']):?><div class="description"><?php echo esc_html($field['description'])?></div><?php endif?></div>
            </div>
            <?php endif?>
        <?php endif?>
    <?php elseif($field['field_type'] == 'attach'):?>
        <?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 <?php echo esc_attr($field['class'])?> attach-<?php echo $attached_index?>">
                <label class="attr-name" for="kboard-input-file<?php echo $attached_index?>"><span class="field-name"><?php echo esc_html($field_name)?></span><?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?>">
                    <?php if(isset($field['description']) && $field['description']):?><div class="description"><?php echo esc_html($field['description'])?></div><?php endif?>
                </div>
            </div>
            <?php endfor?>
            <!-- 첨부파일 끝 -->
        <?php endif?>
    <?php elseif($field['field_type'] == 'category1'):?>
        <?php if(!$board->isTreeCategoryActive()):?>
            <?php if($board->initCategory1()):?>
                <div class="kboard-attr-row <?php echo esc_attr($field['class'])?> <?php echo esc_attr($required)?>">
                    <label class="attr-name" for="<?php echo esc_attr($meta_key)?>"><span class="field-name"><?php echo esc_html($field_name)?></span><?php if($required):?> <span class="attr-required-text">*</span><?php endif?></label>
                    <div class="attr-value">
                        <select id="<?php echo esc_attr($meta_key)?>" name="category1" class="<?php echo esc_attr($required)?>">
                            <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>
                        <?php if(isset($field['description']) && $field['description']):?><div class="description"><?php echo esc_html($field['description'])?></div><?php endif?>
                    </div>
                </div>
            <?php endif?>
        <?php endif?>
    <?php elseif($field['field_type'] == 'category2'):?>
        <?php if(!$board->isTreeCategoryActive()):?>
            <?php if($board->initCategory2()):?>
                <div class="kboard-attr-row <?php echo esc_attr($field['class'])?> <?php echo esc_attr($required)?>">
                    <label class="attr-name" for="<?php echo esc_attr($meta_key)?>"><span class="field-name"><?php echo esc_html($field_name)?></span><?php if($required):?> <span class="attr-required-text">*</span><?php endif?></label>
                    <div class="attr-value">
                        <select id="<?php echo esc_attr($meta_key)?>" name="category2" class="<?php echo esc_attr($required)?>">
                            <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>
                        <?php if(isset($field['description']) && $field['description']):?><div class="description"><?php echo esc_html($field['description'])?></div><?php endif?>
                    </div>
                </div>
            <?php endif?>
        <?php endif?>
    <?php elseif($field['field_type'] == 'tree_category'):?>
        <?php if($board->isTreeCategoryActive()):?>
            <div class="kboard-attr-row <?php echo esc_attr($field['class'])?> <?php echo esc_attr($required)?>">
                <label class="attr-name" for="<?php echo esc_attr($meta_key)?>"><span class="field-name"><?php echo esc_html($field_name)?></span></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>
                    <?php if(isset($field['description']) && $field['description']):?><div class="description"><?php echo esc_html($field['description'])?></div><?php endif?>
                </div>
            </div>
        <?php endif?>
    <?php elseif($field['field_type'] == 'title'):?>
        <div class="kboard-attr-row <?php echo esc_attr($field['class'])?> required">
            <label class="attr-name" for="<?php echo esc_attr($meta_key)?>"><span class="field-name"><?php echo esc_html($field_name)?></span> <span class="attr-required-text">*</span></label>
            <div class="attr-value">
                <input type="text" id="<?php echo esc_attr($meta_key)?>" name="title" class="required" value="<?php echo $content->title?esc_attr($content->title):esc_attr($default_value)?>"<?php if($placeholder):?> placeholder="<?php echo esc_attr($placeholder)?>"<?php endif?>>
                <?php if(isset($field['description']) && $field['description']):?><div class="description"><?php echo esc_html($field['description'])?></div><?php endif?>
            </div>
        </div>
    <?php elseif($field['field_type'] == 'option'):?>
        <div class="kboard-attr-row <?php echo esc_attr($field['class'])?>">
            <label class="attr-name" for="<?php echo esc_attr($meta_key)?>"><span class="field-name"><?php echo esc_html($field_name)?></span></label>
            <div class="attr-value">
                <?php if($fields->isUseFields($field['secret_permission'], $field['secret'])):?>
                    <label class="attr-value-option"><input type="checkbox" name="secret" value="true" onchange="kboard_toggle_password_field(this)"<?php if($content->secret):?> checked<?php endif?>> <?php echo __('Secret', 'kboard')?></label>
                <?php endif?>
                <?php if($fields->isUseFields($field['notice_permission'], $field['notice'])):?>
                    <label class="attr-value-option"><input type="checkbox" name="notice" value="true"<?php if($content->notice):?> checked<?php endif?>> <?php echo __('Notice', 'kboard')?></label>
                <?php endif?>
                <?php do_action('kboard_skin_editor_option', $content, $board, $boardBuilder)?>
                <?php if(isset($field['description']) && $field['description']):?><div class="description"><?php echo esc_html($field['description'])?></div><?php endif?>
            </div>
        </div>
        <?php if(!$board->viewUsernameField()):?>
        <input style="display:none" type="text" name="fake-autofill-fields">
        <input style="display:none" type="password" name="fake-autofill-fields">
        <!-- 비밀글 비밀번호 필드 시작 -->
        <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?>
    <?php elseif($field['field_type'] == 'media'):?>
        <div class="kboard-attr-row <?php echo esc_attr($field['class'])?>">
            <label class="attr-name" for="<?php echo esc_attr($meta_key)?>"><span class="field-name"><?php echo esc_html($field_name)?></span></label>
            <div class="attr-value">
                <a href="#" onclick="kboard_editor_open_media();return false;"><?php echo __('KBoard Add Media', 'kboard')?></a>
                <?php if(isset($field['description']) && $field['description']):?><div class="description"><?php echo esc_html($field['description'])?></div><?php endif?>
            </div>
        </div>
    <?php elseif($field['field_type'] == 'thumbnail'):?>
        <div class="kboard-attr-row <?php echo esc_attr($field['class'])?>">
            <label class="attr-name" for="<?php echo esc_attr($meta_key)?>"><span class="field-name"><?php echo esc_html($field_name)?></span></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" id="kboard-input-thumbnail" name="thumbnail" accept="image/*">
                <?php if(isset($field['description']) && $field['description']):?><div class="description"><?php echo esc_html($field['description'])?></div><?php endif?>
            </div>
        </div>
    <?php elseif($field['field_type'] == 'search'):?>
        <?php if(isset($field['hidden']) && $field['hidden'] == '1'):?>
            <input type="hidden" name="wordpress_search" value="<?php echo esc_attr($default_value)?>">
        <?php else:?>
            <div class="kboard-attr-row <?php echo esc_attr($field['class'])?>">
                <label class="attr-name" for="<?php echo esc_attr($meta_key)?>"><span class="field-name"><?php echo esc_html($field_name)?></span></label>
                <div class="attr-value">
                    <select id="kboard-select-wordpress-search" name="wordpress_search">
                        <option value="1"<?php if($wordpress_search == '1'):?> selected<?php endif?>><?php echo __('Public', 'kboard')?></option>
                        <option value="2"<?php if($wordpress_search == '2'):?> selected<?php endif?>><?php echo __('Only title (secret document)', 'kboard')?></option>
                        <option value="3"<?php if($wordpress_search == '3'):?> selected<?php endif?>><?php echo __('Exclusion', 'kboard')?></option>
                    </select>
                    <?php if(isset($field['description']) && $field['description']):?><div class="description"><?php echo esc_html($field['description'])?></div><?php endif?>
                </div>
            </div>
        <?php endif?>
    <?php elseif($field['field_type'] == 'text'):?>
        <?php if(isset($field['hidden']) && $field['hidden']):?>
            <input type="hidden" id="<?php echo esc_attr($meta_key)?>" class="<?php echo esc_attr($required)?>" name="<?php echo esc_attr($fields->getOptionFieldName($meta_key))?>" value="<?php echo $content->option->{$meta_key}?esc_attr($content->option->{$meta_key}):esc_attr($default_value)?>">
        <?php else:?>
        <div class="kboard-attr-row <?php echo esc_attr($field['class'])?> meta-key-<?php echo esc_attr($meta_key)?> <?php echo esc_attr($required)?>">
            <label class="attr-name" for="<?php echo esc_attr($meta_key)?>"><span class="field-name"><?php echo esc_html($field_name)?></span><?php if($required):?> <span class="attr-required-text">*</span><?php endif?></label>
            <div class="attr-value">
                <input type="text" id="<?php echo esc_attr($meta_key)?>" class="<?php echo esc_attr($required)?>" name="<?php echo esc_attr($fields->getOptionFieldName($meta_key))?>" value="<?php echo $content->option->{$meta_key}?esc_attr($content->option->{$meta_key}):esc_attr($default_value)?>"<?php if($placeholder):?> placeholder="<?php echo esc_attr($placeholder)?>"<?php endif?>>
                <?php if(isset($field['description']) && $field['description']):?><div class="description"><?php echo esc_html($field['description'])?></div><?php endif?>
            </div>
        </div>
        <?php endif?>
    <?php elseif($field['field_type'] == 'select' && $row):?>
        <div class="kboard-attr-row <?php echo esc_attr($field['class'])?> meta-key-<?php echo esc_attr($meta_key)?> <?php echo esc_attr($required)?>">
            <label class="attr-name" for="<?php echo esc_attr($meta_key)?>"><span class="field-name"><?php echo esc_html($field_name)?></span><?php if($required):?> <span class="attr-required-text">*</span><?php endif?></label>
            <div class="attr-value">
                <select id="<?php echo esc_attr($meta_key)?>" name="<?php echo esc_attr($fields->getOptionFieldName($meta_key))?>"class="<?php echo esc_attr($required)?>">
                    <option value=""><?php echo __('Select', 'kboard')?></option>
                    <?php foreach($field['row'] as $option_key=>$option_value):?>
                        <?php if(isset($option_value['label']) && $option_value['label']):?>
                            <?php if($content->option->{$meta_key}):?>
                                <option value="<?php echo esc_attr($option_value['label'])?>"<?php if($fields->isSavedOption($content->option->{$meta_key}, $option_value['label'])):?> selected<?php endif?>><?php echo esc_html($option_value['label'])?></option>
                            <?php else:?>
                                <option value="<?php echo esc_attr($option_value['label'])?>"<?php if($default_value && $default_value==$option_key):?> selected<?php endif?>><?php echo esc_html($option_value['label'])?></option>
                            <?php endif?>
                        <?php endif?>
                    <?php endforeach?>
                </select>
                <?php if(isset($field['description']) && $field['description']):?><div class="description"><?php echo esc_html($field['description'])?></div><?php endif?>
            </div>
        </div>
    <?php elseif($field['field_type'] == 'radio' && $row):?>
        <?php if(isset($field['row']) && $field['row']):?>
        <div class="kboard-attr-row <?php echo esc_attr($field['class'])?> meta-key-<?php echo esc_attr($meta_key)?> <?php echo esc_attr($required)?>">
            <label class="attr-name" for="<?php echo esc_attr($meta_key)?>"><span class="field-name"><?php echo esc_html($field_name)?></span><?php if($required):?> <span class="attr-required-text">*</span><?php endif?></label>
            <div class="attr-value">
                <input type="hidden" name="<?php echo esc_attr($fields->getOptionFieldName($meta_key))?>" value="">
                <?php foreach($field['row'] as $option_key=>$option_value):?>
                    <?php if(isset($option_value['label']) && $option_value['label']):?>
                        <?php if($content->option->{$meta_key}):?>
                            <label class="attr-value-label"><input type="radio" name="<?php echo esc_attr($fields->getOptionFieldName($meta_key))?>"class="<?php echo esc_attr($required)?>"<?php if($fields->isSavedOption($content->option->{$meta_key}, $option_value['label'])):?> checked<?php endif?> value="<?php echo esc_attr($option_value['label'])?>"> <?php echo esc_html($option_value['label'])?></label>
                        <?php else:?>
                            <label class="attr-value-label"><input type="radio" name="<?php echo esc_attr($fields->getOptionFieldName($meta_key))?>"class="<?php echo esc_attr($required)?>"<?php if($default_value && $default_value==$option_key):?> checked<?php endif?> value="<?php echo esc_attr($option_value['label'])?>"> <?php echo esc_html($option_value['label'])?></label>
                        <?php endif?>
                    <?php endif?>
                <?php endforeach?>
                <label class="attr-reset-button" style="cursor:pointer" onclick="kboard_radio_reset(this)"><?php echo __('Reset', 'kboard')?></label>
                <?php if(isset($field['description']) && $field['description']):?><div class="description"><?php echo esc_html($field['description'])?></div><?php endif?>
            </div>
        </div>
        <?php endif?>
    <?php elseif($field['field_type'] == 'checkbox' && $row):?>
        <?php if(isset($field['row']) && $field['row']):?>
        <div class="kboard-attr-row <?php echo esc_attr($field['class'])?> meta-key-<?php echo esc_attr($meta_key)?> <?php echo esc_attr($required)?>">
            <label class="attr-name" for="<?php echo esc_attr($meta_key)?>"><span class="field-name"><?php echo esc_html($field_name)?></span><?php if($required):?> <span class="attr-required-text">*</span><?php endif?></label>
            <div class="attr-value">
                <input type="hidden" name="<?php echo esc_attr($fields->getOptionFieldName($meta_key))?>" value="">
                <?php foreach($field['row'] as $option_key=>$option_value):?>
                    <?php if(isset($option_value['label']) && $option_value['label']):?>
                        <?php if($content->option->{$meta_key}):?>
                            <label class="attr-value-label"><input type="checkbox" name="<?php echo esc_attr($fields->getOptionFieldName($meta_key))?>[]"class="<?php echo esc_attr($required)?>"<?php if($fields->isSavedOption($content->option->{$meta_key}, $option_value['label'])):?> checked<?php endif?> value="<?php echo esc_attr($option_value['label'])?>"> <?php echo esc_html($option_value['label'])?></label>
                        <?php else:?>
                            <label class="attr-value-label"><input type="checkbox" name="<?php echo esc_attr($fields->getOptionFieldName($meta_key))?>[]"class="<?php echo esc_attr($required)?>"<?php if($default_value && in_array($option_value['label'], $default_value)):?> checked<?php endif?> value="<?php echo esc_attr($option_value['label'])?>"> <?php echo esc_html($option_value['label'])?></label>
                        <?php endif?>
                    <?php endif?>
                <?php endforeach?>
                <?php if(isset($field['description']) && $field['description']):?><div class="description"><?php echo esc_html($field['description'])?></div><?php endif?>
            </div>
        </div>
        <?php endif?>
    <?php elseif($field['field_type'] == 'textarea'):?>
        <div class="kboard-attr-row <?php echo esc_attr($field['class'])?> meta-key-<?php echo esc_attr($meta_key)?> <?php echo esc_attr($required)?>">
            <label class="attr-name" for="<?php echo esc_attr($meta_key)?>"><span class="field-name"><?php echo esc_html($field_name)?></span><?php if($required):?> <span class="attr-required-text">*</span><?php endif?></label>
            <div class="attr-value">
                <textarea id="<?php echo esc_attr($meta_key)?>" name="<?php echo esc_attr($fields->getOptionFieldName($meta_key))?>"class="<?php echo esc_attr($required)?>"<?php if($placeholder):?> placeholder="<?php echo esc_attr($placeholder)?>"<?php endif?>><?php echo $content->option->{$meta_key}?esc_textarea($content->option->{$meta_key}):esc_textarea($default_value)?></textarea>
                <?php if(isset($field['description']) && $field['description']):?><div class="description"><?php echo esc_html($field['description'])?></div><?php endif?>
            </div>
        </div>
    <?php elseif($field['field_type'] == 'file'):?>
        <div class="kboard-attr-row <?php echo esc_attr($field['class'])?> meta-key-<?php echo esc_attr($meta_key)?>">
            <label class="attr-name" for="<?php echo esc_attr($meta_key)?>"><span class="field-name"><?php echo esc_html($field_name)?></span></label>
            <div class="attr-value">
                <?php if(isset($content->attach->{$meta_key})):?><?php echo $content->attach->{$meta_key}[1]?> - <a href="<?php echo $url->getDeleteURLWithAttach($content->uid, $meta_key)?>" 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-<?php echo esc_attr($meta_key)?>" name="kboard_attach_<?php echo esc_attr($meta_key)?>">
                <?php if(isset($field['description']) && $field['description']):?><div class="description"><?php echo esc_html($field['description'])?></div><?php endif?>
            </div>
        </div>
    <?php elseif($field['field_type'] == 'wp_editor'):?>
        <div class="kboard-attr-row <?php echo esc_attr($field['class'])?> meta-key-<?php echo esc_attr($meta_key)?> <?php echo esc_attr($required)?>">
            <label class="attr-name" for="<?php echo esc_attr($meta_key)?>"><span class="field-name"><?php echo esc_html($field_name)?></span><?php if($required):?> <span class="attr-required-text">*</span><?php endif?></label>
            <div class="attr-value">
                <?php wp_editor($content->option->{$meta_key}?$content->option->{$meta_key}:$default_value, $fields->getOptionFieldName($meta_key), array('media_buttons'=>$board->isAdmin(), 'editor_height'=>400, 'editor_class'=>$required))?>
                <?php if(isset($field['description']) && $field['description']):?><div class="description"><?php echo esc_html($field['description'])?></div><?php endif?>
            </div>
        </div>
    <?php endif?>

    상기 editor-fields.php에선 무엇을 수정해야하는건가요..? 블로그랑 내용이 달라서 이해를 못 하고 있습니다. ㅠㅠ 

     

  • 사용하시려는 스킨은 어떤 스킨이신지요?

    기본 스킨(avatar, contact-form, default, thumbnail)이라면

    따로 코드를 추가하지 않으셔도

    워드프레스 관리자 -> KBoard -> 게시판 목록 -> 게시판 선택 -> 입력필드 설정 페이지에서

    입력필드를 추가하실 수 있습니다.

     

    기본 스킨이 아니라면

    현재는 블로그 쪽 내용을 참고하셔서 필드를 추가해주셔야 합니다.

    고맙습니다.

  • 게시글 삭제 오류 해결됬었습니다

    플러그인 충돌로 인한 에러입니다

    활성화 =>비활성화=>활성화 

    이러니 문제 해결됬습니다 

    깜쏴합니다 꾸벅

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