<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[TNF : Tatter Network Foundation forum - ViewPostContent event에서...]]></title>
	<link rel="self" href="http://forum.tattersite.com/ko/extern.php?action=feed&amp;tid=2195&amp;type=atom"/>
	<updated>2006-12-04T16:25:41Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.tattersite.com/ko/viewtopic.php?id=2195</id>
		<entry>
			<title type="html"><![CDATA[RSS 답글: ViewPostContent event에서...]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=12869#p12869"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>htna 작성:</cite><blockquote><p>아 그러고보니..<br />&quot;$target을 echo로 찍어 보시지요?&quot;<br />어케하는 건가요 ???</p></blockquote></div><p>그냥 &quot;echo $target;&quot;입니다. echo는 print와 비슷한 기능을 합니다만, 함수가 아니기 때문에(정확히는 language construct) 괄호는 필요 없습니다.</p>]]></content>
			<author>
				<name><![CDATA[graphittie]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=104</uri>
			</author>
			<updated>2006-12-04T16:25:41Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=12869#p12869</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RSS 답글: ViewPostContent event에서...]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=12865#p12865"/>
			<content type="html"><![CDATA[<p>아 그러고보니..<br />&quot;$target을 echo로 찍어 보시지요?&quot;<br />어케하는 건가요 ???</p>]]></content>
			<author>
				<name><![CDATA[htna]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=501</uri>
			</author>
			<updated>2006-12-04T15:59:41Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=12865#p12865</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RSS 답글: ViewPostContent event에서...]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=12856#p12856"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>htna 작성:</cite><blockquote><div class="quotebox"><cite>graphittie 작성:</cite><blockquote><p>저 함수 고대로 옮겨가 의도하신대로 동작하는 것을 확인했거든요. 다른 플러그인이 뭔가 먼저 건드리고 있는 게 아닐까요? 한 번 $target을 echo로 찍어 보시지요?</p></blockquote></div><p>음.. 그럴수도 있겠군요...</p><p>근데...<br />방금<br />preg_match_all 와 str_replace로 처리하도록 함수를 바꿔봤습니다.<br />이거 첨보는 함수들이라, 익히는데 혼동했네요...<br />이거는 왜 될까요???</p><p>솔직히 내부에서 regular expression을 사용할 용도가 아니라면,<br />저런정도의 코드만으로도 충분한데...</p></blockquote></div><p>흐흐... 그러게요. 왜 될까요. 의문이네...</p><p>결국 정규식을 쓰셨군요. 소스 가독성면에서는 정규식이 낫지 않을까 싶습니다.</p>]]></content>
			<author>
				<name><![CDATA[graphittie]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=104</uri>
			</author>
			<updated>2006-12-04T13:08:21Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=12856#p12856</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RSS 답글: ViewPostContent event에서...]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=12836#p12836"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>graphittie 작성:</cite><blockquote><p>저 함수 고대로 옮겨가 의도하신대로 동작하는 것을 확인했거든요. 다른 플러그인이 뭔가 먼저 건드리고 있는 게 아닐까요? 한 번 $target을 echo로 찍어 보시지요?</p></blockquote></div><p>음.. 그럴수도 있겠군요...</p><p>근데...<br />방금<br />preg_match_all 와 str_replace로 처리하도록 함수를 바꿔봤습니다.<br />이거 첨보는 함수들이라, 익히는데 혼동했네요...<br />이거는 왜 될까요???</p><p>솔직히 내부에서 regular expression을 사용할 용도가 아니라면,<br />저런정도의 코드만으로도 충분한데...</p>]]></content>
			<author>
				<name><![CDATA[htna]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=501</uri>
			</author>
			<updated>2006-12-04T08:22:03Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=12836#p12836</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RSS 답글: ViewPostContent event에서...]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=12835#p12835"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>htna 작성:</cite><blockquote><div class="quotebox"><cite>graphittie 작성:</cite><blockquote><p>잘 되는데요? index.xml 파일에서 이벤트 event listener 부분의 정보가 정확한지 확인해 주세요. &quot;&lt;listener event=&#039;ViewPostContent&#039;&gt;Wiki&lt;/listener&gt;&quot;라고 입력되어 있어야 합니다(너무 초보적인 답변이라 죄송합니다).</p></blockquote></div><p>네 되어있습니다.</p><p>특이하게도...<br />Wiki 함수를<br /></p><div class="codebox"><pre><code>function Wiki($target, $mother) {
    return $target.&quot;XXX&quot;;
}</code></pre></div><p>와 같이 작성하면, 글 마지막에 XXX는 찍힙니다.<br />제 생각에 아무래도, &#039;ViewPostContent&#039;에서만 호출되기 이전에 &#039;[&#039;나 &#039;]&#039;를 다른키워드로 치환하거나 하지 않나 생각이 듭니다.<br />ViewCommentContent, ViewGuestCommentContent, ViewNoticeContent 모두 저 이벤트를 주었습니다.<br />어느게 어느거인지는 모르겠지만, keyword 문서에서는 제대로 처리됩니다.</p></blockquote></div><p>저 함수 고대로 옮겨가 의도하신대로 동작하는 것을 확인했거든요. 다른 플러그인이 뭔가 먼저 건드리고 있는 게 아닐까요? 한 번 $target을 echo로 찍어 보시지요?</p>]]></content>
			<author>
				<name><![CDATA[graphittie]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=104</uri>
			</author>
			<updated>2006-12-04T08:18:32Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=12835#p12835</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RSS 답글: ViewPostContent event에서...]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=12832#p12832"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>graphittie 작성:</cite><blockquote><p>잘 되는데요? index.xml 파일에서 이벤트 event listener 부분의 정보가 정확한지 확인해 주세요. &quot;&lt;listener event=&#039;ViewPostContent&#039;&gt;Wiki&lt;/listener&gt;&quot;라고 입력되어 있어야 합니다(너무 초보적인 답변이라 죄송합니다).</p></blockquote></div><p>네 되어있습니다.</p><p>특이하게도...<br />Wiki 함수를<br /></p><div class="codebox"><pre><code>function Wiki($target, $mother) {
    return $target.&quot;XXX&quot;;
}</code></pre></div><p>와 같이 작성하면, 글 마지막에 XXX는 찍힙니다.<br />제 생각에 아무래도, &#039;ViewPostContent&#039;에서만 호출되기 이전에 &#039;[&#039;나 &#039;]&#039;를 다른키워드로 치환하거나 하지 않나 생각이 듭니다.<br />ViewCommentContent, ViewGuestCommentContent, ViewNoticeContent 모두 저 이벤트를 주었습니다.<br />어느게 어느거인지는 모르겠지만, keyword 문서에서는 제대로 처리됩니다.</p>]]></content>
			<author>
				<name><![CDATA[htna]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=501</uri>
			</author>
			<updated>2006-12-04T07:50:29Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=12832#p12832</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RSS 답글: ViewPostContent event에서...]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=12831#p12831"/>
			<content type="html"><![CDATA[<p>잘 되는데요? index.xml 파일에서 이벤트 event listener 부분의 정보가 정확한지 확인해 주세요. &quot;&lt;listener event=&#039;ViewPostContent&#039;&gt;Wiki&lt;/listener&gt;&quot;라고 입력되어 있어야 합니다(너무 초보적인 답변이라 죄송합니다).</p>]]></content>
			<author>
				<name><![CDATA[graphittie]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=104</uri>
			</author>
			<updated>2006-12-04T07:41:01Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=12831#p12831</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RSS 답글: ViewPostContent event에서...]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=12830#p12830"/>
			<content type="html"><![CDATA[<div class="codebox"><pre><code>function WikiLink($value,$hostURL, $blogURL)
{
    // [wiki:value] 의 &quot;value&quot;를 받아서
    // &quot;&lt;a href=xxx/keylog/value&gt;value&lt;/a&gt;&quot;를 리턴하는 역활을 합니다.
    if(($mid=strpos($value,&quot; &quot;))==true) {
        $name = substr($value,$mid+1);
        $value = substr($value,0,$mid);
    } else {
        $name = $value; 
    }
    $link = &quot;&lt;a class=\&quot;key1\&quot; href=&#039;&quot; . $hostURL . $blogURL . &quot;/keylog/&quot; . $value . &quot;&#039;&gt;&quot;;
    $link .= $name; //&quot;&lt;font color=#177fcd&gt;&quot; . $name . &quot;&lt;/font&gt;&quot;;
    $link .= &quot;&lt;/a&gt;&quot;;
    return $link;
}

function Wiki($target, $mother) {
    global $hostURL, $blogURL;

    while(($start=strpos($target,&quot;[wiki:&quot;))==true
        &amp;&amp; ($end=strpos($target,&quot;]&quot;,$start+6))==true )
    {
        $prefix  = substr($target,0,$start);
        $value   = substr($target,$start+6,$end-$start-6);
        $postfix = substr($target,$end+1);

        $target  = $prefix;
        $target .= WikiLink($value,$hostURL, $blogURL);
        $target .= $postfix;
    }

    return $target;
}</code></pre></div><p>소스 올립니다.</p>]]></content>
			<author>
				<name><![CDATA[htna]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=501</uri>
			</author>
			<updated>2006-12-04T05:26:10Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=12830#p12830</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RSS 답글: ViewPostContent event에서...]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=12826#p12826"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>htna 작성:</cite><blockquote><p>ViewPostContent event에서...<br />[wiki:xxx]<br />이런걸 처리하는 플러그인을 개인적으로 만들어보려 합니다..<br />근데 이부분이 인식이 안되네요..<br />ViewCommentContent<br />ViewGuestCommentContent<br />ViewNoticeContent<br />에서는 되는듯 합니다.<br />하지만, 저부분에서는 저게 안됩니다.<br />왜그런지....</p></blockquote></div><p>ViewPostContent 이벤트의 정상동작을 확인했습니다(rev. 2632). 소스 코드를 보여주셔야 할 것 같은데요...</p>]]></content>
			<author>
				<name><![CDATA[graphittie]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=104</uri>
			</author>
			<updated>2006-12-04T02:11:34Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=12826#p12826</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[ViewPostContent event에서...]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=12803#p12803"/>
			<content type="html"><![CDATA[<p>ViewPostContent event에서...<br />[wiki:xxx]<br />이런걸 처리하는 플러그인을 개인적으로 만들어보려 합니다..<br />근데 이부분이 인식이 안되네요..<br />ViewCommentContent<br />ViewGuestCommentContent<br />ViewNoticeContent<br />에서는 되는듯 합니다.<br />하지만, 저부분에서는 저게 안됩니다.<br />왜그런지....</p>]]></content>
			<author>
				<name><![CDATA[htna]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=501</uri>
			</author>
			<updated>2006-12-03T07:19:30Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=12803#p12803</id>
		</entry>
</feed>
