<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[TNF : Tatter Network Foundation forum - AddPost 이벤트 발생 시 본문 내용 수정은 불가능입니까?]]></title>
		<link>http://forum.tattersite.com/ko/viewtopic.php?id=8581</link>
		<description><![CDATA[AddPost 이벤트 발생 시 본문 내용 수정은 불가능입니까? 의 최근 RSS 글들.]]></description>
		<lastBuildDate>Sun, 12 Jul 2009 01:08:32 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[RSS 답글: AddPost 이벤트 발생 시 본문 내용 수정은 불가능입니까?]]></title>
			<link>http://forum.tattersite.com/ko/viewtopic.php?pid=35905#p35905</link>
			<description><![CDATA[<p>이것도 자문자답...OTL...</p><p>fireEvent 함수를 써서 이벤트를 따로 만들었습니다.<br />entry 변수를 설정할 때 entry[&#039;content&#039;]을 $target으로 하여 이벤트를 발생 후 그 값을 update하는 코드를 삽입하였습니다.</p><div class="codebox"><pre><code>// event fire, 20090712, NoSyu(dongdm@gmail.com)
    $entry[&#039;content&#039;] = fireEvent(&#039;AddPost_NoSyu&#039;, $entry[&#039;content&#039;], $entry);</code></pre></div><p>위의 코드를 \tc\interface\owner\entry\finish\index.php의 56번째 줄에, \tc\interface\owner\entry\add\index.php의 45번째 줄에 추가하였습니다.</p>]]></description>
			<author><![CDATA[null@example.com (NoSyu)]]></author>
			<pubDate>Sun, 12 Jul 2009 01:08:32 +0000</pubDate>
			<guid>http://forum.tattersite.com/ko/viewtopic.php?pid=35905#p35905</guid>
		</item>
		<item>
			<title><![CDATA[AddPost 이벤트 발생 시 본문 내용 수정은 불가능입니까?]]></title>
			<link>http://forum.tattersite.com/ko/viewtopic.php?pid=35877#p35877</link>
			<description><![CDATA[<p>안녕하세요.</p><p>현재 플러그인을 하나 만들려고 하는데,</p><p>글에 어떤 특정 코드를 적으면 그것을 다른 결과물로 치환하는 것을 만들려고 합니다.</p><p>기존에 만들어진 것을 보니 ViewPostContent 이벤트 발생 때 처리하였는데,</p><p>결과물을 계산하는 곳이 다른 서버인지라</p><p>볼 때마다 그 계산을 하여 결과물을 받는 것은 손해인 듯싶습니다.</p><p>따라서 글을 다 쓰고나서 추가할 때 이를 치환하려고 하는데</p><p>AddPost의 $target은 id가 날아온다고 합니다.</p><p>그리고 $mother로 글에 대한 정보가 날아오는데,</p><p>그렇다면 $mother를 이용하여 수정하는 것은 불가능하지 않나 생각합니다.</p><p>글 작성 후 본문 내용을 치환하는 플러그인 개발 방법이 있습니까??</p>]]></description>
			<author><![CDATA[null@example.com (NoSyu)]]></author>
			<pubDate>Fri, 10 Jul 2009 05:21:31 +0000</pubDate>
			<guid>http://forum.tattersite.com/ko/viewtopic.php?pid=35877#p35877</guid>
		</item>
	</channel>
</rss>
