이전 문의 List 에 editor 출력

이전글 http://www.cosmosfarm.com/threads/document/18162

답변 감사드립니다.

쓰기권한을 변경하라고 해주셨는데

쓰기권한은 제한없음에도 불구 하고 권한이 없다고 뜨네요

코드는 list.php 상단에다가 editer.php를 그대로 복사해서 넣었습니다.

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

    다른 새로운 질문이 아니라면 새 글이 아니라 질문의 댓글로 남겨주시길 부탁드립니다.

    저희가 하루 종일 답변 남기다가 실제 개발 업무를 못 보고 있기 때문에 양해 부탁드려요 ㅎㅎ

    에디터의 '코드 스니펫 삽입' 기능을 사용해서 작업하신 전체 코드를 올려주시겠어요?

    고맙습니다.

  • 아아 넵 죄송해요~

    하단에 첨부하겠습니다.

    <script language="javascript">
        function winOpen(){
    	myWin=window.open("..","new","width=900,height=900","scrollbar=yes");  
        }
    	
    </script>
    
    <div id="kboard-default-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()?>">
    		
    		<input type="hidden" name="kboard_option_location" value="<?php echo $content->location?>">
    		<input type="hidden" name="kboard_option_book_date" value="<?php echo $content->book_date?>">
    		<input type="hidden" name="kboard_option_Program_chk" value="<?php echo $content->Program_chk?>">
    		<input type="hidden" name="kboard_option_tel" value="<?php echo $content->tel?>">
    		<input type="hidden" name="kboard_option_email" value="<?php echo $content->email?>">
    		<input type="hidden" name="kboard_option_personer" value="<?php echo $content->personer?>">
    		<input type="hidden" name="kboard_option_location" value="<?php echo $content->location?>">
    		
    		<div class="kboard-attr-row">
    			<div class="attr-value">
    				<?php if(!$board->isAdmin()):?>
    				<label class="attr-value-option" style="display: none!important;">
    					<input type="checkbox" name="secret" value="true" onchange="kboard_toggle_password_field(this)" checked <?php if($content->secret):?> <?php endif?>> 
    				<?php echo __('Secret', 'kboard')?>
    				</label>
    				<?php endif?>
    				
    				<?php if($board->isAdmin()):?><!--관리자 글쓰기-->
    				<label class="attr-value-option">
    					<input type="checkbox" name="secret" value="true" onchange="kboard_toggle_password_field(this)"  <?php if($content->secret):?> <?php endif?>> 
    				<?php echo __('Secret', 'kboard')?>
    				</label>
    				<label class="attr-value-option">
    					<input type="checkbox" name="notice" value="true"<?php if($content->notice):?> <?php endif?>> <?php echo __('Notice', 'kboard')?>
    				</label>
    				<?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:?>
    		<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 secret-password-row"<?php if(!$content->secret):?> style="display:none"<?php endif?>>
    			<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 endif?>
    		
    			
    		<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?>" placeholder="<?php echo __('Title', 'kboard')?>"></div>
    		</div>
    				
    		<div class="kboard-attr-row">
            	<label class="attr-name">연락처</label>
    			<div class="attr-value">
    				<input type="text" name="kboard_option_tel" value="<?php echo $content->option->tel?>" placeholder=" '-' 없이 입력해주세요. ex)01012345678 "> 
    			</div>
    		</div>
    		
    		<div class="kboard-attr-row">
            	<label class="attr-name">이메일</label>
    			<div class="attr-value">
    				<input type="email" name="kboard_option_email" value="<?php echo $content->option->email?>" placeholder="example@xxx.co.kr">
    			</div>
    		</div>
    				
            <div class="kboard-attr-row">
            	<label class="attr-name">일시</label>
    				<div class="attr-value">
    					<input type="date" name="kboard_option_book_date" value="<?php echo $content->option->book_date?>">
    				</div>			
    		</div>
    
    		
    		<?php if($board->use_category):?>
    			<?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 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-attr-row">
            	<label class="attr-name">기타</label>
            	<div class="attr-value">요구사항 및 특이사항</div>
    		</div>
    		
    		<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"><?php echo $content->content?></textarea>
    			<?php endif?>
    		</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">
    			<div class="attr-name">개인정보수집</div>
    				<div class="attr-value">
    				<label class="attr-value-option">
    				<label><input style="background-image:none!important;" type="checkbox" name="kboard_option_personer" value="동의"<?php if($content->option->personer == '동의'):?> checked <?php endif?>> 개인정보수집 동의 </label>
    				<INPUT type="button" value="전문 열기" onclick="winOpen()">
    				</label>
    			</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->set('mod', 'list')->toString()?>" class="kboard-default-button-small"><?php echo __('List', '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 else:?>
    				<?php echo __('Save', 'kboard')?>
    				<?php endif?>
    				
    			</div>
    		</div>
    	</form>
    </div>
      
    <div id="kboard-default-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-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-title">
    						<a href="<?php echo $url->set('uid', $content->uid)->set('mod', 'document')->toString()?>">
    							<div class="kboard-default-cut-strings">
    								<?php if($content->isNew()):?><span class="kboard-default-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 echo $content->title?>
    								<span class="kboard-comments-count"><?php echo $content->getCommentsCount()?></span>
    							</div>
    						</a>
    						<div class="kboard-mobile-contents">
    							<span class="contents-item kboard-user"><?php echo apply_filters('kboard_user_display', $content->member_display, $content->member_uid, $content->member_display, 'kboard', $boardBuilder)?></span>
    							<span class="contents-separator kboard-date">|</span>
    							<span class="contents-item kboard-date"><?php echo $content->getDate()?></span>
    							<span class="contents-separator kboard-vote">|</span>
    							<span class="contents-item kboard-vote"><?php echo __('Votes', 'kboard')?> <?php echo $content->vote?></span>
    							<span class="contents-separator kboard-view">|</span>
    							<span class="contents-item kboard-view"><?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_display, $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-title">
    						<a href="<?php echo $url->set('uid', $content->uid)->set('mod', 'document')->toString()?>">
    							<div class="kboard-default-cut-strings">
    								<?php if($content->isNew()):?><span class="kboard-default-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 echo $content->title?>
    								<span class="kboard-comments-count"><?php echo $content->getCommentsCount()?></span>
    							</div>
    						</a>
    						<div class="kboard-mobile-contents">
    							<span class="contents-item kboard-user"><?php echo apply_filters('kboard_user_display', $content->member_display, $content->member_uid, $content->member_display, 'kboard', $boardBuilder)?></span>
    							<span class="contents-separator kboard-date">|</span>
    							<span class="contents-item kboard-date"><?php echo $content->getDate()?></span>
    							<span class="contents-separator kboard-vote">|</span>
    							<span class="contents-item kboard-vote"><?php echo __('Votes', 'kboard')?> <?php echo $content->vote?></span>
    							<span class="contents-separator kboard-view">|</span>
    							<span class="contents-item kboard-view"><?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_display, $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<?php endif?>><?php echo __('Title', 'kboard')?></option>
    				<option value="content"<?php if(kboard_target() == 'content'):?> selected<?php endif?>><?php echo __('Content', 'kboard')?></option>
    				<option value="member_display"<?php if(kboard_target() == 'member_display'):?> selected<?php endif?>><?php echo __('Author', 'kboard')?></option>
    			</select>
    			<input type="text" name="keyword" value="<?php echo kboard_keyword()?>">
    			<button type="submit" class="kboard-default-button-small"><?php echo __('Search', 'kboard')?></button>
    		</form>
    	</div>
    	<!-- 검색폼 끝 -->
    	
    	<?php if($board->isWriter()):?>
    	<!-- 버튼 시작 -->
    	<div class="kboard-control">
    		<a href="<?php echo $url->set('mod', 'editor')->toString()?>" class="kboard-default-button-small"><?php echo __('New', 'kboard')?></a>
    	</div>
    	<!-- 버튼 끝 -->
    	<?php endif?>
    	
    	<div class="kboard-default-poweredby">
    		<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>
  • 안녕하세요~^^

    editor.php 파일 내용을 직접 넣지 마시고. list.php 파일 상단에

    아래의 코드를 추가해보시겠어요? 고맙습니다.

    <?php $boardBuilder-> builderEditor()?>

    고맙습니다.

워드프레스 에러 기술지원 서비스 전문가에게 맡기세요