게시판 검색폼에 필터를 적용하고 검색 시, 내용이 검색되지 않습니다.

 

kboard avatar 스킨을 커스텀해서 사용 중입니다.

리스트형식처럼 보여지며, 아래 검색폼에서 대표자(필터) 적용 후 내용을 검색하면 내용을 가진 데이터가 검색이 되지 않습니다.

검색폼에서 '전체'필터를 적용해도 똑같은 상황이 발생합니다.

 

해당 게시판 사용 페이지는 아래 주소 입니다.

https://www.kopus.org/member-memberlist/

 

<div id="kboard-avatar-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="korean_alphabet"<?php if($list->getSorting() == 'korean_alphabet'):?> selected<?php endif?>>가나다순</option>
					<option value="newest"<?php if($list->getSorting() == 'newest'):?> selected<?php endif?>><?php echo __('Newest', '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'){
		if($board->isTreeCategoryActive()){
			$category_type = 'tree-select';
		}
		else{
			$category_type = 'default';
		}
		$category_type = apply_filters('kboard_skin_category_type', $category_type, $board, $boardBuilder);
		echo $skin->load($board->skin, "list-category-{$category_type}.php", $vars);
	}
	?>
	<!-- 카테고리 끝 -->
	
	<!-- 리스트 시작 -->
	<div class="kboard-list">
		<table>
			<thead>
				<tr>
					<td class="kboard-list-title"><?php echo __('출판사명', 'kboard')?></td>
					<td class="kboard-list-people"><?php echo __('대표자', 'kboard')?></td>
					<td class="kboard-list-category"><?php echo __('출판분야', 'kboard')?></td>
					<td class="kboard-list-tel"><?php echo __('연락처', 'kboard')?></td>
					<td class="kboard-list-url"><?php echo __('홈페이지', '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->getDocumentURLWithUID($content->uid)?>">
							<div class="kboard-avatar-cut-strings">
								<?php if($content->isNew()):?><span class="kboard-avatar-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', get_avatar($content->member_uid, 24, '', $content->member_display).' '.$content->member_display, $content->member_uid, $content->member_display, 'kboard', $boardBuilder)?>
							</span>
							<span class="contents-item kboard-people"><?php echo __('대표자', 'kboard')?> <?php echo $content->people?></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', get_avatar($content->member_uid, 24, '', $content->member_display).'<br>'.$content->member_display, $content->member_uid, $content->member_display, 'kboard', $boardBuilder)?>
					</td>-->

					<td class="kboard-list-people"><?php echo $content->option->people?></td>
					<td class="kboard-list-category"><?php echo $content->option->category?></td>
					<td class="kboard-list-tel"><?php echo $content->option->tel?></td>
					<td class="kboard-list-url"><?php echo $content->option->url?></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->getDocumentURLWithUID($content->uid)?>">
							<div class="kboard-avatar-cut-strings">
								
								<?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', get_avatar($content->member_uid, 24, '', $content->member_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-category">|</span>
							<span class="contents-item kboard-category"><?php echo __('category', 'kboard')?> <?php echo $content->category?></span>
							<span class="contents-separator kboard-people">|</span>
							<span class="contents-item kboard-people"><?php echo __('people', 'kboard')?> <?php echo $content->people?></span>
							<span class="contents-separator kboard-url">|</span>
							<span class="contents-item kboard-url"><?php echo __('url', 'kboard')?> <?php echo $content->url?></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', get_avatar($content->member_uid, 24, '', $content->member_display).'<br>'.$content->member_display, $content->member_uid, $content->member_display, 'kboard', $boardBuilder)?>
					</td>-->

					<td class="kboard-list-people"><?php echo $content->option->people?></td>
					<td class="kboard-list-category"><?php echo $content->option->category?></td>
					<td class="kboard-list-tel"><?php echo $content->option->tel?></td>
					<td class="kboard-list-url"><a href="<?php echo $content->option->url?>" target="_blank"><?php echo $content->option->url?></a></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 __('출판사명', 'kboard')?></option>
				<option value="people"<?php if(kboard_target() == 'people'):?> selected<?php endif?>><?php echo __('대표자', '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 esc_attr(kboard_keyword())?>">
			<button type="submit" class="kboard-avatar-button-small"><?php echo __('Search', 'kboard')?></button>
		</form>
	</div>
	<!-- 검색폼 끝 -->
	
	<?php if($board->isWriter()):?>
	<!-- 버튼 시작 -->
	<div class="kboard-control">
		<a href="<?php echo $url->getContentEditor()?>" class="kboard-avatar-button-small"><?php echo __('New', 'kboard')?></a>
	</div>
	<!-- 버튼 끝 -->
	<?php endif?>
	
	<?php if($board->contribution()):?>
	<div class="kboard-avatar-poweredby">
		<a href="https://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>
	<?php endif?>
</div>

 

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