업데이트후 게시판 쓰기가 안되는거 같아요..ㅠ

안녕하세요

한참 업데이트 안하고있다가 어제 했거든요 kboard관련..

근데 오늘 고객분이 글쓰기가 안된다고 전화와서 들어가보니

글작성 내용 다 넣고 저장하기 누르면

글작성내용이 다 없어지고 글작성하기 상태 그대로 있습니다.

목록에도 표시가 안되구요..

뭐가 문제일까요? 설정등 건드린건 없습니다..ㅠ

http://www.broccolistudio.com/?page_id=35102

입니다 좀 봐주세요

좋은 정보와 인맥을 동시에, 워드프레스 사용자 단톡방 참여하기
좋은 정보와 인맥을 동시에, 워드프레스 사용자 단톡방 참여하기
  • 스킨도 업데이트를 해주셔야 하는데 확인해보니 예전 버전의 스킨이군요.

    쉽게 해결이 가능할 듯합니다.

    사용하시는 스킨의 editor.php 파일 내용을 올려주시겠어요?

  • <div id="kboard-customer-editor">
        <form method="post" action="<?php echo $url->toString()?>" enctype="multipart/form-data" onsubmit="return kboard_editor_execute(this);">
            <input type="hidden" name="mod" value="editor">
            <input type="hidden" name="uid" value="<?php echo $content->uid?>">
            <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?>">
            <div class="kboard-header"></div>
            
            <div class="kboard-attr-row kboard-attr-title">
                <label class="attr-name"><span style="color:#d62727;">*</span> <?php echo __('Title')?></label>
                <div class="attr-value"><input type="text" name="title" value="<?php echo $content->title?>"></div>
            </div>
            
            <?php if($board->use_category):?>
                <?php if($board->initCategory1()):?>
                <div class="kboard-attr-row">
                    <label class="attr-name"><?php echo __('Category', 'kboard')?>1</label>
                    <div class="attr-value">
                        <select name="category1">
                            <?php while($board->hasNextCategory()):?>
                            <option value="<?php echo $board->currentCategory()?>"<?php if($content->category1 == $board->currentCategory()):?> selected="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"><?php echo __('Category', 'kboard')?>2</label>
                    <div class="attr-value">
                        <select name="category2">
                            <?php while($board->hasNextCategory()):?>
                            <option value="<?php echo $board->currentCategory()?>"<?php if($content->category2 == $board->currentCategory()):?> selected="selected" <?php endif?>><?php echo $board->currentCategory()?></option>
                            <?php endwhile?>
                        </select>
                    </div>
                </div>
                <?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"<?php if($content->secret):?> checked<?php endif?>></div>
            </div>
            
            <?php if($board->isAdmin()):?>
            <div class="kboard-attr-row">
                <label class="attr-name"><?php echo __('Notice', 'kboard')?></label>
                <div class="attr-value"><input type="checkbox" name="notice" value="true"<?php if($content->notice):?> checked<?php endif?>><?php if($content->password):?><input type="hidden" name="password" value="<?php echo $content->password?>"><?php endif?></div>
            </div>
            <?php elseif($board->isWriter() && $board->permission_write=='all'):?>
            <div class="kboard-attr-row">
                <label class="attr-name"><span style="color:#d62727;">*</span> <?php echo __('Author', 'kboard')?></label>
                <div class="attr-value"><input type="text" name="member_display" value="<?php echo $content->member_display?$content->member_display:$userdata->data->display_name?>"></div>
            </div>
            <div class="kboard-attr-row">
                <label class="attr-name"><span style="color:#d62727;">*</span> <?php echo __('Password', 'kboard')?></label>
                <div class="attr-value"><input type="password" name="password" value="<?php echo $content->password?>"></div>
            </div>
            <div class="kboard-attr-row">
                <label class="attr-name"><img src="<?php echo kboard_captcha()?>" alt=""></label>
                <div class="attr-value"><input type="text" name="captcha" value=""></div>
            </div>
            <?php endif?>
            
            <!--
            <div class="kboard-attr-row">
                <label class="attr-name"><?php echo __('이름(업체명)', 'kboard')?></label>
                <div class="attr-value"><input type="text" name="kboard_option_name" value="<?php echo $content->option->name?>"></div>
            </div>
            //-->
            <div class="kboard-attr-row">
                <label class="attr-name"><span style="color:#d62727;">*</span> <?php echo __('Phone number', 'kboard')?></label>
                <div class="attr-value"><input type="text" name="kboard_option_tel" value="<?php echo $content->option->tel?>"></div>
            </div>
            <div class="kboard-attr-row">
                <label class="attr-name"><?php echo __('예약일시', 'kboard')?></label>
                <div class="attr-value"><input type="text" name="kboard_option_date" value="<?php echo $content->option->date?>">&nbsp;&nbsp;&nbsp;ex) 2015년 2월 1일 오후 1시 ~ 3시</div>
            </div>
            <div class="kboard-attr-row">
                <label class="attr-name"><?php echo __('촬영 룸', 'kboard')?></label>
                <div class="attr-value"><input type="text" name="kboard_option_room" value="<?php echo $content->option->room?>">&nbsp;&nbsp;&nbsp;ex) A룸 or 1시 A룸, 2시 B룸 </div>
            </div>
            <div class="kboard-attr-row">
                <label class="attr-name"><?php echo __('촬영인원', 'kboard')?></label>
                <div class="attr-value"><input type="text" name="kboard_option_people" value="<?php echo $content->option->people?>">&nbsp;&nbsp;&nbsp;ex) 아기촬영시 아기도 인원에 포함됩니다.</div>
            </div>
            <div class="kboard-attr-row">
                <label class="attr-name"><?php echo __('촬영종류', 'kboard')?></label>
                <div class="attr-value"><input type="text" name="kboard_option_kind" value="<?php echo $content->option->kind?>">&nbsp;&nbsp;&nbsp;ex) 아기 100일 촬영 / 제품 촬영 (제품촬영시 품목도 구체적으로 적어주세요.)</div>
            </div>
            <div class="kboard-attr-row">
                <label class="attr-name"><?php echo __('예약금 입금자명', 'kboard')?></label>
                <div class="attr-value"><input type="text" name="kboard_option_aname" value="<?php echo $content->option->aname?>"></div>
            </div>
            
            <div class="kboard-content">
                <?php if($board->use_editor):?>
                    <?php wp_editor($content->content, 'kboard_content'); ?>
                <?php else:?>
                    <textarea name="kboard_content" id="kboard_content"><?php echo $content->content?></textarea>
                <?php endif?>
            </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 __('Attachment', 'kboard')?></label>
                <div class="attr-value">
                    <?php if($content->attach->file1[0]):?><?php echo $content->attach->file1[1]?> - <a href="<?php echo $url->getDeleteURLWithAttach($content->uid, 'file1');?>" 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="kboard_attach_file1">
                </div>
            </div>
            <div class="kboard-attr-row">
                <label class="attr-name"><?php echo __('Attachment', 'kboard')?></label>
                <div class="attr-value">
                    <?php if($content->attach->file2[0]):?><?php echo $content->attach->file2[1]?> - <a href="<?php echo $url->getDeleteURLWithAttach($content->uid, 'file2');?>" 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="kboard_attach_file2">
                </div>
            </div>
            
            <div class="kboard-attr-row">
                <label class="attr-name"><?php echo __('WP Search', 'kboard')?></label>
                <div class="attr-value">
                    <select 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->set('uid', $content->uid)->set('mod', 'document')->toString()?>" class="kboard-customer-button-small"><?php echo __('Back', 'kboard')?></a>
                    <a href="<?php echo $url->toString()?>" class="kboard-customer-button-small"><?php echo __('List', 'kboard')?></a>
                    <?php else:?>
                    <a href="<?php echo $url->toString()?>" class="kboard-customer-button-small"><?php echo __('Back', 'kboard')?></a>
                    <?php endif?>
                </div>
                <div class="right">
                    <?php if($board->isWriter()):?>
                    <button type="submit" class="kboard-customer-button-small"><?php echo __('Save', 'kboard')?></button>
                    <?php endif?>
                </div>
            </div>
        </form>
    </div>

    <script type="text/javascript">
    var kboard_localize = {
        please_enter_a_title:'<?php echo __('Please enter a title.', 'kboard')?>',
        please_enter_a_author:'<?php echo __('Please enter a author.', 'kboard')?>',
        please_enter_a_password:'<?php echo __('Please enter a password.', 'kboard')?>',
        please_enter_the_CAPTCHA_code:'<?php echo __('Please enter the CAPTCHA code.', 'kboard')?>'
    }
    </script>
    <script type="text/javascript" src="<?php echo $skin_path?>/script.js"></script>

     

    스킨의 editor.php 의 내용입니다 ㅠㅠ 부탁드려요

  • <div id="kboard-customer-editor">
        <form method="post" action="<?php echo $url->toString()?>" enctype="multipart/form-data" onsubmit="return kboard_editor_execute(this);">
            <input type="hidden" name="mod" value="editor">
            <input type="hidden" name="uid" value="<?php echo $content->uid?>">
            <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?>">

     

    위 코드를 아래 코드로 교체 해보세요~

     

    <div id="kboard-customer-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()?>">

  • 감사합니다 잘 작동이되네요^^

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