<?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=3772&amp;type=atom"/>
	<updated>2007-08-27T15:02:15Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.tattersite.com/ko/viewtopic.php?id=3772</id>
		<entry>
			<title type="html"><![CDATA[사용자 목록이 뜨는 메타플러그인 제작중입니다.]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=20958#p20958"/>
			<content type="html"><![CDATA[<p>MT_Meta_RecentPS_Default 플러그인 따라서 사용자 목록이 뜨는 메타플러그인을 만들어 보고 있습니다.</p><div class="codebox"><pre><code>&lt;?php
function MT_Cover_getRecentEntries($parameters){
    global $database,$blog,$serviceURL,$configVal;
    requireComponent(&#039;Textcube.Core&#039;);
    requireComponent(&#039;Textcube.Function.misc&#039;);
    requireModel(&quot;blog.entry&quot;);
    requireModel(&quot;blog.user&quot;);


    if (isset($parameters[&#039;preview&#039;])) {
        // preview mode
        $retval = &#039;표지에 블로거 목록을 추가합니다.&#039;;
        return htmlspecialchars($retval);
    }

    $entries = DBQuery::queryAll(&quot;SELECT u.userid as uuserid, u.name as uname, b.blogid as bblogid, b.name as bname, b.value, t.blogid as tblogid, t.userid as tuserid, t.acl
        FROM {$database[&#039;prefix&#039;]}BlogSettings b, {$database[&#039;prefix&#039;]}Users u, {$database[&#039;prefix&#039;]}Teamblog t
        WHERE uuserid=tuserid AND tblogid=bblogid AND acl&gt;15
        ORDER BY bblogid ASC&quot;);    
    
    $html = &#039;&#039;;
    foreach ($entries as $entry){

        $blogname=$entry[&#039;bname&#039;]

        $defaultURL = getDefaultURL($blogid);

        //$categoryName = htmlspecialchars(empty($entry[&#039;category&#039;]) ? _text(&#039;분류없음&#039;) : $entry[&#039;label&#039;]);
        //$categoryLink = &quot;{$defaultURL}/&quot; . (empty($entry[&#039;category&#039;]) ? &quot;category/&quot; : &quot;category/&quot;.encodeURL($categoryName));

        $html .= &#039;&lt;div class=&quot;member&quot;&gt;&#039;.CRLF;
        if($entry[&#039;logo&#039;]){
            $logoImageSrc=$serviceURL.&quot;/attach/&quot;.getBlogId().&quot;/&quot;.$entry[&#039;logo&#039;];
            $html .= &#039;&lt;div class=&quot;img_preview&quot; style=&quot;background:url(&#039;.$logoImageSrc.&#039;) top center no-repeat #ffffff;&quot;&gt;&lt;img src=&quot;&#039;.$serviceURL.&#039;/image/spacer.gif&quot; alt=&quot;&quot; onclick=&quot;window.location.href=\&#039;&#039;.$defaultURL.&#039;\&#039;; return false;&quot; /&gt;&lt;/div&gt;&#039;.CRLF;
        }
        $html .= &#039;    &lt;h2&gt;&lt;a href=&quot;&#039;.$permalink.&#039;&quot;&gt;&#039;.htmlspecialchars($entry[&#039;title&#039;]).&#039;&lt;/a&gt;&lt;/h2&gt;&#039;.CRLF;
        $html .= &#039;    &lt;div class=&quot;post_info&quot;&gt;&#039;.CRLF;
        $html .= &#039;        &lt;span class=&quot;url&quot;&gt;&lt;a href=&quot;&#039;.$defaultURL.&#039;&quot;&gt;&#039;.$defaultURL.&#039;&lt;/a&gt;&lt;/span&gt;&#039;.CRLF;
        $html .= &#039;        &lt;span class=&quot;blogger&quot;&gt;by &#039;.User::getName($entry[&#039;uuserid&#039;]).&#039;&lt;/span&gt;&#039;.CRLF;
        $html .= &#039;    &lt;/div&gt;&#039;.CRLF;
        $html .= &#039;    &lt;div class=&quot;description&quot;&gt;&#039;.htmlspecialchars(UTF8::lessenAsEm(removeAllTags(stripHTML($entry[&#039;desc&#039;])),250)).&#039;&lt;/div&gt;&#039;.CRLF;
        $html .= &#039;    &lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;&#039;.CRLF;
        $html .= &#039;&lt;/div&gt;&#039;.CRLF;
    }
    $target = $html;

    return $target;
}

function MT_Cover_getMemberStyle($target){
    global $pluginURL, $configVal;
    $target .= &#039;&lt;link rel=&quot;stylesheet&quot; media=&quot;screen&quot; type=&quot;text/css&quot; href=&quot;&#039; . $pluginURL . &#039;/style.css&quot; /&gt;&#039; . CRLF;
    return $target;
}
?&gt;</code></pre></div><p>여기까지 수정했는데 더이상 못하겠다는... 도와주세요ㅠ<br />(필요한 함수를 못찾겠습니다. 컥)</p>]]></content>
			<author>
				<name><![CDATA[FeelSoGood]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=1083</uri>
			</author>
			<updated>2007-08-27T15:02:15Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=20958#p20958</id>
		</entry>
</feed>
