<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[TNF : Tatter Network Foundation forum - [질문]을 여기에 올려도되는지 몰르지만..]]></title>
		<link>http://forum.tattersite.com/ko/viewtopic.php?id=422</link>
		<description><![CDATA[[질문]을 여기에 올려도되는지 몰르지만.. 의 최근 RSS 글들.]]></description>
		<lastBuildDate>Sun, 21 May 2006 07:06:04 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[RSS 답글: [질문]을 여기에 올려도되는지 몰르지만..]]></title>
			<link>http://forum.tattersite.com/ko/viewtopic.php?pid=2324#p2324</link>
			<description><![CDATA[<div class="quotebox"><cite>Juno 작성:</cite><blockquote><p>한개의 치환자를 사용하게 되면..<br />내가 만든 플러그인이 [##_SKIN_head_end_##]를 사용하고..<br />다른분의 플러그인이 똑같이 [##_SKIN_head_end_##]를 사용하게 되면..<br />2개의 플러그인에 있는 모든 것이 출력이 되는건지요?<br />아닌걸로 알고 있는데..<br />문제가 발생할 소지가 많습니다.</p></blockquote></div><p>네 2개의 플러그인에 있는 모든 것이 출력이 됩니다.<br />다만 handler(call되는 함수)의 이름은 unique해야겠지요. <img src="http://forum.tattersite.com/ko/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>좀 더 자세하게 설명을 드리자면 아래와 같이 작성하시면 됩니다.<br />($target을 받아서 꼭 return 해줘야합니다.)</p><p>plugin1<br /></p><div class="quotebox"><blockquote><p>index.xml<br /></p><div class="codebox"><pre><code>...
&lt;tag name=&quot;SKIN_head_end&quot; handler=&quot;head_end1&quot; /&gt;
...</code></pre></div><p>index.php<br /></p><div class="codebox"><pre><code>function head_end1($target) {
    return &quot;&lt;script&gt;1&lt;/script&gt;&quot;.CRLF.$target;
}</code></pre></div></blockquote></div><p>plugin2<br /></p><div class="quotebox"><blockquote><p>index.xml<br /></p><div class="codebox"><pre><code>...
&lt;tag name=&quot;SKIN_head_end&quot; handler=&quot;head_end2&quot; /&gt;
...</code></pre></div><p>index.php<br /></p><div class="codebox"><pre><code>function head_end2($target) {
    return &quot;&lt;script&gt;2&lt;/script&gt;&quot;.CRLF.$target;
}</code></pre></div></blockquote></div>]]></description>
			<author><![CDATA[null@example.com (Peris)]]></author>
			<pubDate>Sun, 21 May 2006 07:06:04 +0000</pubDate>
			<guid>http://forum.tattersite.com/ko/viewtopic.php?pid=2324#p2324</guid>
		</item>
		<item>
			<title><![CDATA[RSS 답글: [질문]을 여기에 올려도되는지 몰르지만..]]></title>
			<link>http://forum.tattersite.com/ko/viewtopic.php?pid=2323#p2323</link>
			<description><![CDATA[<p>한개의 치환자를 사용하게 되면..<br />내가 만든 플러그인이 [##_SKIN_head_end_##]를 사용하고..<br />다른분의 플러그인이 똑같이 [##_SKIN_head_end_##]를 사용하게 되면..<br />2개의 플러그인에 있는 모든 것이 출력이 되는건지요?<br />아닌걸로 알고 있는데..<br />문제가 발생할 소지가 많습니다.</p>]]></description>
			<author><![CDATA[null@example.com (Juno)]]></author>
			<pubDate>Sun, 21 May 2006 06:55:45 +0000</pubDate>
			<guid>http://forum.tattersite.com/ko/viewtopic.php?pid=2323#p2323</guid>
		</item>
		<item>
			<title><![CDATA[RSS 답글: [질문]을 여기에 올려도되는지 몰르지만..]]></title>
			<link>http://forum.tattersite.com/ko/viewtopic.php?pid=2322#p2322</link>
			<description><![CDATA[<p>event로는 불가능하다고 판단되어 치환자를 자동으로 삽입하는 방식으로 구현해놨습니다.</p><p>lib/skin.php<br /></p><div class="quotebox"><blockquote><p>아래 함수 추가</p><p>function replaceSkinTag($contents, $tag) {<br />&nbsp; &nbsp; $pattern[] = &#039;/(&lt;&#039;.$tag.&#039;.*&gt;)&#039;.CRLF.&#039;/Ui&#039;;<br />&nbsp; &nbsp; $pattern[] = &#039;/&lt;\/&#039;.$tag.&#039;&gt;/Ui&#039;;</p><p>&nbsp; &nbsp; $replacement[] = &#039;$1&#039;.CRLF.&#039;[##_SKIN_&#039;.$tag.&#039;_start_##]&#039;;<br />&nbsp; &nbsp; $replacement[] = &#039;[##_SKIN_&#039;.$tag.&#039;_end_##]$0&#039;;</p><p>&nbsp; &nbsp; return preg_replace($pattern, $replacement, $contents);<br />}</p><br /><p>skin class의 skin 함수에 handleTags($sval); 바로 위에 아래 내용 추가</p><p>$sval = replaceSkinTag($sval, &#039;html&#039;);<br />$sval = replaceSkinTag($sval, &#039;head&#039;);<br />$sval = replaceSkinTag($sval, &#039;body&#039;);</p></blockquote></div><p>자동으로 생성되는 치환자 목록<br /></p><div class="quotebox"><blockquote><p>SKIN_html_start<br />SKIN_head_start<br />SKIN_head_end<br />SKIN_body_start<br />SKIN_body_end<br />SKIN_html_end</p></blockquote></div><p>SKIN_*_start 는 해당 태그 다음 줄의 맨 앞에, SKIN_*_end 는 해당 태그의 바로 앞에 추가가 됩니다.<br /></p><div class="quotebox"><blockquote><p>예제 :<br />...<br />&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;<br />[##_SKIN_html_start_##]&lt;head&gt;<br />[##_SKIN_head_start_##]&lt;meta http-equiv=Content-Type content=&quot;text/html; charset=utf-8&quot; /&gt;<br />...<br />[##_SKIN_head_end_##]&lt;/head&gt;<br />&lt;body&gt;<br />[##_SKIN_body_start_##]&lt;a name=&quot;top&quot;&gt;&lt;/a&gt;<br />...<br />[##_SKIN_body_end_##]&lt;/body&gt;<br />[##_SKIN_html_end_##]&lt;/html&gt;</p></blockquote></div><p>플러그인에서 사용하실 때는 &lt;tag name=&quot;SKIN_head_end&quot; handler=&quot;head_end&quot; /&gt; 와 같이 사용하시면 됩니다.</p><br /><p>ps1. 일단 커밋해두겠으나 더 좋은 의견있으시면 태클걸어주세요. <img src="http://forum.tattersite.com/ko/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>ps2. container, header, content, sidebar 등의 id에도 만들어줄려고 했으나 table 형식의 스킨에서는 id가 없어서 일단 보류입니다. <img src="http://forum.tattersite.com/ko/img/smilies/sad.png" width="15" height="15" alt="sad" /></p>]]></description>
			<author><![CDATA[null@example.com (Peris)]]></author>
			<pubDate>Sun, 21 May 2006 06:51:26 +0000</pubDate>
			<guid>http://forum.tattersite.com/ko/viewtopic.php?pid=2322#p2322</guid>
		</item>
		<item>
			<title><![CDATA[RSS 답글: [질문]을 여기에 올려도되는지 몰르지만..]]></title>
			<link>http://forum.tattersite.com/ko/viewtopic.php?pid=2270#p2270</link>
			<description><![CDATA[<p>저두 찬성입니다. &lt;head&gt;..&lt;/head&gt;부분에 자바스크립트나 스타일시트 등을 이벤트 할수있게 해주셨으면 좋겠습니다.<br />플러그인 제작에 많은 도움이 될듯합니다.</p>]]></description>
			<author><![CDATA[null@example.com (jparker)]]></author>
			<pubDate>Sat, 20 May 2006 00:23:52 +0000</pubDate>
			<guid>http://forum.tattersite.com/ko/viewtopic.php?pid=2270#p2270</guid>
		</item>
		<item>
			<title><![CDATA[RSS 답글: [질문]을 여기에 올려도되는지 몰르지만..]]></title>
			<link>http://forum.tattersite.com/ko/viewtopic.php?pid=2263#p2263</link>
			<description><![CDATA[<div class="quotebox"><cite>Chiri 작성:</cite><blockquote><p>대찬성입니다. 자바스크립트가 삽입되는 플러그인은 삽입하는 이벤트를 정하기가 애매하더군요.</p></blockquote></div><p>전 플러그인 함수명부터 이름 정하는게 더 어려워요..ㅠㅠ<br />차라리 프로그램 가져다 놓고 만드는게 쉽지..ㅠㅠ<br />함수명이랑 치환자 이름 결정하고 플러그인 이름 결정하고..<br />이게 가장 어렵다는..ㅠㅠ</p>]]></description>
			<author><![CDATA[null@example.com (Juno)]]></author>
			<pubDate>Fri, 19 May 2006 15:59:57 +0000</pubDate>
			<guid>http://forum.tattersite.com/ko/viewtopic.php?pid=2263#p2263</guid>
		</item>
		<item>
			<title><![CDATA[RSS 답글: [질문]을 여기에 올려도되는지 몰르지만..]]></title>
			<link>http://forum.tattersite.com/ko/viewtopic.php?pid=2255#p2255</link>
			<description><![CDATA[<p>대찬성입니다. 자바스크립트가 삽입되는 플러그인은 삽입하는 이벤트를 정하기가 애매하더군요.</p>]]></description>
			<author><![CDATA[null@example.com (Chiri)]]></author>
			<pubDate>Fri, 19 May 2006 13:29:36 +0000</pubDate>
			<guid>http://forum.tattersite.com/ko/viewtopic.php?pid=2255#p2255</guid>
		</item>
		<item>
			<title><![CDATA[RSS 답글: [질문]을 여기에 올려도되는지 몰르지만..]]></title>
			<link>http://forum.tattersite.com/ko/viewtopic.php?pid=2231#p2231</link>
			<description><![CDATA[<p>네 바로 그것입니다..^^;;<br />아무래도 head 부분에 자바스크립트를 삽입해야 하는 플러그인이 많은데...<br />플러그인을 많이 쓰는..<br />또는 제작하는 사람으로서..<br />사실 skin.php파일의 head 사이가 복잡해지고 좀 그렇더군요..<br />그런 사람들을 위해서 있으면 매우 편하고 좋을 것 같아서요..^^</p>]]></description>
			<author><![CDATA[null@example.com (Juno)]]></author>
			<pubDate>Fri, 19 May 2006 03:47:48 +0000</pubDate>
			<guid>http://forum.tattersite.com/ko/viewtopic.php?pid=2231#p2231</guid>
		</item>
		<item>
			<title><![CDATA[RSS 답글: [질문]을 여기에 올려도되는지 몰르지만..]]></title>
			<link>http://forum.tattersite.com/ko/viewtopic.php?pid=2230#p2230</link>
			<description><![CDATA[<p>오호.. 저도 플러그인 수정하다보면 그거 정말 답답했었는데.<br />이벤트가 있었으면 좋겠어요. b</p><p>가능여부는 생각지도 않고 먼저 국물부터 마셔보는..-_-</p>]]></description>
			<author><![CDATA[null@example.com (LonnieNa)]]></author>
			<pubDate>Fri, 19 May 2006 03:46:50 +0000</pubDate>
			<guid>http://forum.tattersite.com/ko/viewtopic.php?pid=2230#p2230</guid>
		</item>
		<item>
			<title><![CDATA[RSS 답글: [질문]을 여기에 올려도되는지 몰르지만..]]></title>
			<link>http://forum.tattersite.com/ko/viewtopic.php?pid=2226#p2226</link>
			<description><![CDATA[<div class="quotebox"><cite>Juno 작성:</cite><blockquote><p>혹시 &lt;head&gt;와 &lt;/head&gt;에 특정 값을 넣어줄 수 있는 이벤트가 있나요?<br />플러그인을 만들다 보면..<br />저곳에 자바스크립트를 넣어야 하는 경우가 있습니다.<br />사용자에게 &lt;head&gt;와 &lt;/head&gt;사이에 <br />[##_어쩌구_저쩌구_##]<br />를 넣으시구요.<br />본문에 다시<br />[##_저쩌구_어쩌구_##]<br />를 넣으세요..<br />같은거 좀 그렇찮아요..-_-;;;<br />링크처럼 한번에 한번만 인쇄되는거야..<br />그냥 플러그인 내용 위에 스크립트가 나오도록 하면 되는데..<br />본문 내용의 뒤나 앞에 붙는 플러그인일 경우<br />(지금 제작중인 인쇄버튼)<br />또는 어쩔수 없이 &lt;head&gt;안에 들어가야 하는 경우..<br />(페이지 변환 효과)<br />에는 &lt;head&gt;안에 머 넣구요.<br />body 태그에 머 삽입하구요.<br />본문의 어디에 머 삽입하구요..<br />-_-;;;<br />매우 번거러운 일이 아닐 수 없습니다.<br />만드는 사람도..<br />사용하는 사람도..<br />귀찮고 번거럽고..<br />짜증나고..<br />그리고 의도하지 않은 실수가 많이 생기더군요..ㅠㅠ</p><p>그런 이벤트가 있다면 알려주시고..<br />없다면 건의쪽으로 옮겨야겠습니다..^^;;</p></blockquote></div><p>스킨 헤더 부분을 해석할 때 작동하는 이벤트가 필요하겠군요 <img src="http://forum.tattersite.com/ko/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (inureyes)]]></author>
			<pubDate>Fri, 19 May 2006 03:24:35 +0000</pubDate>
			<guid>http://forum.tattersite.com/ko/viewtopic.php?pid=2226#p2226</guid>
		</item>
		<item>
			<title><![CDATA[[질문]을 여기에 올려도되는지 몰르지만..]]></title>
			<link>http://forum.tattersite.com/ko/viewtopic.php?pid=2222#p2222</link>
			<description><![CDATA[<p>혹시 &lt;head&gt;와 &lt;/head&gt;에 특정 값을 넣어줄 수 있는 이벤트가 있나요?<br />플러그인을 만들다 보면..<br />저곳에 자바스크립트를 넣어야 하는 경우가 있습니다.<br />사용자에게 &lt;head&gt;와 &lt;/head&gt;사이에 <br />[##_어쩌구_저쩌구_##]<br />를 넣으시구요.<br />본문에 다시<br />[##_저쩌구_어쩌구_##]<br />를 넣으세요..<br />같은거 좀 그렇찮아요..-_-;;;<br />링크처럼 한번에 한번만 인쇄되는거야..<br />그냥 플러그인 내용 위에 스크립트가 나오도록 하면 되는데..<br />본문 내용의 뒤나 앞에 붙는 플러그인일 경우<br />(지금 제작중인 인쇄버튼)<br />또는 어쩔수 없이 &lt;head&gt;안에 들어가야 하는 경우..<br />(페이지 변환 효과)<br />에는 &lt;head&gt;안에 머 넣구요.<br />body 태그에 머 삽입하구요.<br />본문의 어디에 머 삽입하구요..<br />-_-;;;<br />매우 번거러운 일이 아닐 수 없습니다.<br />만드는 사람도..<br />사용하는 사람도..<br />귀찮고 번거럽고..<br />짜증나고..<br />그리고 의도하지 않은 실수가 많이 생기더군요..ㅠㅠ</p><p>그런 이벤트가 있다면 알려주시고..<br />없다면 건의쪽으로 옮겨야겠습니다..^^;;</p>]]></description>
			<author><![CDATA[null@example.com (Juno)]]></author>
			<pubDate>Fri, 19 May 2006 02:40:44 +0000</pubDate>
			<guid>http://forum.tattersite.com/ko/viewtopic.php?pid=2222#p2222</guid>
		</item>
	</channel>
</rss>
