리스트 입력필드 추가

list 에 입력필드를 추가하려하는데 도큐멘트에 추가하듯이 같은맥락을넣었는데 추가가안되요

밑에는 전체 소스입니다.

 

 

<div id="kboard-card-gallery-list">

    <!-- 카테고리 시작 -->
    <div class="kboard-header">
        <?php if($board->use_category == 'yes'):?>
        <form id="kboard-search-form" method="get" action="<?php echo $url->set('mod', 'list')->toString()?>">
            <?php echo $url->set('pageid', '1')->set('mod', 'list')->toInput()?>
            <div class="kboard-category">
                <?php if($board->initCategory1()):?>
                    <select name="category1" onchange="jQuery('#kboard-search-form').submit();">
                        <option value=""><?php echo __('All', 'kboard')?></option>
                        <?php while($board->hasNextCategory()):?>
                        <option value="<?php echo $board->currentCategory()?>"<?php if($_GET['category1'] == $board->currentCategory()):?> selected="selected"<?php endif?>><?php echo $board->currentCategory()?></option>
                        <?php endwhile?>
                    </select>
                <?php endif?>
                <?php if($board->initCategory2()):?>
                    <select name="category2" onchange="jQuery('#kboard-search-form').submit();">
                        <option value=""><?php echo __('All', 'kboard')?></option>
                        <?php while($board->hasNextCategory()):?>
                        <option value="<?php echo $board->currentCategory()?>"<?php if($_GET['category2'] == $board->currentCategory()):?> selected="selected"<?php endif?>><?php echo $board->currentCategory()?></option>
                        <?php endwhile?>
                    </select>
                <?php endif?>
            </div>
        </form>
        <?php endif?>
    </div>
    <!-- 카테고리 끝 -->
    
    <!-- 리스트 시작 -->
    <ul class="kboard-list">
        <?php while($content = $list->hasNextNotice()):?>
        <li class="kboard-list-item">
            <a href="<?php echo $url->set('uid', $content->uid)->set('mod', 'document')->toString()?>">
                
                <?php if($content->getThumbnail(330, 160)):?>
                    <div class="kboard-list-thumbnail" style="background-image:url(<?php echo $content->getThumbnail(330, 160)?>)"></div>
                <?php else:?>
                    <div class="kboard-list-thumbnail" style=""></div>
                <?php endif?>
                
                <div class="kboard-list-title"><div class="cut_strings">
                    <?php echo $content->title?>  
                           <?=$content->option->name?>
        <?=$content->option->namee?>
        <?=$content->option->nameee?>
        <?=$content->option->nameeee?>
        <?=$content->option->nameeeee?>        
                    <?php echo $content->getCommentsCount()?>
                    <?php if($content->secret):?><img src="<?php echo $skin_path?>/images/icon-lock.png" alt="<?php echo __('Secret', 'kboard')?>"><?php endif?>
                </div></div>
                
                <div class="kboard-list-summary"><?php echo trim(strip_tags($content->content))?></div>
                
                <div class="kboard-list-catetory"><?php
                unset($category);
                $category[] = __('Notice', 'kboard');
                if($content->category1) $category[] = $content->category1;
                if($content->category2) $category[] = $content->category2;
                if(isset($category)) echo implode(', ', $category);
                ?></div>
                
                <div class="kboard-list-user"><?php echo $content->member_display?></div>
                
                <?php if($content->vote):?>
                <div class="kboard-list-vote"><img src="<?php echo $skin_path?>/images/icon-heart.png" alt="<?php echo __('Vote', 'kboard')?>"> <?php echo intval($content->vote)?></div>
                <?php endif?>
            </a>
        </li>
        <?php endwhile?>
        <?php while($content = $list->hasNext()):?>
        <li class="kboard-list-item">
            <a href="<?php echo $url->set('uid', $content->uid)->set('mod', 'document')->toString()?>">
                
                <?php if($content->getThumbnail(330, 160)):?>
                    <div class="kboard-list-thumbnail" style="background-image:url(<?php echo $content->getThumbnail(330, 160)?>)"></div>
                <?php else:?>
                    <div class="kboard-list-thumbnail" style=""></div>
                <?php endif?>
                
                <div class="kboard-list-title"><div class="cut_strings">
                    <?php echo $content->title?>
                    <?=$content->option->name?>
                    <?=$content->option->namee?>
                    <?=$content->option->nameee?>
                    <?=$content->option->nameeee?>
                    <?=$content->option->nameeeee?>  
                    <?php echo $content->getCommentsCount()?>
                    <?php if($content->secret):?><img src="<?php echo $skin_path?>/images/icon-lock.png" alt="<?php echo __('Secret', 'kboard')?>"><?php endif?>
                </div></div>
                
                <div class="kboard-list-summary"><?php echo trim(strip_tags($content->content))?></div>
                
                <div class="kboard-list-catetory"><?php
                unset($category);
                if($content->category1) $category[] = $content->category1;
                if($content->category2) $category[] = $content->category2;
                if(isset($category)) echo implode(', ', $category);
                ?></div>
                
                <div class="kboard-list-user"><?php echo $content->member_display?></div>
                
                <?php if($content->vote):?>
                <div class="kboard-list-vote"><img src="<?php echo $skin_path?>/images/icon-heart.png" alt="<?php echo __('Vote', 'kboard')?>"> <?php echo intval($content->vote)?></div>
                <?php endif?>
            </a>
        </li>
        <?php endwhile?>
        
    </ul>
    <!-- 리스트 끝 -->
    
    <!-- 페이징 시작 -->
    <div class="kboard-pagination">
        <ul class="kboard-pagination-pages">
            <?php echo kboard_pagination($list->page, $list->total, $list->rpp)?>
        </ul>
    </div>
    <!-- 페이징 끝 -->
    
    <!-- 검색폼 시작 -->
    <form method="get" action="<?php echo $url->set('mod', 'list')->toString()?>">
        <?php echo $url->set('pageid', '1')->set('mod', 'list')->toInput()?>
        <div class="kboard-search">
            <select name="target">
                <option value=""><?php echo __('All', 'kboard')?></option>
                <option value="title"<?php if($_GET['target'] == 'title'):?> selected="selected"<?php endif?>><?php echo __('Title', 'kboard')?></option>
                <option value="content"<?php if($_GET['target'] == 'content'):?> selected="selected"<?php endif?>><?php echo __('Content', 'kboard')?></option>
                <option value="member_display"<?php if($_GET['target'] == 'member_display'):?> selected="selected"<?php endif?>><?php echo __('Author', 'kboard')?></option>
            </select>
            <input type="text" name="keyword" value="<?php echo $_GET['keyword']?>" placeholder="<?php echo __('Search', 'kboard')?>...">
            <button type="submit" class="kboard-card-gallery-button-small"><?php echo __('Search', 'kboard')?></button>
        </div>
    </form>
    <!-- 검색폼 끝 -->
    
    <?php if($board->isWriter()):?>
    <!-- 버튼 시작 -->
    <div class="kboard-control">
        <button type="button" onclick="window.location.href='<?php echo $url->set('mod', 'editor')->toString()?>'" class="kboard-card-gallery-button-small"><?php echo __('New', 'kboard')?></button>
    </div>
    <!-- 버튼 끝 -->
    <?php endif?>
    
    <div class="kboard-card-gallery-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>

좋은 정보와 인맥을 동시에, 워드프레스 사용자 단톡방 참여하기
좋은 정보와 인맥을 동시에, 워드프레스 사용자 단톡방 참여하기
  • <?=$content->option->name?> 대신 <?php echo $content->option->name?> 이렇게 작성해주세요.

     

    아래 코드를 추가하신 건가요?

    <?php echo $content->title?>
    <?php echo $content->option->name?>
    <?php echo $content->option->namee?>
    <?php echo $content->option->nameee?>
    <?php echo $content->option->nameeee?>
    <?php echo $content->option->nameeeee?>

    사용 방법에 대해서는 문제가 없습니다.

    출력은 됐지만 레이아웃 CSS 속성으로 인해서 눈에 보이지 않는건 아닌지요?

    소스코드로 봐보시겠어요?

    사이트 페이지 주소도 알려주시겠어요?

  • 페이지 주소는 http://beansquare.co.kr 입니다. 

    <?php echo $content->option->name?>
    <?php echo $content->option->namee?>
    <?php echo $content->option->nameee?>
    <?php echo $content->option->nameeee?>
    <?php echo $content->option->nameeeee?>

    이 다섯가지 코드를 추가한게 맞습니다.

    css 는 건든게없습니다.

    카드갤러리스킨입니다.

  • 에디터만 수정이되었으며,

    도큐멘트커스텀 한것도 글쓰기에 입력한내용ㅇ이 출력되지않고 빈칸으로 남습니다..

    <div id="kboard-card-gallery-document">
    	<div class="kboard-header"></div>
    	
    	<div class="kboard-document-wrap" itemscope itemtype="http://schema.org/Article">
    		<div class="kboard-title" itemprop="name">
    			<p><?php echo $content->title?></p>
    		</div>
    		<p>자격증/획득연도 : <?php echo $content->option->name1?></p>
            <p>수상기록 : <?php echo $content->option->name2?></p>
            <p>경력 : <?php echo $content->option->name3?></p>
            <p>소속 : <?php echo $content->option->name4?></p>
            <p>홈페이지 : <?php echo $content->option->name5?></p>
    		<div class="kboard-detail">
    			<?php if($content->category1):?>
    			<div class="detail-attr detail-category1">
    				<div class="detail-name"><?php echo $content->category1?></div>
    			</div>
    			<?php endif?>
    			<?php if($content->category2):?>
    			<div class="detail-attr detail-category2">
    				<div class="detail-name"><?php echo $content->category2?></div>
    			</div>
    			<?php endif?>
    			<div class="detail-attr detail-writer">
    				<div class="detail-name"><img src="<?php echo $skin_path?>/images/icon-user.png" alt="<?php echo __('Author', 'kboard')?>"></div>
    				<div class="detail-value"><?php echo $content->member_display?></div>
    			</div>
    			<div class="detail-attr detail-date">
    				<div class="detail-name"><img src="<?php echo $skin_path?>/images/icon-date.png" alt="<?php echo __('Date', 'kboard')?>"></div>
    				<div class="detail-value"><?php echo date('Y-m-d H:i', strtotime($content->date))?></div>
    			</div>
    			<div class="detail-attr detail-view">
    				<div class="detail-name"><img src="<?php echo $skin_path?>/images/icon-view.png" alt="<?php echo __('Views', 'kboard')?>"></div>
    				<div class="detail-value"><?php echo $content->view?></div>
    			</div>
    			<div class="detail-attr detail-view">
    				<div class="detail-name"><img src="<?php echo $skin_path?>/images/icon-heart.png" alt="<?php echo __('Vote', 'kboard')?>"></div>
    				<div class="detail-value"><?php echo intval($content->vote)?></div>
    			</div>
    		</div>
    		
    		<div class="kboard-content" itemprop="description">
    			<div class="content-view">
    				<?php echo $content->content?>
    			</div>
    		</div>
    		
    		<div class="kboard-document-action">
    			<div class="left">
    				<button type="button" class="kboard-button-action kboard-button-like" onclick="kboard_document_like(this)" data-uid="<?php echo $content->uid?>" title="<?php echo __('Like', 'kboard')?>"><?php echo __('Like', 'kboard')?> <span class="kboard-document-like-count"><?php echo intval($content->like)?></span></button>
    				<button type="button" class="kboard-button-action kboard-button-unlike" onclick="kboard_document_unlike(this)" data-uid="<?php echo $content->uid?>" title="<?php echo __('Unlike', 'kboard')?>"><?php echo __('Unlike', 'kboard')?> <span class="kboard-document-unlike-count"><?php echo intval($content->unlike)?></span></button>
    			</div>
    			<div class="right">
    				<button type="button" class="kboard-button-action kboard-button-print" onclick="kboard_document_print('<?php echo $url->getDocumentPrint($content->uid)?>')" title="<?php echo __('Print', 'kboard')?>"><?php echo __('Print', 'kboard')?></button>
    			</div>
    		</div>
    		
    		<?php if(isset($content->attach->file1)):?>
    		<div class="kboard-attach">
    			<?php echo __('Attachment', 'kboard')?> : <a href="<?php echo $url->getDownloadURLWithAttach($content->uid, 'file1')?>"><?php echo $content->attach->file1[1]?></a>
    		</div>
    		<?php endif?>
    		
    		<?php if(isset($content->attach->file2)):?>
    		<div class="kboard-attach">
    			<?php echo __('Attachment', 'kboard')?> : <a href="<?php echo $url->getDownloadURLWithAttach($content->uid, 'file2')?>"><?php echo $content->attach->file2[1]?></a>
    		</div>
    		<?php endif?>
    	</div>
    	
    	<?php if($board->isComment()):?>
    	<div class="kboard-comments-area"><?php echo $board->buildComment($content->uid)?></div>
    	<?php endif?>
    	
    	<div class="kboard-document-navi">
    		<div class="kboard-prev-document">
    			<?php
    			$bottom_content_uid = $content->getPrevUID();
    			if($bottom_content_uid):
    			$bottom_content = new KBContent();
    			$bottom_content->initWithUID($bottom_content_uid);
    			?>
    			<a href="<?php echo $url->getDocumentURLWithUID($bottom_content_uid)?>">
    				<span class="navi-arrow">«</span>
    				<span class="navi-document-title cut_strings"><?php echo $bottom_content->title?></span>
    			</a>
    			<?php endif?>
    		</div>
    		
    		<div class="kboard-next-document">
    			<?php
    			$top_content_uid = $content->getNextUID();
    			if($top_content_uid):
    			$top_content = new KBContent();
    			$top_content->initWithUID($top_content_uid);
    			?>
    			<a href="<?php echo $url->getDocumentURLWithUID($top_content_uid)?>">
    				<span class="navi-document-title cut_strings"><?php echo $top_content->title?></span>
    				<span class="navi-arrow">»</span>
    			</a>
    			<?php endif?>
    		</div>
    	</div>
    	
    	<div class="kboard-control">
    		<div class="left">
    			<a href="<?php echo $url->toString()?>" class="kboard-card-gallery-button-small"><?php echo __('List', 'kboard')?></a>
    		</div>
    		<?php if($board->isEditor($content->member_uid) || $board->permission_write=='all'):?>
    		<div class="right">
    			<a href="<?php echo $url->set('uid', $content->uid)->set('mod', 'editor')->toString()?>" class="kboard-card-gallery-button-small"><?php echo __('Edit', 'kboard')?></a>
    			<a href="<?php echo $url->set('uid', $content->uid)->set('mod', 'remove')->toString()?>" class="kboard-card-gallery-button-small" onclick="return confirm('<?php echo __('Are you sure you want to delete?', 'kboard')?>');"><?php echo __('Delete', 'kboard')?></a>
    		</div>
    		<?php endif?>
    	</div>
    	
    	<div class="kboard-card-gallery-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>

     

  • 혹시하여 방금 이름을 name1-5로 수정한것입니다.

    세개다 수정했는데 도큐멘트와 리스트는 내용 출력이 안되는거같습니다.

    혹시몰라 에디터 소스도 올립니다.

    <div id="kboard-card-gallery-editor">
    	<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?>">
    		
    		<div class="kboard-attr-row kboard-attr-title">
    			<label class="attr-name" for="kboard-input-title"><?php echo __('이름')?></label>
    			<div class="attr-value"><input type="text" id="kboard-input-title" name="title" value="<?php echo $content->title?>" placeholder="<?php echo __('이름', 'kboard')?>..."></div>
    		</div>
            
            <div class="kboard-attr-row">
                <label class="attr-name">자격증/획득연도</label>
                <div class="arrt-value"><input type="text" name="kboard_option_za" value="<?=$content->option->name1?>" /></div>
            </div>
            <div class="kboard-attr-row">
                <label class="attr-name">수상기록</label>
                <div class="arrt-value"><input type="text" name="kboard_option_su" value="<?=$content->option->name2?>" /></div>
            </div>
             <div class="kboard-attr-row">
                <label class="attr-name">경력</label>
                <div class="arrt-value"><input type="text" name="kboard_option_gy" value="<?=$content->option->name3?>" /></div>
            </div>
             <div class="kboard-attr-row">
                <label class="attr-name">소속</label>
                <div class="arrt-value"><input type="text" name="kboard_option_so" value="<?=$content->option->name4?>" /></div>
            </div>
              <div class="kboard-attr-row">
                <label class="attr-name">홈페이지</label>
                <div class="arrt-value"><input type="text" name="kboard_option_ho" value="<?=$content->option->name5?>" /></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="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="selected"<?php endif?>><?php echo $board->currentCategory()?></option>
    						<?php endwhile?>
    					</select>
    				</div>
    			</div>
    			<?php endif?>
    		<?php endif?>
    		
    		<?php if(!is_user_logged_in()):?>
    		<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>
    		<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?>
    		
    		<div class="kboard-attr-row">
    			<div class="attr-name"><?php echo __('옵션', 'kboard')?></div>
    			<div class="attr-value">
    				<label class="attr-value-option"><input type="checkbox" name="secret" value="true"<?php if($content->secret):?> checked<?php endif?>> <?php echo __('Secret', 'kboard')?></label>
    				<?php if($board->isAdmin()):?>
    				<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?>
    			</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">이미지 업로드</label>
    			<div class="attr-value">
    				<?php if($board->use_editor):?>
    					<a href="#" onclick="kboard_editor_open_media();return false;">KBoard 미디어 추가</a>
    				<?php else:?>
    					※ 기본설정에서 글 작성 에디터를 워드프레스 내장 에디터로 변경해주세요.
    				<?php endif?>
    			</div>
    		</div>
    		
    		<div class="kboard-attr-row">
    			<label class="attr-name" for="kboard-input-thumbnail"><?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" id="kboard-input-thumbnail" name="thumbnail">
    			</div>
    		</div>
    		
    		<div class="kboard-attr-row">
    			<label class="attr-name" for="kboard-input-file1"><?php echo __('Attachment', 'kboard')?>1</label>
    			<div class="attr-value">
    				<?php if(isset($content->attach->file1)):?><?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" id="kboard-input-file1" name="kboard_attach_file1">
    			</div>
    		</div>
    		
    		<div class="kboard-attr-row">
    			<label class="attr-name" for="kboard-input-file2"><?php echo __('Attachment', 'kboard')?>2</label>
    			<div class="attr-value">
    				<?php if(isset($content->attach->file2)):?><?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" id="kboard-input-file2" name="kboard_attach_file2">
    			</div>
    		</div>
    		
    		<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->set('uid', $content->uid)->set('mod', 'document')->toString()?>" class="kboard-card-gallery-button-small"><?php echo __('Back', 'kboard')?></a>
    				<a href="<?php echo $url->toString()?>" class="kboard-card-gallery-button-small"><?php echo __('List', 'kboard')?></a>
    				<?php else:?>
    				<a href="<?php echo $url->toString()?>" class="kboard-card-gallery-button-small"><?php echo __('Back', 'kboard')?></a>
    				<?php endif?>
    			</div>
    			<div class="right">
    				<?php if($board->isWriter()):?>
    				<button type="submit" class="kboard-card-gallery-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 class="kboard-attr-row">
         <label class="attr-name">자격증/획득연도</label>
         <div class="arrt-value"><input type="text" name="kboard_option_za" value="<?php echo $content->option->za?>"></div>
    </div>

    물론 list.php와 document.php 파일에서도 <?php echo $content->option->za?> 이렇게 작성해주셔야 출력이 됩니다.

     

    다른것도 마찬가지 입니다^^

    <input type="text" name="kboard_option_su" value="<?php echo $content->option->su?>">

  • 도큐멘트는 수정이 잘되었으나 리스트는 그대로 원래에 되어있는던 제목/내용만 출력이되네요...ㅜㅜ 뭐가문제일까요

  • 수정한 리스트 php
    
    
    <div id="kboard-card-gallery-list">
    
    	<!-- 카테고리 시작 -->
    	<div class="kboard-header">
    		<?php if($board->use_category == 'yes'):?>
    		<form id="kboard-search-form" method="get" action="<?php echo $url->set('mod', 'list')->toString()?>">
    			<?php echo $url->set('pageid', '1')->set('mod', 'list')->toInput()?>
    			<div class="kboard-category">
    				<?php if($board->initCategory1()):?>
    					<select name="category1" onchange="jQuery('#kboard-search-form').submit();">
    						<option value=""><?php echo __('All', 'kboard')?></option>
    						<?php while($board->hasNextCategory()):?>
    						<option value="<?php echo $board->currentCategory()?>"<?php if($_GET['category1'] == $board->currentCategory()):?> selected="selected"<?php endif?>><?php echo $board->currentCategory()?></option>
    						<?php endwhile?>
    					</select>
    				<?php endif?>
    				<?php if($board->initCategory2()):?>
    					<select name="category2" onchange="jQuery('#kboard-search-form').submit();">
    						<option value=""><?php echo __('All', 'kboard')?></option>
    						<?php while($board->hasNextCategory()):?>
    						<option value="<?php echo $board->currentCategory()?>"<?php if($_GET['category2'] == $board->currentCategory()):?> selected="selected"<?php endif?>><?php echo $board->currentCategory()?></option>
    						<?php endwhile?>
    					</select>
    				<?php endif?>
    			</div>
    		</form>
    		<?php endif?>
    	</div>
    	<!-- 카테고리 끝 -->
    	
    	<!-- 리스트 시작 -->
    	<ul class="kboard-list">
    		<?php while($content = $list->hasNextNotice()):?>
    		<li class="kboard-list-item">
    			<a href="<?php echo $url->set('uid', $content->uid)->set('mod', 'document')->toString()?>">
    				
    				<?php if($content->getThumbnail(330, 160)):?>
    					<div class="kboard-list-thumbnail" style="background-image:url(<?php echo $content->getThumbnail(330, 160)?>)"></div>
    				<?php else:?>
    					<div class="kboard-list-thumbnail" style=""></div>
    				<?php endif?>
    				
    				<div class="kboard-list-title"><div class="cut_strings">
    					<?php echo $content->title?>  
    <?php echo $content->option->za?>
    <?php echo $content->option->su?>
    <?php echo $content->option->gy?>
    <?php echo $content->option->so?>
    <?php echo $content->option->ho?>    
    					<?php echo $content->getCommentsCount()?>
    					<?php if($content->secret):?><img src="<?php echo $skin_path?>/images/icon-lock.png" alt="<?php echo __('Secret', 'kboard')?>"><?php endif?>
    				</div></div>
    				
    				<div class="kboard-list-summary"><?php echo trim(strip_tags($content->content))?></div>
    				
    				<div class="kboard-list-catetory"><?php
    				unset($category);
    				$category[] = __('Notice', 'kboard');
    				if($content->category1) $category[] = $content->category1;
    				if($content->category2) $category[] = $content->category2;
    				if(isset($category)) echo implode(', ', $category);
    				?></div>
    				
    				<div class="kboard-list-user"><?php echo $content->member_display?></div>
    				
    				<?php if($content->vote):?>
    				<div class="kboard-list-vote"><img src="<?php echo $skin_path?>/images/icon-heart.png" alt="<?php echo __('Vote', 'kboard')?>"> <?php echo intval($content->vote)?></div>
    				<?php endif?>
    			</a>
    		</li>
    		<?php endwhile?>
    		<?php while($content = $list->hasNext()):?>
    		<li class="kboard-list-item">
    			<a href="<?php echo $url->set('uid', $content->uid)->set('mod', 'document')->toString()?>">
    				
    				<?php if($content->getThumbnail(330, 160)):?>
    					<div class="kboard-list-thumbnail" style="background-image:url(<?php echo $content->getThumbnail(330, 160)?>)"></div>
    				<?php else:?>
    					<div class="kboard-list-thumbnail" style=""></div>
    				<?php endif?>
    				
    				<div class="kboard-list-title"><div class="cut_strings">
    					<?php echo $content->title?>
                        <?=$content->option->name?>
                        <?=$content->option->namee?>
                        <?=$content->option->nameee?>
                        <?=$content->option->nameeee?>
                        <?=$content->option->nameeeee?>  
    					<?php echo $content->getCommentsCount()?>
    					<?php if($content->secret):?><img src="<?php echo $skin_path?>/images/icon-lock.png" alt="<?php echo __('Secret', 'kboard')?>"><?php endif?>
    				</div></div>
    				
    				<div class="kboard-list-summary"><?php echo trim(strip_tags($content->content))?></div>
    				
    				<div class="kboard-list-catetory"><?php
    				unset($category);
    				if($content->category1) $category[] = $content->category1;
    				if($content->category2) $category[] = $content->category2;
    				if(isset($category)) echo implode(', ', $category);
    				?></div>
    				
    				<div class="kboard-list-user"><?php echo $content->member_display?></div>
    				
    				<?php if($content->vote):?>
    				<div class="kboard-list-vote"><img src="<?php echo $skin_path?>/images/icon-heart.png" alt="<?php echo __('Vote', 'kboard')?>"> <?php echo intval($content->vote)?></div>
    				<?php endif?>
    			</a>
    		</li>
    		<?php endwhile?>
    		
    	</ul>
    	<!-- 리스트 끝 -->
    	
    	<!-- 페이징 시작 -->
    	<div class="kboard-pagination">
    		<ul class="kboard-pagination-pages">
    			<?php echo kboard_pagination($list->page, $list->total, $list->rpp)?>
    		</ul>
    	</div>
    	<!-- 페이징 끝 -->
    	
    	<!-- 검색폼 시작 -->
    	<form method="get" action="<?php echo $url->set('mod', 'list')->toString()?>">
    		<?php echo $url->set('pageid', '1')->set('mod', 'list')->toInput()?>
    		<div class="kboard-search">
    			<select name="target">
    				<option value=""><?php echo __('All', 'kboard')?></option>
    				<option value="title"<?php if($_GET['target'] == 'title'):?> selected="selected"<?php endif?>><?php echo __('Title', 'kboard')?></option>
    				<option value="content"<?php if($_GET['target'] == 'content'):?> selected="selected"<?php endif?>><?php echo __('Content', 'kboard')?></option>
    				<option value="member_display"<?php if($_GET['target'] == 'member_display'):?> selected="selected"<?php endif?>><?php echo __('Author', 'kboard')?></option>
    			</select>
    			<input type="text" name="keyword" value="<?php echo $_GET['keyword']?>" placeholder="<?php echo __('Search', 'kboard')?>...">
    			<button type="submit" class="kboard-card-gallery-button-small"><?php echo __('Search', 'kboard')?></button>
    		</div>
    	</form>
    	<!-- 검색폼 끝 -->
    	
    	<?php if($board->isWriter()):?>
    	<!-- 버튼 시작 -->
    	<div class="kboard-control">
    		<button type="button" onclick="window.location.href='<?php echo $url->set('mod', 'editor')->toString()?>'" class="kboard-card-gallery-button-small"><?php echo __('New', 'kboard')?></button>
    	</div>
    	<!-- 버튼 끝 -->
    	<?php endif?>
    	
    	<div class="kboard-card-gallery-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>

     

  • 위쪽 공지사항 리스트 쪽은 수정을 해주셨는데

    아래 일반글 리스트 쪽은 그대로네요.

    <?=$content->option->name?>
    <?=$content->option->namee?>
    <?=$content->option->nameee?>
    <?=$content->option->nameeee?>
    <?=$content->option->nameeeee?>

    위 부분 찾아서 아래 코드로 바꿔보세요~

    <?php echo $content->option->za?>
    <?php echo $content->option->su?>
    <?php echo $content->option->gy?>
    <?php echo $content->option->so?>
    <?php echo $content->option->ho?>

  • 수정해도 리스트에는 출력되지않아요..

    KBoard 카드 갤러리 스킨에 문제가있는걸까요?

  • 규칙만 잘 지켜주시면 모든 스킨 공통으로 기능이 동일합니다.

    정확히 말하면, 스킨의 기능이 아니라 코어 기능이기 때문에 스킨과는 무관하고 따라서 어느 스킨이라도 동일하게 동작합니다.

     

    입력 <input type="text" name="kboard_option_za" value="<?php echo $content->option->za?>">

    출력 <?php echo $content->option->za?>

    해당 규칙만 잘 지켜주시면 문제가 없을텐데요.

    다시 꼼꼼하게 확인해보시고, 정 안되시면 사이트 하단의 고객지원쪽 이메일로

    사이트 관리자 계정과 FTP 접속정보를 보내주시면 확인해드리겠습니다.

    본래는 비용 청구되지만 고생하시는 듯하여 특별히 무상으로 도와드리겠습니다^^;

  • 정말 감사합니다..ㅠㅠ 메일보냈습니다.

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