<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
	<channel>
				<title><![CDATA[특정 페이지와 게시판에서 권한이하의 사용자가 로그인시]]></title>
		<link>https://www.cosmosfarm.com/threads/rss/document/15237</link>
		<description><![CDATA[<p>수고 많으십니다.</p>

<p>코스모스팜 기업용 라이센스 구입하여 설치하였습니다.</p>

<p><a href="http://www.cosmosfarm.com/wpstore/product/cosmosfarm-members" target="_blank">코스모스팜 회원관리</a> 플러그인과 KBoard(케이보드) 게시판 사용중입니다.</p>

<p> </p>

<p>1. 특정 페이지에서 권한이하의 방문객이 로그인시 "You do not have permission to view this page." 가 보입니다. 이것을 </p>

<p>       "You do not have permition to view this page. If you would like to download it, Please send it to vrsupport@innosim.com" 으로 하려면 어떻게 해야 하나요?</p>

<p>       -&gt;  http://vr.innosim.com/download</p>

<p>2.  특정 게시판에서 권한이하의 방문객이 로그인후 게시판 방문시 하단의 "NEW(글쓰기)" 버튼이 안보이게, 운영진만 보이게 - 운영진이 글을 쓰는 공간 이므로</p>

<p>       -&gt;   http://vr.innosim.com/notice</p>

<p>       -&gt;   http://vr.innosim.com/faq</p>
]]></description>
		<copyright>Copyright 2026, 코스모스팜</copyright>
				<item>
			<title><![CDATA[안녕하세요~^^

1번, 페이지 제한 메시지를 변경하시려면 아래 코드를 테마의 functions.php 파일에 추...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/15247</link>
			<description><![CDATA[<p>안녕하세요~^^</p>

<p>1번, 페이지 제한 메시지를 변경하시려면 아래 코드를 테마의 functions.php 파일에 추가해주세요.</p>

<p>코드에서 메시지는 원하시는 것으로 꼭 변경해주세요~</p>

<pre>
<code class="language-php">add_filter('the_content', 'my_page_restriction', 99, 1);
function my_page_restriction($content){
	global $post;
	
	if(is_single() || is_page()){
		$option = get_cosmosfarm_members_option();
		
		$page_restriction = get_post_meta($post-&gt;ID, 'cosmosfarm_members_page_restriction', true);
		if($page_restriction){
			if(is_user_logged_in()){
				$current_user = wp_get_current_user();
				$restriction_roles = get_post_meta($post-&gt;ID, 'cosmosfarm_members_page_restriction_roles', true);
				
				$this_restriction = true;
				foreach($current_user-&gt;roles as $role){
					if(in_array($role, $restriction_roles)){
						$this_restriction = false;
						break;
					}
				}
				
				if($this_restriction){
					$content = wpmem_inc_regmessage('page_restriction', '&lt;p&gt;새로운 메시지를 입력해주세요.&lt;/p&gt;');
				}
			}
		}
	}
	
	return $content;
}</code></pre>

<p>워드프레스 관리자 -&gt; 외모 -&gt; 테마 편집기 페이지에서 코드를 추가할 수 있습니다. (FTP 등으로도 가능합니다.)</p>

<p> </p>

<p>2번, 게시판 권한설정에서 쓰기권한이 어떻게 되어있는지요?</p>

<p>쓰기권한이 없는 사용자는 글쓰기(NEW) 버튼이 보이지 않습니다.</p>

<p>워드프레스 관리자 -&gt; KBoard -&gt; 게시판 목록 -&gt; 게시판 선택 -&gt; 권한설정 페이지에서 확인해주세요.</p>

<p><strong>쓰기권한</strong>을 직접선택으로 변경한 다음 관리자를 선택해주세요.</p>

<p>고맙습니다.</p>
]]></description>
			<author>스레드봇</author>
			<pubDate>Sun, 13 Aug 2017 12:55:20 +0000</pubDate>
			<category>KBoard</category>
		</item>
			</channel>
</rss>