안녕하세요
워드프레스 KBoard 오션 프랜차이즈 스킨 사용중입니다.
다른부분은 검색해서 다 해결하였는데요...
리스트에서 지금은 주소쪽만 클릭해서 내용을 볼 수 있는데 지점명을 클릭해도 내용을 볼 수 있도록 하려면 어떤 소스를 수정해야 하는지요.?
http://dunoero.com/%EB%91%90%EB%87%8C%EB%A1%9C%EC%A7%80%EC%82%AC/
이곳처럼 지사명을 클릭해도 들어갈 수 있도록 하고 싶습니다.
도움 부탁드립니다.
감사합니다.
네..
해결됐습니다.
도움주셔서 진심으로 감사드립니다.... ^^
코드를 올려주실 땐 반드시 에디터의 "코드 스니펫 삽입" 기능으로 삽입해주세요.
그렇지 않으면 코드가 이상해져서 에러 나는 코드로 바뀌거나,
질의응답 시 의사소통에 오해와 문제가 생길 수도 있습니다.
올려주신 코드에서 아래의 코드를 찾아보시겠어요?
<td class="kboard-list-uid"><?php echo $list->index()?></td>
바로 아래 보시면 아래의 코드가 있습니다.
<td class="kboard-list-branch"><?php echo apply_filters('kboard_user_display', $content->member_display, $content->member_uid, $content->member_display, 'kboard', $boardBuilder)?></td>
위의 코드를 직접 수정하신 것처럼 아래의 코드로 교체해주세요.
<td class="kboard-list-branch">
<a href="<?php echo $url->getDocumentURLWithUID($content->uid)?>">
<?php echo apply_filters('kboard_user_display', $content->member_display, $content->member_uid, $content->member_display, 'kboard', $boardBuilder)?>
</a>
</td>
고맙습니다.
죄송합니다.
전체 코드를 아래와 같이 했거든요....
검토 부탁드립니다...
<div id="kboard-ocean-franchise-list">
<!-- 검색폼 시작 -->
<div class="kboard-header">
<div class="kboard-map-v2">
</div>
<form id="kboard-search-form" method="get" action="<?php echo $url->set('mod', 'list')->toString()?>">
<?php echo $url->set('category1', '')->set('category2', '')->set('category3', '')->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list', 'list')->toInput()?>
<div class="kboard-search">
<h3 class="kboard-header-title"><?php echo __('상세검색', 'kboard')?></h3>
<div class="kboard-target">
<select name="target">
<option value="kboard_option_work"<?php if(kboard_target() == 'kboard_option_work'):?> selected<?php endif?>>생산품목</option>
<option value="member_display"<?php if(kboard_target() == 'member_display'):?> selected<?php endif?>><?php echo __('업체명', 'kboard-ocean-franchise')?></option>
</select>
<input type="text" name="keyword" value="<?php echo kboard_keyword()?>">
<button type="submit" class="kboard-ocean-franchise-button-small"><?php echo __('Search', 'kboard')?></button>
</div>
</div>
<div class="kboard-branch">
<h3 class="kboard-header-title"><?php echo __('업종별 검색', 'kboard-ocean-franchise')?></h3>
<a class="kboard-branch-button<?php if(!kboard_category1()):?> active<?php endif?>" href="<?php echo $url->set('category1', '')->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->tostring()?>" title="전체"><?php echo __('All', 'kboard-ocean-franchise')?></a>
<a class="kboard-branch-button<?php if(kboard_category1()=='의류업체'):?> active<?php endif?>" href="<?php echo $url->set('category1', '의류업체')->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->tostring()?>" title="의류업체"><?php echo __('의류업체', 'kboard-ocean-franchise')?></a>
<a class="kboard-branch-button<?php if(kboard_category1()=='봉제업체'):?> active<?php endif?>" href="<?php echo $url->set('category1', '봉제업체')->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->tostring()?>" title="봉제업체"><?php echo __('봉제업체', 'kboard-ocean-franchise')?></a>
<a class="kboard-branch-button<?php if(kboard_category1()=='염색가공업체'):?> active<?php endif?>" href="<?php echo $url->set('category1', '염색가공업체')->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->tostring()?>" title="염색가공업체"><?php echo __('염색가공업체', 'kboard-ocean-franchise')?></a>
<a class="kboard-branch-button<?php if(kboard_category1()=='섬유업체'):?> active<?php endif?>" href="<?php echo $url->set('category1', '섬유업체')->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->tostring()?>" title="섬유업체"><?php echo __('섬유업체', 'kboard-ocean-franchise')?></a>
<a class="kboard-branch-button<?php if(kboard_category1()=='기타업체'):?> active<?php endif?>" href="<?php echo $url->set('category1', '기타업체')->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->tostring()?>" title="기타업체"><?php echo __('기타업체', 'kboard-ocean-franchise')?></a>
<a class="kboard-branch-button<?php if(kboard_category1()=='섬유기계업체'):?> active<?php endif?>" href="<?php echo $url->set('category1', '섬유기계업체')->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->tostring()?>" title="섬유기계업체"><?php echo __('섬유기계업체', 'kboard-ocean-franchise')?></a>
<a class="kboard-branch-button<?php if(kboard_category1()=='학교 연구소'):?> active<?php endif?>" href="<?php echo $url->set('category1', '학교 연구소')->set('pageid', '1')->set('target', '')->set('keyword', '')->set('mod', 'list')->tostring()?>" title="학교 연구소"><?php echo __('학교 연구소', 'kboard-ocean-franchise')?></a>
</div>
</form>
</div>
<!-- 검색폼 끝 -->
<!-- 리스트 시작 -->
<div class="kboard-list">
<table>
<thead>
<tr>
<td class="kboard-list-uid"><?php echo __('Number', 'kboard')?></td>
<td class="kboard-list-branch">업체명</td>
<td class="kboard-list-adress">소재지</td>
<td class="kboard-list-work">생산품목</td>
<td class="kboard-list-name">대표자</td>
<td class="kboard-list-tel">연락처</td>
</tr>
</thead>
<tbody>
<?php while($content = $list->hasNextNotice()):?>
<tr class="kboard-list-notice">
<td class="kboard-list-uid"><?php echo __('Notice', 'kboard')?></td>
<td class="kboard-list-branch">
<a href="<?php echo $url->getDocumentURLWithUID($content->uid)?>">
<?php echo apply_filters('kboard_user_display', $content->member_display, $content->member_uid, $content->member_display, 'kboard', $boardBuilder)?>
</a>
</td>
<td class="kboard-list-title">
<div class="kboard-ocean-franchise-cut-strings">
<a href="<?php echo $url->getDocumentURLWithUID($content->uid)?>">
<?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?>
</a>
<span class="kboard-comments-count"><?php echo $content->getCommentsCount()?></span>
</div>
</td>
<td class="kboard-list-tel"><?php echo $content->option->tel?></td>
<td class="kboard-list-name"><?php echo $content->option->name?></td>
</tr>
<?php endwhile?>
<?php while($content = $list->hasNext()):?>
<tr>
<td class="kboard-list-uid"><?php echo $list->index()?></td>
<td class="kboard-list-branch"><?php echo apply_filters('kboard_user_display', $content->member_display, $content->member_uid, $content->member_display, 'kboard', $boardBuilder)?></td>
<td class="kboard-list-title">
<div class="kboard-ocean-franchise-cut-strings">
<a href="<?php echo $url->getDocumentURLWithUID($content->uid)?>">
<?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?>
</a>
<span class="kboard-comments-count"><?php echo $content->getCommentsCount()?></span>
</div>
</td>
<td class="kboard-list-work"><?php echo $content->option->work?></td>
<td class="kboard-list-name"><?php echo $content->option->name?></td>
<td class="kboard-list-tel"><?php echo $content->option->tel?></td>
</tr>
<?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>
<!-- 페이징 끝 -->
<?php if($board->isWriter()):?>
<!-- 버튼 시작 -->
<div class="kboard-control">
<a href="<?php echo $url->getContentEditor()?>" class="kboard-ocean-franchise-button-small"><?php echo __('업체등록', 'kboard-ocean-franchise')?></a>
</div>
<!-- 버튼 끝 -->
<?php endif?>
<?php if($board->contribution()):?>
<div class="kboard-ocean-franchise-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>
<?php wp_enqueue_script('kboard-ocean-franchise-list', "{$skin_path}/list.js", array(), KBOARD_VERSION, true)?>
list.php 파일에서 아래의 코드가 공지사항을 출력하는 부분입니다.
<?php while($content = $list->hasNextNotice()):?>
...
<?php endwhile?>
아래의 코드가 공지사항이 아닌 일반 게시글을 표시하는 코드입니다.
<?php while($content = $list->hasNext()):?>
...
<?php endwhile?>
일반 게시글 쪽도 수정하셨는지 확인해보시겠어요?
고맙습니다.
<td class="kboard-list-branch"><?php echo apply_filters('kboard_user_display', $content->member_display, $content->member_uid, $content->member_display, 'kboard', $boardBuilder)?></td> 이 코드를
<td class="kboard-list-branch">
<a href="<?php echo $url->getDocumentURLWithUID($content->uid)?>">
<?php echo apply_filters('kboard_user_display', $content->member_display, $content->member_uid, $content->member_display, 'kboard', $boardBuilder)?>
</a>
</td> 이걸로 바꿨는데 링크가 그대로네요...
뭐가 잘못된걸까요.?
http://btfa6321.cafe24.com/?page_id=1204&category1=%EC%9D%98%EB%A5%98%EC%97%85%EC%B2%B4&mod=list&pageid=1 이곳입니다...
도움 부탁드립니다.
안녕하세요~^^
KBoard 오션 프랜차이즈 스킨 게시글 목록 페이지에서
지점명 클릭 시에도 본문 페이지로 이동하게 하시려면
FTP로 접속해서 /wp-content/plugins/kboard/skin/사용중인스킨/list.php 파일에
아래의 코드를 모두 찾아서
<td class="kboard-list-branch"><?php echo apply_filters('kboard_user_display', $content->member_display, $content->member_uid, $content->member_display, 'kboard', $boardBuilder)?></td>
아래의 코드로 모두 교체해보시겠어요?
<td class="kboard-list-branch">
<a href="<?php echo $url->getDocumentURLWithUID($content->uid)?>">
<?php echo apply_filters('kboard_user_display', $content->member_display, $content->member_uid, $content->member_display, 'kboard', $boardBuilder)?>
</a>
</td>
고맙습니다.