<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[TNF : Tatter Network Foundation forum - 플러그인에서 치환자 사용할수 없나요?]]></title>
	<link rel="self" href="http://forum.tattersite.com/ko/extern.php?action=feed&amp;tid=7658&amp;type=atom"/>
	<updated>2009-01-23T15:26:20Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.tattersite.com/ko/viewtopic.php?id=7658</id>
		<entry>
			<title type="html"><![CDATA[RSS 답글: 플러그인에서 치환자 사용할수 없나요?]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=33430#p33430"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>anaki 작성:</cite><blockquote><p>조금씩이라도 자바를 공부해야겠네요 감사합니다^^</p></blockquote></div><p>자바스크립트(Javascript)와 자바(Java)는 상당히 다른 프로그래밍언어입니다. 참고하세요~ ^^;;</p>]]></content>
			<author>
				<name><![CDATA[daybreaker]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=11</uri>
			</author>
			<updated>2009-01-23T15:26:20Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=33430#p33430</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RSS 답글: 플러그인에서 치환자 사용할수 없나요?]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=33427#p33427"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>daybreaker 작성:</cite><blockquote><div class="quotebox"><cite>anaki 작성:</cite><blockquote><p>자답하게 되네요.<br />결국 자바스크립트로 해결을 했습니다.<br />이런 문제를 스크립트로 할 수 있는지 알지 못해서 플러그인을 만들 생각까지 하게 되었네요.</p><p>제가 하려던 것은 skin.html에서 body_id에 따라서 다른 내용을 출력하는 것이었구요.<br />직접 skin.html안에다가</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &lt;script type=&quot;text/javascript&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ( &quot;[##_body_id_##]&quot; == &quot;songs&quot;){<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.write(&quot;this is songs&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.write(&quot;this is not songs&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;/script&gt;</p><p>이런 식으로 해서 원하는 결과를 얻었습니다.</p></blockquote></div><p>음, 조금 더 나은 방법은 document.body.getAttribute(&#039;id&#039;) == &quot;songs&quot; 표현식을 쓰는 것입니다. 어쨌든 해결하셨다니 다행이지만, 앞으로 스킨 규격 변화에 따라 [##_body_id_##]라는 치환자가 사라질 가능성도 있기 때문입니다.</p></blockquote></div><p>아 그런방법이 있었군요 ^^<br />감사합니다.<br />적용해서 해결했구요.<br />저걸 알았으면 썼을텐데, 못찾겠더라구요.<br />조금씩이라도 자바를 공부해야겠네요 감사합니다^^</p>]]></content>
			<author>
				<name><![CDATA[anaki]]></name>
			</author>
			<updated>2009-01-23T14:01:45Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=33427#p33427</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RSS 답글: 플러그인에서 치환자 사용할수 없나요?]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=33407#p33407"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>anaki 작성:</cite><blockquote><p>자답하게 되네요.<br />결국 자바스크립트로 해결을 했습니다.<br />이런 문제를 스크립트로 할 수 있는지 알지 못해서 플러그인을 만들 생각까지 하게 되었네요.</p><p>제가 하려던 것은 skin.html에서 body_id에 따라서 다른 내용을 출력하는 것이었구요.<br />직접 skin.html안에다가</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &lt;script type=&quot;text/javascript&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ( &quot;[##_body_id_##]&quot; == &quot;songs&quot;){<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.write(&quot;this is songs&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.write(&quot;this is not songs&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;/script&gt;</p><p>이런 식으로 해서 원하는 결과를 얻었습니다.</p></blockquote></div><p>음, 조금 더 나은 방법은 document.body.getAttribute(&#039;id&#039;) == &quot;songs&quot; 표현식을 쓰는 것입니다. 어쨌든 해결하셨다니 다행이지만, 앞으로 스킨 규격 변화에 따라 [##_body_id_##]라는 치환자가 사라질 가능성도 있기 때문입니다.</p>]]></content>
			<author>
				<name><![CDATA[daybreaker]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=11</uri>
			</author>
			<updated>2009-01-22T09:08:04Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=33407#p33407</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RSS 답글: 플러그인에서 치환자 사용할수 없나요?]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=33406#p33406"/>
			<content type="html"><![CDATA[<p>자답하게 되네요.<br />결국 자바스크립트로 해결을 했습니다.<br />이런 문제를 스크립트로 할 수 있는지 알지 못해서 플러그인을 만들 생각까지 하게 되었네요.</p><p>제가 하려던 것은 skin.html에서 body_id에 따라서 다른 내용을 출력하는 것이었구요.<br />직접 skin.html안에다가</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &lt;script type=&quot;text/javascript&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ( &quot;[##_body_id_##]&quot; == &quot;songs&quot;){<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.write(&quot;this is songs&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.write(&quot;this is not songs&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;/script&gt;</p><p>이런 식으로 해서 원하는 결과를 얻었습니다.</p>]]></content>
			<author>
				<name><![CDATA[anaki]]></name>
			</author>
			<updated>2009-01-22T06:47:31Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=33406#p33406</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RSS 답글: 플러그인에서 치환자 사용할수 없나요?]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=33400#p33400"/>
			<content type="html"><![CDATA[<p>한 가지 우회적인 방법은 javascript를 사용해서 body id를 읽어 동작을 달리하는 것인데, 만약 반드시 서버측에서 처리해야 하는 일이라면 해결하기 어렵습니다.</p><p>스킨에 출력되는 body id는 library/piece/blog/begin.php에서 일정 조건에 따라 바로 스킨에 삽입될 뿐 전역변수로 따로 등록되지 않습니다.</p>]]></content>
			<author>
				<name><![CDATA[daybreaker]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=11</uri>
			</author>
			<updated>2009-01-22T04:36:49Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=33400#p33400</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RSS 답글: 플러그인에서 치환자 사용할수 없나요?]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=33388#p33388"/>
			<content type="html"><![CDATA[<p>해보니까 1회뿐이 아니고 여러번 호출이 가능하더라구요.<br />단 skin.html에서 사용할때만 제대로 출력이 되고<br />플러그인안에서 호출하게 되면 아예 빈 값으로 나오는것 같습니다.</p><p>그래서 제가 궁금한게, 과연 스킨에서 사용하는 치환자를 플러그인안에서 호출할 수 있는지.<br />혹시 없다면, 플러그인안에서 php를 이용해서<br />현재 문서의 body의 id를 호출할수 있는지 여부입니다.</p>]]></content>
			<author>
				<name><![CDATA[anaki]]></name>
			</author>
			<updated>2009-01-22T01:57:40Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=33388#p33388</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RSS 답글: 플러그인에서 치환자 사용할수 없나요?]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=33386#p33386"/>
			<content type="html"><![CDATA[<p>치환자는 한번만 사용할 수 있는 치환자와 다수 허용 치환자로 나뉘는 것으로 알고 있습니다. (맞나?)<br />body id는 1회치환자 일겁니다.</p>]]></content>
			<author>
				<name><![CDATA[LonnieNa]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=9</uri>
			</author>
			<updated>2009-01-21T23:17:30Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=33386#p33386</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[플러그인에서 치환자 사용할수 없나요?]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=33380#p33380"/>
			<content type="html"><![CDATA[<p>개인적으로 사용할 플러그인을 만들고 있는데<br />스킨에서 사용하는 치환자를 불러올수 없는지 궁금합니다.</p><p>[##_body_id_##]를 사용해서 비교문을 만드려고 하거든요</p><p>if ( &#039;[##_$bodyid_##]&#039; == &quot;news&quot;) {</p><p>}</p><br /><p>이런식으로 하는데<br />아무리해도 불러들여와지지가 않네요.<br />혹시 방법이 있는데 못찾는건지... 벌써 한시간째 해메고 있네요<br />도움 한마디 부탁합니다.</p>]]></content>
			<author>
				<name><![CDATA[아나키]]></name>
			</author>
			<updated>2009-01-21T12:02:38Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=33380#p33380</id>
		</entry>
</feed>
