<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
	<channel>
				<title><![CDATA[오션 별점 스킨 document.php 파일 한번 확인해 봐 주실수 있으실까요?]]></title>
		<link>https://www.cosmosfarm.com/threads/rss/document/19893</link>
		<description><![CDATA[<p>&lt;div id="kboard-ocean-rating-document"&gt;<br />
    &lt;div class="kboard-header"&gt;&lt;/div&gt;<br />
    <br />
    &lt;div class="kboard-document-wrap" itemscope itemtype="http://schema.org/Article"&gt;<br />
        &lt;div class="kboard-title" itemprop="name"&gt;<br />
            &lt;p&gt;&lt;?php echo $content-&gt;title?&gt; &lt;span class="kboard-rating value-&lt;?php echo $content-&gt;option-&gt;rating?&gt;" title="&lt;?php echo $content-&gt;option-&gt;rating?&gt;"&gt;&lt;/span&gt;&lt;/p&gt;<br />
        &lt;/div&gt;<br />
        <br />
        &lt;div class="kboard-detail"&gt;<br />
            &lt;?php if($content-&gt;category1):?&gt;<br />
            &lt;div class="detail-attr detail-category1"&gt;<br />
                &lt;div class="detail-name"&gt;&lt;?php echo $content-&gt;category1?&gt;&lt;/div&gt;<br />
            &lt;/div&gt;<br />
            &lt;?php endif?&gt;<br />
            &lt;?php if($content-&gt;category2):?&gt;<br />
            &lt;div class="detail-attr detail-category2"&gt;<br />
                &lt;div class="detail-name"&gt;&lt;?php echo $content-&gt;category2?&gt;&lt;/div&gt;<br />
            &lt;/div&gt;<br />
            <br />
        &lt;div id="kboard-franchise-map-canvas" class="kboard-map"&gt;&lt;/div&gt;<br />
        <br />
        &lt;div class="kboard-franchise-info"&gt;<br />
            &lt;table&gt;<br />
                &lt;tr&gt;<br />
                    &lt;?php if($content-&gt;thumbnail_file):?&gt;<br />
                    &lt;td class="kboard-franchise-thumbnail" rowspan="5"&gt;<br />
                        &lt;img src="&lt;?php echo get_site_url() . $content-&gt;thumbnail_file?&gt;" alt="" style="width:200px;height:150px;"&gt;<br />
                    &lt;/td&gt;<br />
                    &lt;?php endif?&gt;<br />
                    &lt;td class="kboard-franchise-attr"&gt;&lt;?php echo __('Area', 'kboard-ocean-franchise')?&gt; :&lt;/td&gt;<br />
                    &lt;td class="kboard-franchise-value"&gt;&lt;?php echo kboard_ocean_franchise_branch_display($content-&gt;category1)?&gt;&lt;/td&gt;<br />
                &lt;/tr&gt;<br />
                &lt;tr&gt;<br />
                    &lt;td class="kboard-franchise-attr"&gt;&lt;?php echo __('Branch', 'kboard-ocean-franchise')?&gt; :&lt;/td&gt;<br />
                    &lt;td class="kboard-franchise-value" itemprop="name"&gt;&lt;?php echo $content-&gt;member_display?&gt;&lt;/td&gt;<br />
                &lt;/tr&gt;<br />
                &lt;tr&gt;<br />
                    &lt;td class="kboard-franchise-attr"&gt;&lt;?php echo __('Address', 'kboard-ocean-franchise')?&gt; :&lt;/td&gt;<br />
                    &lt;td class="kboard-franchise-value"&gt;&lt;?php echo $content-&gt;title?&gt;&lt;/td&gt;<br />
                &lt;/tr&gt;<br />
                &lt;tr&gt;<br />
                    &lt;td class="kboard-franchise-attr"&gt;&lt;?php echo __('Contact', 'kboard-ocean-franchise')?&gt; :&lt;/td&gt;<br />
                    &lt;td class="kboard-franchise-value"&gt;&lt;?php echo $content-&gt;option-&gt;tel?$content-&gt;option-&gt;tel:__('None', 'kboard-ocean-franchise')?&gt;&lt;/td&gt;<br />
                &lt;/tr&gt;<br />
                &lt;tr&gt;<br />
                    &lt;td class="kboard-franchise-attr"&gt;&lt;?php echo __('Homepage', 'kboard-ocean-franchise')?&gt; :&lt;/td&gt;<br />
                    &lt;td class="kboard-franchise-value"&gt;&lt;?php if($content-&gt;option-&gt;homepage): $kboard_homepage = str_replace(array('http://', 'https://'), '', $content-&gt;option-&gt;homepage);?&gt;&lt;a href="http://&lt;?php echo $kboard_homepage?&gt;" onclick="window.open(this.href); return false;"&gt;http://&lt;?php echo $kboard_homepage?&gt;&lt;/a&gt;&lt;?php else:?&gt;&lt;?php echo __('None', 'kboard-ocean-franchise')?&gt;&lt;?php endif?&gt;&lt;/td&gt;<br />
                &lt;/tr&gt;<br />
            &lt;/table&gt;<br />
        &lt;/div&gt;<br />
                    &lt;?php endif?&gt;<br />
        <br />
            &lt;div class="detail-attr detail-writer"&gt;<br />
                &lt;div class="detail-name"&gt;&lt;?php echo __('Author', 'kboard')?&gt;&lt;/div&gt;<br />
                &lt;div class="detail-value"&gt;&lt;?php echo $content-&gt;member_display?&gt;&lt;/div&gt;<br />
            &lt;/div&gt;<br />
            &lt;div class="detail-attr detail-date"&gt;<br />
                &lt;div class="detail-name"&gt;&lt;?php echo __('Date', 'kboard')?&gt;&lt;/div&gt;<br />
                &lt;div class="detail-value"&gt;&lt;?php echo date("Y-m-d H:i", strtotime($content-&gt;date))?&gt;&lt;/div&gt;<br />
            &lt;/div&gt;<br />
            &lt;div class="detail-attr detail-view"&gt;<br />
                &lt;div class="detail-name"&gt;&lt;?php echo __('Views', 'kboard')?&gt;&lt;/div&gt;<br />
                &lt;div class="detail-value"&gt;&lt;?php echo $content-&gt;view?&gt;&lt;/div&gt;<br />
            &lt;/div&gt;<br />
        &lt;/div&gt;<br />
        <br />
        &lt;div class="kboard-content" itemprop="description"&gt;<br />
            &lt;div class="content-view"&gt;<br />
                &lt;?php foreach($content-&gt;attach as $key=&gt;$attach): $extension = strtolower(pathinfo($attach[0], PATHINFO_EXTENSION));?&gt;<br />
                    &lt;?php if(in_array($extension, array('gif','jpg','jpeg','png'))):?&gt;<br />
                        &lt;p class="thumbnail-area"&gt;&lt;img src="&lt;?php echo site_url($attach[0])?&gt;" alt="&lt;?php echo $attach[1]?&gt;"&gt;&lt;/p&gt;<br />
                    &lt;?php else: $download[$key] = $attach; endif?&gt;<br />
                &lt;?php endforeach?&gt;<br />
                <br />
                &lt;?php echo $content-&gt;content?&gt;<br />
                <br />
                &lt;div class="like-area"&gt;<br />
                    &lt;a href="#" onclick="return kboard_ocean_rating_like('&lt;?php echo $content-&gt;uid?&gt;')"; class="kboard-item-like"&gt;<br />
                        &lt;div class="kboard-item-padding"&gt;추천 : &lt;span class="kboard-count-bold"&gt;&lt;?php echo $content-&gt;like?&gt;&lt;/span&gt;&lt;/div&gt;<br />
                    &lt;/a&gt;<br />
                &lt;/div&gt;<br />
            &lt;/div&gt;<br />
        &lt;/div&gt;<br />
        <br />
        &lt;?php if(isset($download) &amp;&amp; $download): foreach($download as $key=&gt;$value):?&gt;<br />
        &lt;div class="kboard-attach"&gt;<br />
            &lt;?php echo __('Attachment', 'kboard')?&gt; : &lt;a href="&lt;?php echo $url-&gt;getDownloadURLWithAttach($content-&gt;uid, $key)?&gt;"&gt;&lt;?php echo $content-&gt;attach-&gt;{$key}[1]?&gt;&lt;/a&gt;<br />
        &lt;/div&gt;<br />
        &lt;?php endforeach; endif;?&gt;<br />
    &lt;/div&gt;<br />
    <br />
    &lt;?php if($board-&gt;isComment()):?&gt;<br />
    &lt;div class="kboard-comments-area"&gt;&lt;?php echo $board-&gt;buildComment($content-&gt;uid)?&gt;&lt;/div&gt;<br />
    &lt;?php endif?&gt;<br />
    <br />
    &lt;div class="kboard-control"&gt;<br />
        &lt;div class="left"&gt;<br />
            &lt;a href="&lt;?php echo $url-&gt;toString()?&gt;" class="kboard-ocean-rating-button-small"&gt;&lt;?php echo __('List', 'kboard')?&gt;&lt;/a&gt;<br />
            &lt;a href="&lt;?php echo $url-&gt;getDocumentURLWithUID($content-&gt;getPrevUID())?&gt;" class="kboard-ocean-rating-button-small"&gt;&lt;?php echo __('Prev', 'kboard')?&gt;&lt;/a&gt;<br />
            &lt;a href="&lt;?php echo $url-&gt;getDocumentURLWithUID($content-&gt;getNextUID())?&gt;" class="kboard-ocean-rating-button-small"&gt;&lt;?php echo __('Next', 'kboard')?&gt;&lt;/a&gt;<br />
        &lt;/div&gt;<br />
        &lt;?php if($board-&gt;isEditor($content-&gt;member_uid) || $board-&gt;permission_write=='all'):?&gt;<br />
        &lt;div class="right"&gt;<br />
            &lt;a href="&lt;?php echo $url-&gt;set('uid', $content-&gt;uid)-&gt;set('mod', 'editor')-&gt;toString()?&gt;" class="kboard-ocean-rating-button-small"&gt;&lt;?php echo __('Edit', 'kboard')?&gt;&lt;/a&gt;<br />
            &lt;a href="&lt;?php echo $url-&gt;set('uid', $content-&gt;uid)-&gt;set('mod', 'remove')-&gt;toString()?&gt;" class="kboard-ocean-rating-button-small" onclick="return confirm('&lt;?php echo __('Are you sure you want to delete?', 'kboard')?&gt;');"&gt;&lt;?php echo __('Delete', 'kboard')?&gt;&lt;/a&gt;<br />
        &lt;/div&gt;<br />
        &lt;?php endif?&gt;<br />
    &lt;/div&gt;<br />
    <br />
    &lt;div class="kboard-ocean-rating-poweredby"&gt;<br />
        &lt;a href="http://www.cosmosfarm.com/products/kboard" onclick="window.open(this.href);return false;" title="&lt;?php echo __('KBoard is the best community software available for WordPress', 'kboard')?&gt;"&gt;Powered by KBoard&lt;/a&gt;<br />
    &lt;/div&gt;<br />
&lt;/div&gt;</p>

<p>&lt;script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=false"&gt;&lt;/script&gt;<br />
&lt;script&gt;<br />
jQuery(document).ready(function(){<br />
    var name = '&lt;?php echo $content-&gt;member_display?&gt;';<br />
    var address = '&lt;?php echo $content-&gt;option-&gt;map_address?&gt;';<br />
    &lt;?php if($content-&gt;option-&gt;map_location):?&gt;<br />
    var location = new google.maps.LatLng(&lt;?php echo $content-&gt;option-&gt;map_location?&gt;);<br />
    &lt;?php else:?&gt;<br />
    var location = '';<br />
    &lt;?php endif?&gt;<br />
    if(address || location) kboard_franchise_map_initialize(name, address, location);<br />
});<br />
&lt;/script&gt;<br />
&lt;script&gt;<br />
function kboard_ocean_rating_like(document_uid){<br />
    jQuery.post('&lt;?php echo admin_url('/admin-ajax.php')?&gt;', {'action':'kboard_ocean_rating_like', 'document_uid':document_uid}, function(res){<br />
        if(res){<br />
            alert('추천 했습니다.');<br />
            jQuery('.kboard-count-bold').text(res);<br />
        }<br />
        else{<br />
            alert('이미 추천 하셨습니다.');<br />
        }<br />
    });<br />
    return false;<br />
}<br />
&lt;/script&gt;</p>
]]></description>
		<copyright>Copyright 2026, 코스모스팜</copyright>
				<item>
			<title><![CDATA[운영자님^^ 답변 많이 감사합니다^^

알려주신 방법 참고해서 제가 다시 해볼께요^^

감사해요^^

 

잼...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/19903</link>
			<description><![CDATA[<p>운영자님^^ 답변 많이 감사합니다^^</p>

<p>알려주신 방법 참고해서 제가 다시 해볼께요^^</p>

<p>감사해요^^</p>

<p> </p>

<p>잼넷^^</p>
]]></description>
			<author>jamnet</author>
			<pubDate>Tue, 13 Feb 2018 04:39:05 +0000</pubDate>
			<category>KBoard</category>
		</item>
				<item>
			<title><![CDATA[안녕하세요~^^

말씀하신 업체 정보는 오션 프랜차이즈 스킨에서 지점명으로 표시하고 있는 부분인지요?...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/19900</link>
			<description><![CDATA[<p>안녕하세요~^^</p>

<p>말씀하신 업체 정보는 오션 프랜차이즈 스킨에서 지점명으로 표시하고 있는 부분인지요?</p>

<p>FTP로 접속해서 /wp-content/plugins/kboard/skin/ocean-rating/editor.php 파일도</p>

<p>오션 프랜차이즈 스킨처럼 수정해주셔야 합니다.</p>

<p>대부분의 다른 스킨에서 아래의 코드는 작성자로 표시합니다.</p>

<pre>
<code class="language-html">&lt;input type="text" name="member_display" value="&lt;?php echo $content-&gt;member_display?&gt;"&gt;</code></pre>

<p>오션 프랜차이즈 스킨은 위의 코드가 지점명이 되기 때문에</p>

<p>오션 프랜차이즈 스킨을 참고하셔서 수정해주셔야 할 듯합니다.</p>

<p> </p>

<p>document.js 파일을 오션 별점 스킨의 document.php에 직접 추가하시려면</p>

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

<pre>
<code class="language-javascript">&lt;script&gt;
function kboard_ocean_rating_like(document_uid){
	jQuery.post('&lt;?php echo admin_url('/admin-ajax.php')?&gt;', {'action':'kboard_ocean_rating_like', 'document_uid':document_uid}, function(res){
		if(res){
			alert('추천 했습니다.');
			jQuery('.kboard-count-bold').text(res);
		}
		else{
			alert('이미 추천 하셨습니다.');
		}
	});
	return false;
}
&lt;/script&gt;</code></pre>

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

<pre>
<code class="language-javascript">&lt;script&gt;
function kboard_ocean_rating_like(document_uid){
	jQuery.post('&lt;?php echo admin_url('/admin-ajax.php')?&gt;', {'action':'kboard_ocean_rating_like', 'document_uid':document_uid}, function(res){
		if(res){
			alert('추천 했습니다.');
			jQuery('.kboard-count-bold').text(res);
		}
		else{
			alert('이미 추천 하셨습니다.');
		}
	});
	return false;
}

function kboard_franchise_map_initialize(name, address, location){
	var geocoder = new google.maps.Geocoder();
	var lat='';
	var lng='';
	var option = {};
	
	if(address){
		option = {'address':address};
	}
	else if(location){
		option = {'location':location};
	}
	
	geocoder.geocode(option,
		function(results, status){
			if(results){
				jQuery('#kboard-franchise-map-canvas').addClass('active');
				var location=results[0].geometry.location;
				lat=location.lat();
				lng=location.lng();
				var latlng = new google.maps.LatLng(lat, lng);
				var options = {
					zoom: 16,
					center: latlng,
					mapTypeControl: true,
					mapTypeId: google.maps.MapTypeId.ROADMAP
				};
				var map = new google.maps.Map(document.getElementById('kboard-franchise-map-canvas'), options);
				var marker = new google.maps.Marker({ 
					   position: latlng, 
					   map: map,
					   title: name
				});
			}
			else jQuery('#kboard-franchise-map-canvas').html('');
		}
	)
}
&lt;/script&gt;</code></pre>

<p> </p>

<p>스크립트 오류가 해결되지 않으신다면</p>

<p>다른 테마로도 테스트해보시고 다른 플러그인과 충돌은 없는지 확인해보셔야 할 듯합니다.</p>

<p>고맙습니다.</p>
]]></description>
			<author>스레드봇</author>
			<pubDate>Tue, 13 Feb 2018 00:32:57 +0000</pubDate>
			<category>KBoard</category>
		</item>
				<item>
			<title><![CDATA[운영자님^^ 답변 매우 감사합니다^^

으아아악~~ 욕시 쉽지가 않네요^^ 우선^^

 

(1) 조언 주셨던 부...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/19898</link>
			<description><![CDATA[<p>운영자님^^ 답변 매우 감사합니다^^</p>

<p>으아아악~~ 욕시 쉽지가 않네요^^ 우선^^</p>

<p> </p>

<p>(1) 조언 주셨던 부분중, "&lt;?php wp_enqueue_script('kboard-ocean-rating-document', "{$skin_path}/document.js", array(), KBOARD_VERSION, true)?&gt;" 을 삽입하였고, 페이지 틀어짐이나 깨짐현상은 발생하지 않습니다.</p>

<p>(2) <a href="http://www.cosmosfarm.com/threads/document/9684" target="_blank">구글 API 셋팅</a> 은 마무리 하였으며 링크를 타고가 알려주신 부분도 수정을 하였습니다.</p>

<p>(3) document.js 파일을 오션 별점 스킨 폴더에 추가도 해 보았고,, document.js 파일을 통째로 오션 별점 스킨의 document.php에 붙혀넣기도 해 보았으나 에러가 나요ㅠㅠ</p>

<p> </p>

<p>제가 계속... php 파일을 보여드리는 건 쫌 너무 예의가 아닌것 같고,, 구래도 조언이라도 쫌 구할수 있을까요?</p>

<p>당장에 모든걸 다 공부할 순 없지만, 팀이라던지, 조언을 쫌 주시면 계속해서 수정을 해보고 또 여쭤보고 그래서 어떻게 해서든 수정을 하고 싶은데요...</p>

<p> </p>

<p>(4) 구글맵도 맵이지만, 업체 정보 출력이 안되는 이유도 구글맵이 출력이 되면 업체 정보 부분도 출력이 되는 것인지요?</p>

<p> </p>

<p>제가,, 혹시 document.js 파일을 오션 별점 스킨의 document.php에 붙혀넣기 해야한다면,, 위치는 상관이 없을까요? 맨 위에 붙혀넣기도 해 보았고, "        &lt;div id="kboard-franchise-map-canvas" class="kboard-map"&gt;&lt;/div&gt;" 이 부분 전/후에도 붙혀넣기 해 보았으나 증상은 동일하며 구글맵과 업체정보란은 나타나지 않아서요^^</p>

<p> </p>

<p>바쁘시고 피곤하실텐데.... 다시금 조언 좀 부탁드려 봅니다...^^</p>

<p>감사해요^^</p>

<p> </p>

<p>잼넷.</p>
]]></description>
			<author>jamnet</author>
			<pubDate>Mon, 12 Feb 2018 13:56:11 +0000</pubDate>
			<category>KBoard</category>
		</item>
				<item>
			<title><![CDATA[안녕하세요~^^

http://www.cosmosfarm.com/threads/document/19885 이전 질문에 이어서 답변을 드리겠...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/19897</link>
			<description><![CDATA[<p>안녕하세요~^^</p>

<p><a href="http://www.cosmosfarm.com/threads/document/19885" target="_blank">http://www.cosmosfarm.com/threads/document/19885</a> 이전 질문에 이어서 답변을 드리겠습니다.</p>

<p>오션 별점 스킨의 document.php 파일 하단에 아래의 코드를 추가해보시겠어요?</p>

<pre>
<code class="language-php">&lt;?php wp_enqueue_script('kboard-ocean-rating-document', "{$skin_path}/document.js", array(), KBOARD_VERSION, true)?&gt;</code></pre>

<p>물론 먼저 오션 프랜차이즈 스킨에서 document.js 파일을 오션 별점 스킨으로 복사해보셔야 합니다.</p>

<p>그리고 <a href="http://www.cosmosfarm.com/threads/document/9684" target="_blank">구글 API 셋팅 방법 확인</a> &lt;- 이것도 확인해서 API 키를 세팅해주세요.</p>

<p>고맙습니다.</p>
]]></description>
			<author>스레드봇</author>
			<pubDate>Mon, 12 Feb 2018 12:42:11 +0000</pubDate>
			<category>KBoard</category>
		</item>
			</channel>
</rss>