<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
	<channel>
				<title><![CDATA[게시글 수정 후 상세화면 네비게이터 순서]]></title>
		<link>https://www.cosmosfarm.com/threads/rss/document/33593</link>
		<description><![CDATA[<p>안녕하세요.</p>

<p>다름이 아니라 게시글을 수정 할이 있어, 날짜 수정을 통해서 수정을 했는데, 적용은 잘 되었으나<br />
상세화면에 들어가면 상하단에 좌우로 이전, 다음 게시글로 이동할 수 있는 네비게이터에서는<br />
적용이 안되는 것 같습니다. 이전 등록 값을 그대로 가져오는 것 아닌가 합니다. </p>

<p>혹시 네비게이터에서도 순서 변경 가능한 방법이 없는지요.</p>

<p> </p>]]></description>
		<copyright>Copyright 2026, 코스모스팜</copyright>
				<item>
			<title><![CDATA[늦게 답변을 보고, 감사 인사 남깁니다.

항상 신속하고 정확한 답변 감사합니다.
답변대로 적용해보겠...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/36841</link>
			<description><![CDATA[<p>늦게 답변을 보고, 감사 인사 남깁니다.</p>

<p>항상 신속하고 정확한 답변 감사합니다.<br />
답변대로 적용해보겠습니다.</p>

<p><br />
 </p>]]></description>
			<author>good9</author>
			<pubDate>Tue, 10 Sep 2019 09:22:39 +0000</pubDate>
			<category>KBoard</category>
		</item>
				<item>
			<title><![CDATA[안녕하세요~^^

KBoard 플러그인 게시글 본문 페이지에서

이전 글, 다음 글은 게시글 uid 값을 기준으...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/33596</link>
			<description><![CDATA[<p>안녕하세요~^^</p>

<p>KBoard 플러그인 게시글 본문 페이지에서</p>

<p>이전 글, 다음 글은 게시글 uid 값을 기준으로 표시하고 있습니다.</p>

<p>게시글 날짜를 기준으로 표시하시려면</p>

<p>KBoard 플러그인 파일을 수정해주셔야 합니다.</p>

<p> </p>

<p>FTP로 접속해서 /wp-content/plugins/kboard/class/KBContent.class.php 파일에</p>

<p>아래의 코드를 찾아서</p>

<pre>
<code class="language-php">/**
 * 다음 게시물의 UID를 반환한다.
 */
public function getNextUID(){
	global $wpdb;
	if($this-&gt;uid){
		$category1 = kboard_category1();
		$category2 = kboard_category2();
		
		$where[] = "`board_id`='{$this-&gt;board_id}'";
		$where[] = "`uid`&gt;'{$this-&gt;uid}'";
		
		// 휴지통에 없는 게시글만 불러온다.
		$where[] = "(`status`='' OR `status` IS NULL OR `status`='pending_approval')";
		
		if($category1){
			$category1 = esc_sql($category1);
			$where[] = "`category1`='{$category1}'";
		}
		if($category2){
			$category2 = esc_sql($category2);
			$where[] = "`category2`='{$category2}'";
		}
		
		$where = implode(' AND ', $where);
		$uid = $wpdb-&gt;get_var("SELECT `uid` FROM `{$wpdb-&gt;prefix}kboard_board_content` WHERE {$where} ORDER BY `uid` ASC LIMIT 1");
		$wpdb-&gt;flush();
		
		return intval($uid);
	}
	return 0;
}

/**
 * 이전 게시물의 UID를 반환한다.
 */
public function getPrevUID(){
	global $wpdb;
	if($this-&gt;uid){
		$category1 = kboard_category1();
		$category2 = kboard_category2();
		
		$where[] = "`board_id`='{$this-&gt;board_id}'";
		$where[] = "`uid`&lt;'{$this-&gt;uid}'";
		
		// 휴지통에 없는 게시글만 불러온다.
		$where[] = "(`status`='' OR `status` IS NULL OR `status`='pending_approval')";
		
		if($category1){
			$category1 = esc_sql($category1);
			$where[] = "`category1`='{$category1}'";
		}
		if($category2){
			$category2 = esc_sql($category2);
			$where[] = "`category2`='{$category2}'";
		}
		
		$where = implode(' AND ', $where);
		$uid = $wpdb-&gt;get_var("SELECT `uid` FROM `{$wpdb-&gt;prefix}kboard_board_content` WHERE {$where} ORDER BY `uid` DESC LIMIT 1");
		$wpdb-&gt;flush();
		
		return intval($uid);
	}
	return 0;
}</code></pre>

<p>아래의 코드로 교체해보시겠어요?</p>

<pre>
<code class="language-php">/**
 * 다음 게시물의 UID를 반환한다.
 */
public function getNextUID(){
	global $wpdb;
	if($this-&gt;uid){
		$category1 = kboard_category1();
		$category2 = kboard_category2();
		
		$where[] = "`board_id`='{$this-&gt;board_id}'";
		$where[] = "`date`&gt;'{$this-&gt;date}'";
		
		// 휴지통에 없는 게시글만 불러온다.
		$where[] = "(`status`='' OR `status` IS NULL OR `status`='pending_approval')";
		
		if($category1){
			$category1 = esc_sql($category1);
			$where[] = "`category1`='{$category1}'";
		}
		if($category2){
			$category2 = esc_sql($category2);
			$where[] = "`category2`='{$category2}'";
		}
		
		$where = implode(' AND ', $where);
		$uid = $wpdb-&gt;get_var("SELECT `uid` FROM `{$wpdb-&gt;prefix}kboard_board_content` WHERE {$where} ORDER BY `date` ASC LIMIT 1");
		$wpdb-&gt;flush();
		
		return intval($uid);
	}
	return 0;
}

/**
 * 이전 게시물의 UID를 반환한다.
 */
public function getPrevUID(){
	global $wpdb;
	if($this-&gt;uid){
		$category1 = kboard_category1();
		$category2 = kboard_category2();
		
		$where[] = "`board_id`='{$this-&gt;board_id}'";
		$where[] = "`date`&lt;'{$this-&gt;date}'";
		
		// 휴지통에 없는 게시글만 불러온다.
		$where[] = "(`status`='' OR `status` IS NULL OR `status`='pending_approval')";
		
		if($category1){
			$category1 = esc_sql($category1);
			$where[] = "`category1`='{$category1}'";
		}
		if($category2){
			$category2 = esc_sql($category2);
			$where[] = "`category2`='{$category2}'";
		}
		
		$where = implode(' AND ', $where);
		$uid = $wpdb-&gt;get_var("SELECT `uid` FROM `{$wpdb-&gt;prefix}kboard_board_content` WHERE {$where} ORDER BY `date` DESC LIMIT 1");
		$wpdb-&gt;flush();
		
		return intval($uid);
	}
	return 0;
}</code></pre>

<p>고맙습니다.</p>]]></description>
			<author>스레드봇</author>
			<pubDate>Thu, 30 May 2019 06:09:53 +0000</pubDate>
			<category>KBoard</category>
		</item>
			</channel>
</rss>