<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[TNF : Tatter Network Foundation forum - 표지에서 관리자의 공지글을 항상 상단에 띄우기???]]></title>
		<link>http://forum.tattersite.com/ko/viewtopic.php?id=5703</link>
		<description><![CDATA[표지에서 관리자의 공지글을 항상 상단에 띄우기??? 의 최근 RSS 글들.]]></description>
		<lastBuildDate>Wed, 04 Jun 2008 08:11:49 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[표지에서 관리자의 공지글을 항상 상단에 띄우기???]]></title>
			<link>http://forum.tattersite.com/ko/viewtopic.php?pid=27624#p27624</link>
			<description><![CDATA[<p>텍스트큐브 1.6.3 확장판을 설치해서 다중 블로그 모드로 사용중입니다.</p><p>확장판에 기본으로 들어있는 J.Parker님의 [모든 블로그의 최신 글보기-MT_Meta_RecentPS_Default] 플러그인을 적용해서 표지기능을 활성화하고</p><p>다중 블로그의 최신 엔트리들은 표지에 표시해주는데여...</p><p>관리자가 공지로 글을 쓸 경우 관리자의 공지글은 타 블로그의 최신 엔트리보다 작성 일자에 상관없이</p><p>항상 상단에 위치 할려고 하는데요.</p><p>플러그인 소스를 찾아보니...</p><p>54라인에....</p><p>list($entries, $paging) = fetchWithPaging(&quot;[쿼리]&quot;, $page, $entryLength);</p><p>이런 부분이 실제 최신 엔트리들을 조회하는거 같아 쿼리부분만 수정했더니..</p><p>스킨이 약간 한쪽으로 쏠리면서 조회가 안되네여....</p><p>DB에서 직접 쿼리를 돌리면 정상적으로 쿼리가 됩니다.</p><p>어디가 문제인건가요?</p><br /><br /><p>수정한 쿼리입니다.<br />select<br />e.blogid, e.id, e.userid, e.title<br />, e.content, e.slogan, e.category, e.published, e.contentFormatter, c.label<br />from (<br />&nbsp; &nbsp; (<br />&nbsp; &nbsp; &nbsp; &nbsp; select<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; blogid, id, userid, title<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; , content, slogan, category, published, contentFormatter, &#039;0&#039; as aaa<br />&nbsp; &nbsp; &nbsp; &nbsp; from tc_entries<br />&nbsp; &nbsp; &nbsp; &nbsp; where blogid = &#039;1&#039;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; and category = &#039;-2&#039;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; and visibility = &#039;2&#039;<br />&nbsp; &nbsp; &nbsp; &nbsp; order by published desc<br />&nbsp; &nbsp; )<br />&nbsp; &nbsp; union<br />&nbsp; &nbsp; (<br />&nbsp; &nbsp; &nbsp; &nbsp; select<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; blogid, id, userid, title<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; , content, slogan, category, published, contentFormatter, &#039;1&#039; as aaa<br />&nbsp; &nbsp; &nbsp; &nbsp; from tc_entries<br />&nbsp; &nbsp; &nbsp; &nbsp; where category &lt;&gt; &#039;-2&#039;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; and visibility = &#039;2&#039;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; and blogid &lt;&gt; &#039;1&#039;<br />&nbsp; &nbsp; &nbsp; &nbsp; order by published desc<br />&nbsp; &nbsp; )<br />&nbsp; &nbsp; order by aaa, published desc<br />) e LEFT JOIN tc_Categories c ON e.blogid = c.blogid AND e.category = c.id</p>]]></description>
			<author><![CDATA[null@example.com (박동섭)]]></author>
			<pubDate>Wed, 04 Jun 2008 08:11:49 +0000</pubDate>
			<guid>http://forum.tattersite.com/ko/viewtopic.php?pid=27624#p27624</guid>
		</item>
	</channel>
</rss>
