<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
	<channel>
				<title><![CDATA[승인대기 상태에서 첨부파일 노출 문제]]></title>
		<link>https://www.cosmosfarm.com/threads/rss/document/42703</link>
		<description><![CDATA[<p>안녕하세요, 항상 감사한 마음으로 KBOARD를 이용하고 있습니다. :)</p>

<p>한가지 문의드릴 게 있습니다만,<br />
사용자가 글을 작성 시 승인대기중 상태로 되게 사용하고 있습니다.</p>

<p>이 상태에서 글 내용은 잘 숨겨지지만<br />
[첨부파일의 다운로드 버튼은 노출]되고 있습니다.</p>

<p>승인 대기 상태에서 첨부파일도 숨겨질 수 있을까요?</p>]]></description>
		<copyright>Copyright 2026, 코스모스팜</copyright>
				<item>
			<title><![CDATA[덕분에 잘 해결되었습니다.

빠른 답변 정말 감사드립니다!! :)]]></title>
			<link>https://www.cosmosfarm.com/threads/document/42737</link>
			<description><![CDATA[<p>덕분에 잘 해결되었습니다.</p>

<p>빠른 답변 정말 감사드립니다!! :)</p>]]></description>
			<author>글빈</author>
			<pubDate>Mon, 20 Apr 2020 06:35:24 +0000</pubDate>
			<category>KBoard</category>
		</item>
				<item>
			<title><![CDATA[안녕하세요~^^

KBoard 플러그인에서 발행된 게시글만

첨부파일을 표시하고 다운로드할 수 있게 하시려...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/42726</link>
			<description><![CDATA[<p>안녕하세요~^^</p>

<p>KBoard 플러그인에서 발행된 게시글만</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">public function isAttached(){
	$is_attached = false;
	if($this-&gt;uid){
		if(count((array)$this-&gt;getAttachmentList()) &gt; 0){
			$is_attached = true;
		}
	}
	return apply_filters('kboard_content_is_attached', $is_attached, $this, $this-&gt;getBoard());
}</code></pre>

<p>아래의 코드로 교체해보세요.</p>

<pre>
<code class="language-php">public function isAttached(){
	$is_attached = false;
	if($this-&gt;uid &amp;&amp; !$this-&gt;status){
		if(count((array)$this-&gt;getAttachmentList()) &gt; 0){
			$is_attached = true;
		}
	}
	return apply_filters('kboard_content_is_attached', $is_attached, $this, $this-&gt;getBoard());
}</code></pre>

<p> </p>

<p>/wp-content/plugins/kboard/class/KBController.class.php파일에</p>

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

<pre>
<code class="language-php">if(!$content-&gt;uid){</code></pre>

<p>아래의 코드로 교체해보세요.</p>

<pre>
<code class="language-php">if(!$content-&gt;uid || $content-&gt;status){</code></pre>

<p> </p>

<p>위의 코드는 다음 업데이트에 반영하도록 하겠습니다.</p>

<p>아래 링크에서 해당 코드 수정 내역을 확인해보실 수 있습니다.</p>

<p><a href="https://github.com/cosmosfarm/KBoard-wordpress-plugin/commit/36b82e05972d9cfda60eb3ea9cd8250fefca0322" target="_blank">https://github.com/cosmosfarm/KBoard-wordpress-plugin/commit/36b82e05972d9cfda60eb3ea9cd8250fefca0322</a></p>

<p>고맙습니다.</p>]]></description>
			<author>스레드봇</author>
			<pubDate>Mon, 20 Apr 2020 02:24:06 +0000</pubDate>
			<category>KBoard</category>
		</item>
			</channel>
</rss>