<?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=759&amp;type=atom"/>
	<updated>2006-06-26T02:26:24Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.tattersite.com/ko/viewtopic.php?id=759</id>
		<entry>
			<title type="html"><![CDATA[RSS 답글: 새창 띄우기, 라이센스 표시 플러그]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=4767#p4767"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>graphittie 작성:</cite><blockquote><p>TnF 2차 회의에서 나왔던</p><p>&quot;심하게 긴 URL이 포스트에 포함되어 레이아웃이 깨지는 문제&quot;</p><p>를 해결하기 위한 &quot;URL을 간단하게 줄여주는 플러그인 기능&quot;도 포함하는 것이 어떨까요?(코드가 까다롭다는 걸 알면서 떠넘기기...)</p></blockquote></div><p>여기 포럼(PunBB)의 소스를 참고해서 해보니 플러그인으로 되긴되는군요.<br />daybreaker님께서 만드신것과 병합해서 해보려니 에러가 나서 독립시켜버렸습니다. <br />플러그인을 동시에 써도 충돌은 없는것 같습니다.<br />아래소스를 태터에 병합하면 좋을것 같습니다.(엔트리 본문, 댓글(방명록)본문까지 적용되게)</p><p># 참고 플러그인<br /><a href="http://www.create74.com/temp/LongToShortLink.zip">http://www.create74.com/temp/LongToShortLink.zip</a></p><p># PunBB 참고소스<br /></p><div class="codebox"><pre><code>function handle_url_tag($url, $link = &#039;&#039;)
{
    global $pun_user;

    $full_url = str_replace(array(&#039; &#039;, &#039;\&#039;&#039;, &#039;`&#039;, &#039;&quot;&#039;), array(&#039;%20&#039;, &#039;&#039;, &#039;&#039;, &#039;&#039;), $url);
    if (strpos($url, &#039;www.&#039;) === 0)            // If it starts with www, we add http://
        $full_url = &#039;http://&#039;.$full_url;
    else if (strpos($url, &#039;ftp.&#039;) === 0)    // Else if it starts with ftp, we add ftp://
        $full_url = &#039;ftp://&#039;.$full_url;
    else if (!preg_match(&#039;#^([a-z0-9]{3,6})://#&#039;, $url, $bah))     // Else if it doesn&#039;t start with abcdef://, we add http://
        $full_url = &#039;http://&#039;.$full_url;

    // Ok, not very pretty :-)
    $link = ($link == &#039;&#039; || $link == $url) ? ((strlen($url) &gt; 55) ? substr($url, 0 , 39).&#039; … &#039;.substr($url, -10) : $url) : stripslashes($link);

    return &#039;&lt;a href=&quot;&#039;.$full_url.&#039;&quot;&gt;&#039;.$link.&#039;&lt;/a&gt;&#039;;
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[jparker]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=10</uri>
			</author>
			<updated>2006-06-26T02:26:24Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=4767#p4767</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RSS 답글: 새창 띄우기, 라이센스 표시 플러그]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=4761#p4761"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>graphittie 작성:</cite><blockquote><p>TnF 2차 회의에서 나왔던</p><p>&quot;심하게 긴 URL이 포스트에 포함되어 레이아웃이 깨지는 문제&quot;</p><p>를 해결하기 위한 &quot;URL을 간단하게 줄여주는 플러그인 기능&quot;도 포함하는 것이 어떨까요?(코드가 까다롭다는 걸 알면서 떠넘기기...)</p></blockquote></div><p>총대는 graphittie님이 매시는거죠? +_+/</p>]]></content>
			<author>
				<name><![CDATA[나니]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=134</uri>
			</author>
			<updated>2006-06-26T00:25:57Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=4761#p4761</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RSS 답글: 새창 띄우기, 라이센스 표시 플러그]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=4757#p4757"/>
			<content type="html"><![CDATA[<p>TnF 2차 회의에서 나왔던</p><p>&quot;심하게 긴 URL이 포스트에 포함되어 레이아웃이 깨지는 문제&quot;</p><p>를 해결하기 위한 &quot;URL을 간단하게 줄여주는 플러그인 기능&quot;도 포함하는 것이 어떨까요?(코드가 까다롭다는 걸 알면서 떠넘기기...)</p>]]></content>
			<author>
				<name><![CDATA[graphittie]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=104</uri>
			</author>
			<updated>2006-06-25T22:35:11Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=4757#p4757</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RSS 답글: 새창 띄우기, 라이센스 표시 플러그]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=4393#p4393"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>graphittie 작성:</cite><blockquote><div class="quotebox"><cite>daybreaker 작성:</cite><blockquote><p>플러그인의 scope에서 보이는 변수·함수들에는 어떤 것들이 있는지 알 수 있는 레퍼런스가 필요할 것 같습니다.;</p></blockquote></div><p>저의 차기 작업 중 하나가 태터툴즈 레퍼런스입니다. 전체 소스 코드를 파악할 겸(뒷북치다가 교주님한테 &#039;그거 있는데요?&#039; 소리를 하도 들어놔서...:P), DB로 레퍼런스를 개발해 기존 개발자의 개발편의를 도모하고, 새 개발자의 진입장벽을 낮추기 위해서이지요. 다만, 저도 얼마 후부터 새 일을 시작하기 때문에 작업이 그렇게 빠를 것 같지는 않군요. 현재로서는 2~4달로 잡고 있어요.</p></blockquote></div><p>흠 저도 사정이 있어 태터 툴즈 코드를 열심히 까보는 중입니다...만 지쳐서 코드 레퍼런스하는 문서를 만드려고 하고 있습니다. ^^<br />도움이 되었으면 합니다. ^^ 혹시 시작하시게 되면 저도 끼워 주십시오.~~</p>]]></content>
			<author>
				<name><![CDATA[ghost_ghost]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=198</uri>
			</author>
			<updated>2006-06-20T12:18:27Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=4393#p4393</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RSS 답글: 새창 띄우기, 라이센스 표시 플러그]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=4003#p4003"/>
			<content type="html"><![CDATA[<p>1.0 XHTML tr에서는 target 지정 상관없습니다만<br />1.1 XHTML St에서는 문제가 되죠.</p><p>그래서 전 꼼수로 Javascript를 사용해서 새창 띄우고 있습니다.. ( ..)</p>]]></content>
			<author>
				<name><![CDATA[나니]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=134</uri>
			</author>
			<updated>2006-06-16T03:11:58Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=4003#p4003</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RSS 답글: 새창 띄우기, 라이센스 표시 플러그]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=4001#p4001"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>lunamoth 작성:</cite><blockquote><p>&quot;새창 아이콘이나 텍스트&quot; 없이 기존 링크를 모두 새창으로 띄우게 하는 옵션도 있으면 좋지 않을까요?</p></blockquote></div><p>플러그인 코드를 고치면 얼마든지 가능합니다만 플러그인의 환경설정 페이지를 어떻게 만들 수 있는지 몰라서(소스 뒤져보니까 얼핏 plugin/xxx로 접근했을 때의 이벤트가 있는 것 같기도 하던데..) 따로 옵션을 넣지 않았습니다. 고려하겠습니다;</p><p>ps. 이거 플러그인 코드가 정말 너무너무 간단해서..-_-; 사실 상 preg_replace 한 줄로 끝나는 녀석이거든요. 그 안에 들어갈 $replacement 문자열만 잘 조작해주면 됩니다.;;</p>]]></content>
			<author>
				<name><![CDATA[daybreaker]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=11</uri>
			</author>
			<updated>2006-06-16T03:03:34Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=4001#p4001</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RSS 답글: 새창 띄우기, 라이센스 표시 플러그]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=3978#p3978"/>
			<content type="html"><![CDATA[<p>&quot;새창 아이콘이나 텍스트&quot; 없이 기존 링크를 모두 새창으로 띄우게 하는 옵션도 있으면 좋지 않을까요? 웹표준을 중요시 하는 분도 있겠지만 또 새창에 익숙해져 있는 분도 있을것 같아서요.</p>]]></content>
			<author>
				<name><![CDATA[lunamoth]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=56</uri>
			</author>
			<updated>2006-06-15T20:18:43Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=3978#p3978</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RSS 답글: 새창 띄우기, 라이센스 표시 플러그]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=3973#p3973"/>
			<content type="html"><![CDATA[<p>새 창 띄우기 정말 want 합니다 <img src="http://forum.tattersite.com/ko/img/smilies/smile.png" width="15" height="15" alt="smile" /><br />다른 블로그에서 글 읽다가 중간에 링크 클릭했는데 같은 페이지에서 이동이 되어 버리면 짜증이 올라가더라구요.-_-;<br />저도 글 쓸때마다 일일이 target 넣기도 귀찮고..</p><div class="quotebox"><blockquote><p>그래서 간단하게 만들어볼까 합니다. 포스트 내의 a 태그를 조사해서 원래의 a태그를 그대로 두고 옆에 새창 아이콘이나 텍스트를 넣어 그걸 클릭하면 새창이 뜨게 하려고 합니다. (새창 뜨지 않게 한 것이 원래 의도였던 데다 target이 XHTML 표준으로도 맞지 않으니까요.)</p></blockquote></div><p>위 방식 좋네요. <img src="http://forum.tattersite.com/ko/img/smilies/cool.png" width="15" height="15" alt="cool" /></p>]]></content>
			<author>
				<name><![CDATA[JWC]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=19</uri>
			</author>
			<updated>2006-06-15T18:27:25Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=3973#p3973</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RSS 답글: 새창 띄우기, 라이센스 표시 플러그]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=3971#p3971"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>graphittie 작성:</cite><blockquote><div class="quotebox"><cite>유마 작성:</cite><blockquote><p>링크 새창 띄우기는.. 어떤 분이 태터툴즈 홈에 플러그인으로 만들어서 올리셨네요 ^^ <br /><a href="http://www.tattertools.com/bbs/view.php?id=plugin&amp;no=210">http://www.tattertools.com/bbs/view.php … amp;no=210</a></p><p>여기서 의도한 바와는 조금 다른 듯 보이지만.... 한번 살펴보세요 ^^a</p></blockquote></div><p>그 분이 이 분이십니다. 아침놀 = daybreaker. 크크크...:cool:</p></blockquote></div><p>헉쑤;;;; 맨날 영문 ID만 보다가;;;; 한글명을 보니;;;</p>]]></content>
			<author>
				<name><![CDATA[유마]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=20</uri>
			</author>
			<updated>2006-06-15T18:14:26Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=3971#p3971</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RSS 답글: 새창 띄우기, 라이센스 표시 플러그]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=3968#p3968"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>유마 작성:</cite><blockquote><p>링크 새창 띄우기는.. 어떤 분이 태터툴즈 홈에 플러그인으로 만들어서 올리셨네요 ^^ <br /><a href="http://www.tattertools.com/bbs/view.php?id=plugin&amp;no=210">http://www.tattertools.com/bbs/view.php … amp;no=210</a></p><p>여기서 의도한 바와는 조금 다른 듯 보이지만.... 한번 살펴보세요 ^^a</p></blockquote></div><p>그 분이 이 분이십니다. 아침놀 = daybreaker. 크크크...:cool:</p>]]></content>
			<author>
				<name><![CDATA[graphittie]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=104</uri>
			</author>
			<updated>2006-06-15T16:16:48Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=3968#p3968</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RSS 답글: 새창 띄우기, 라이센스 표시 플러그]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=3967#p3967"/>
			<content type="html"><![CDATA[<p>링크 새창 띄우기는.. 어떤 분이 태터툴즈 홈에 플러그인으로 만들어서 올리셨네요 ^^ <br /><a href="http://www.tattertools.com/bbs/view.php?id=plugin&amp;no=210">http://www.tattertools.com/bbs/view.php … amp;no=210</a></p><p>여기서 의도한 바와는 조금 다른 듯 보이지만.... 한번 살펴보세요 ^^a</p>]]></content>
			<author>
				<name><![CDATA[유마]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=20</uri>
			</author>
			<updated>2006-06-15T16:08:45Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=3967#p3967</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RSS 답글: 새창 띄우기, 라이센스 표시 플러그]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=3964#p3964"/>
			<content type="html"><![CDATA[<p>오오, 역시 그라피티에님 쵝오! +_+<br />(이래놓고 막상 다 떠넘기는 거 아닌가 해서 괜시리 죄송스럽기도..)</p>]]></content>
			<author>
				<name><![CDATA[daybreaker]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=11</uri>
			</author>
			<updated>2006-06-15T15:53:53Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=3964#p3964</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RSS 답글: 새창 띄우기, 라이센스 표시 플러그]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=3963#p3963"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>daybreaker 작성:</cite><blockquote><p>플러그인의 scope에서 보이는 변수·함수들에는 어떤 것들이 있는지 알 수 있는 레퍼런스가 필요할 것 같습니다.;</p></blockquote></div><p>저의 차기 작업 중 하나가 태터툴즈 레퍼런스입니다. 전체 소스 코드를 파악할 겸(뒷북치다가 교주님한테 &#039;그거 있는데요?&#039; 소리를 하도 들어놔서...:P), DB로 레퍼런스를 개발해 기존 개발자의 개발편의를 도모하고, 새 개발자의 진입장벽을 낮추기 위해서이지요. 다만, 저도 얼마 후부터 새 일을 시작하기 때문에 작업이 그렇게 빠를 것 같지는 않군요. 현재로서는 2~4달로 잡고 있어요.</p>]]></content>
			<author>
				<name><![CDATA[graphittie]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=104</uri>
			</author>
			<updated>2006-06-15T15:47:41Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=3963#p3963</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RSS 답글: 새창 띄우기, 라이센스 표시 플러그]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=3960#p3960"/>
			<content type="html"><![CDATA[<p>근데 이거 만들다보니까, config.php에 설정된 $service[&#039;language&#039;]를 참조하여 영문/한글을 전환해서 보여주려고 하는데, 항상 &#039;ko&#039;로만 설정되어 있습니다. 여기서 설정되는 건 언어별 배포판에 따른 것인가요?</p><p>그렇다면 환경설정에서 설정하는 언어는 무엇으로 접근할 수 있는지요?</p><p>--</p><p>자문자답 : BlogSetting이라는 클래스가 있길래 new BlogSetting()했더니 아무것도 안 뜨길래;; 좀 뒤져보니까 getBlogSetting라는 함수가 있더군요. 플러그인의 scope에서 보이는 변수·함수들에는 어떤 것들이 있는지 알 수 있는 레퍼런스가 필요할 것 같습니다.;</p>]]></content>
			<author>
				<name><![CDATA[daybreaker]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=11</uri>
			</author>
			<updated>2006-06-15T15:01:20Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=3960#p3960</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[새창 띄우기, 라이센스 표시 플러그]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=3957#p3957"/>
			<content type="html"><![CDATA[<p>의외로 새창띄우기를 원하시는 분들이 많더군요.<br />그래서 간단하게 만들어볼까 합니다. 포스트 내의 a 태그를 조사해서 원래의 a태그를 그대로 두고 옆에 새창 아이콘이나 텍스트를 넣어 그걸 클릭하면 새창이 뜨게 하려고 합니다. (새창 뜨지 않게 한 것이 원래 의도였던 데다 target이 XHTML 표준으로도 맞지 않으니까요.)</p><p>그리고, CCL이라든가 GFDL과 같이 몇 가지 문서용 라이센스를 조사해서 플러그인에서 간단히 설정하고 스킨에 치환자만 삽입하면 되는 플러그인도 만들어볼까 합니다.<br />역시 시험 기간엔 말려주는 센스가..-_-;</p>]]></content>
			<author>
				<name><![CDATA[daybreaker]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=11</uri>
			</author>
			<updated>2006-06-15T14:08:38Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=3957#p3957</id>
		</entry>
</feed>
