Posted on 2006/02/03 10:00
Filed Under Textcube/Plug-in Develoment

tattertools/plugins/ 위치에 디렉토리별로 존재



[BlogIcon] 라고 할때



tattertools/BlogIcon/



안에 index.xml과 index.php가 조재



[index.php]

<?
function showBlogIcon($target, $mother) {
    if (empty($mother['homepage']))
        return $target;
    $slash = ($mother['homepage']{strlen($mother['homepage']) - 1} == '/' ? '' : '/');
    return "<img src=\"{$mother['homepage']}{$slash}index.gif\" width=\"16\" height=\"16\" onerror=\"this.parentNode.removeChild(this)\"/> $target";
}
?>




[index.xml]

<?xml version="1.0" encoding="utf-8"?>

<plugin version="1.0">

  <title>블로그 아이콘 표시</title>

  <version>1.0</version>

  <description>댓글의 홈페이지에 블로그 아이콘(index.gif)이 있으면 댓글에 표시됩니다.</description>

  <license>TPL</license>

  <link>http://www.tattertools.com/plugins/BlogIcon</link>

  <author link="http://www.tattertools.com"><![CDATA[Tatter & Company]]></author>

  <safety changeData="no" exposeData="no" accessLocal="no" accessRemote="no" accessRaw="no" />

  <requirements>

   <tattertools>1.0</tattertools>

  </requirements>

  <listeners>

   <listener event="CommenterPrinting">showBlogIcon</listener>

  </listeners>

</plugin>
2006/02/03 10:00 2006/02/03 10:00

트랙백 주소 : http://www.takeone.pe.kr/trackback/11

Counter

· Total
: 361646
· Today
: 94
· Yesterday
: 110