글쓰는 페이지 이메일 넣기 다시질문드립니다^^:::::::

항상 친절한 답변 감사드립니다

저 죄송한데...도저히 메일을 반드시 적게하는 방법을 모르겠습니다..

메일을 적지 않으면 글이 저장이 안되게하는 방법....

답변주신대로 했는데도.......그래서 editor.php를 올립니다.......

어디에다가 넣은면 되는지...알려주세요.ㅠㅜ

감사합니다.

 

<div id="kboard-default-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"><?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">
            <label class="attr-name"><?php echo __('E-mail', 'kboard')?></label>
<div class="attr-value"><input type="text" name="kboard_option_email" value="<?php echo $content->option->email?>"></div>

            

                        <?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><label class="attr-name"><?php echo __('E-mail', 'kboard')?></label>
<div class="attr-value"><input type="text" name="kboard_option_email" value="<?php echo $content->option->email?>"></div>

                        <?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>
    <div class="kboard-attr-row">
     <label class="attr-name"><?php echo __('E-mail', 'kboard')?></label>
     <div class="attr-value"><input type="text" name="kboard_option_email" value="<?php echo $content->option->email?>"></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"><?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"><?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-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-default-button-small"><?php echo __('Back', 'kboard')?></a>
                <a href="<?php echo $url->toString()?>" class="kboard-default-button-small"><?php echo __('List', 'kboard')?></a>
                <?php else:?>
                <a href="<?php echo $url->toString()?>" class="kboard-default-button-small"><?php echo __('Back', 'kboard')?></a>
                <?php endif?>
            </div>
            <div class="right">
                <?php if($board->isWriter()):?>
                <button type="submit" class="kboard-default-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>

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