<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
	<channel>
				<title><![CDATA[작성자 게시글 리스트와 작성자 댓글 보기 질문]]></title>
		<link>https://www.cosmosfarm.com/threads/rss/document/42436</link>
		<description><![CDATA[<p>항상 고생하시는 제작자님 늘 감사드립니다.</p>

<p> </p>

<p>KBoard 위젯을 활용하여 KBoard 게시글 본문 페이지에서 해당 작성자가 작성한 게시글과 댓글을 표시하고 싶습니다..!</p>

<pre>
<code>add_filter('kboard_widget_tab_list', 'my_kboard_widget_tab_list', 10, 1);
function my_kboard_widget_tab_list($tab_list){
	$tab_list[] = '글쓴이 게시글';
  $tab_list[] = '글쓴이 댓글';

	return $tab_list;
}

add_filter('kboard_widget_list_where', 'my_kboard_widget_list_where', 10, 5);
function my_kboard_widget_list_where($where, $value, $limit, $exclude, $with_notice){
	global $wpdb;

	$content_uid = kboard_uid();

	if($value == '글쓴이 게시글'){
		if($content_uid){

			$content = new KBContent();
			$content-&gt;initWithUID($content_uid);
			$where .= " AND `member_uid`='{$content-&gt;member_uid}'";
		}
		else{
			$where = '0';
		}
	}

  $comment_uid = kboard_uid();

	if($value == '글쓴이 댓글'){
		if($comment_uid){

			$comment = new KBComment();
			$comment-&gt;initWithUID($comment_uid);
			$where .= " AND `member_uid`='{$content-&gt;member_uid}'";
		}
		else{
			$where = '0';
		}
	}

	return $where;
}</code></pre>

<p> </p>

<p>올려주신 코드를 참조하여 탭 두 개를 추가하고 리스트를 추출하는 데</p>

<p>올려주신 게시글 코드는 동작을 하는데 보고</p>

<p>따라해본 댓글 추출이 안되더라구요..</p>

<p> </p>

<pre>
<code>			$comment = new KBComment();
			$comment-&gt;initWithUID($comment_uid);
			$where .= " AND `member_uid`='{$content-&gt;member_uid}'"; //</code></pre>

<p> </p>

<p>나름 추가해본 이 부분이 뭔가 잘못된 거 같은데 어떻게 고쳐야 할까요..ㅜㅜ</p>]]></description>
		<copyright>Copyright 2026, 코스모스팜</copyright>
				<item>
			<title><![CDATA[한 번 해보겠습니다. !! 감사합니다~!]]></title>
			<link>https://www.cosmosfarm.com/threads/document/42441</link>
			<description><![CDATA[<p>한 번 해보겠습니다. !! 감사합니다~!</p>]]></description>
			<author>Mo1o</author>
			<pubDate>Tue, 07 Apr 2020 13:52:24 +0000</pubDate>
			<category>KBoard</category>
		</item>
				<item>
			<title><![CDATA[안녕하세요~^^

KBoard 위젯 플러그인에서 별도로 댓글 관련 탭을 추가하셨다면

게시글과 댓글은 테이...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/42438</link>
			<description><![CDATA[<p>안녕하세요~^^</p>

<p>KBoard 위젯 플러그인에서 별도로 댓글 관련 탭을 추가하셨다면</p>

<p>게시글과 댓글은 테이블 구조가 다르기 때문에</p>

<p>kboard_widget_list_select, kboard_widget_list_from, kboard_widget_list_where를 모두 활용해주셔야 합니다.</p>

<p> </p>

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

<p>getListResults 메소드에서 각 탭별로 게시글이나 댓글을 불러오고 있습니다.</p>

<p>해당 메소드를 참고하셔서 댓글 테이블에 맞게 코드를 작성해보시겠어요?</p>

<p>게시글은 kboard_board_content 테이블에 저장하고 있으며</p>

<p>댓글은 kboard_comments 테이블에 저장하고 있습니다.</p>

<p>고맙습니다.</p>]]></description>
			<author>스레드봇</author>
			<pubDate>Tue, 07 Apr 2020 08:58:15 +0000</pubDate>
			<category>KBoard</category>
		</item>
			</channel>
</rss>