<?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=4197&amp;type=atom"/>
	<updated>2007-12-26T03:03:13Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.tattersite.com/ko/viewtopic.php?id=4197</id>
		<entry>
			<title type="html"><![CDATA[RSS 답글: 특정 카테고리의 글만 메인으로 뜨게 할 수 있나요.]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=22921#p22921"/>
			<content type="html"><![CDATA[<p>답변을 보고&nbsp; 울트라에디트로 파일을 열어보았는데..</p><p>72번째에는 그런 내용은 없고, getEntriesWithPaging으로 검색해본 결과<br />---------------------------------------------------------------------------------------------<br />function getEntriesWithPaging($owner,$page,$count){<br />&nbsp; &nbsp; global $database;<br />&nbsp; &nbsp; $visibility=doesHaveOwnership()?&#039;&#039;:&#039;AND e.visibility &gt; 0 AND (c.visibility &gt; 1 OR e.category = 0)&#039;;<br />&nbsp; &nbsp; $sql=&quot;SELECT e.*, c.label categoryLabel <br />&nbsp; &nbsp; &nbsp; &nbsp; FROM {$database[&#039;prefix&#039;]}Entries e <br />&nbsp; &nbsp; &nbsp; &nbsp; LEFT JOIN {$database[&#039;prefix&#039;]}Categories c ON e.owner = c.owner AND e.category = c.id <br />&nbsp; &nbsp; &nbsp; &nbsp; WHERE e.owner = $owner AND e.draft = 0 $visibility AND e.category &gt;= 0 <br />&nbsp; &nbsp; &nbsp; &nbsp; ORDER BY e.published DESC&quot;;<br />&nbsp; &nbsp; return fetchWithPaging($sql,$page,$count);<br />---------------------------------------------------------------------------------------------<br />의 내용과<br />---------------------------------------------------------------------------------------------<br />list($entries,$paging)=getEntriesWithPaging($owner,$suri[&#039;page&#039;],$blog[&#039;entriesOnPage&#039;]);<br />---------------------------------------------------------------------------------------------<br />이렇게 두개가 검색이 됩니다...<br />아래쪽 것인거 같아 수정을 해보았지만 페이지 자체가 뜨질 않습니다. </p><p>카테고리 아이디를 잘못 입력... 한거 같기도 한데...<br /><a href="http://cyaber.byus.net/tt/owner/entry/category/?&amp;id=1&amp;entries=15&amp;priority=1&amp;name1=%EB%8B%A4%EC%9D%B4%EC%96%B4%EB%A6%AC">http://cyaber.byus.net/tt/owner/entry/c … 4%EB%A6%AC</a><br />의 주소에서 아이디를 1 로 봐야하나요?</p>]]></content>
			<author>
				<name><![CDATA[장미강탈자]]></name>
			</author>
			<updated>2007-12-26T03:03:13Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=22921#p22921</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RSS 답글: 특정 카테고리의 글만 메인으로 뜨게 할 수 있나요.]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=22719#p22719"/>
			<content type="html"><![CDATA[<p>처음 화면에 올라오는 글의 카테고리를 제한하시려면 소스를 수정하는 방법과 표지 플러그인을 만드는 방법이 있겠습니다.</p><p>/blog/index.php의 약 72번째 줄에 getEntriesWithPaging이라는 함수를 통해서 처음 화면의 글을 불러오는데, 그 부분에서 getEntriesWithPagingByCategory를 사용하면 가능하겠네요.</p><p>getEntriesWithPagingByCategory($blogid, 카테고리 번호, $suri[&#039;page&#039;], $blog[&#039;entriesOnPage&#039;]);</p><p>로 바꾸면 될겁니다. 카테고리 번호는 카테고리 id를 확인하시면 됩니다. 관리자 모드의 글-카테고리 에서 원하는 카테고리를 찍었을 때, 주소창을 보면 id=숫자 가 나오는데, 그 숫자가 카테고리 번호입니다.</p>]]></content>
			<author>
				<name><![CDATA[inureyes]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=2</uri>
			</author>
			<updated>2007-12-20T12:50:15Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=22719#p22719</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[특정 카테고리의 글만 메인으로 뜨게 할 수 있나요.]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=22692#p22692"/>
			<content type="html"><![CDATA[<p>안녕하세요. </p><p>최근에.. 포스트에 글을 올리고 있는데.. <br />보통 가장 최근 포스트가 메인화면에 뜨는데..</p><p>이걸 특정 카테고리의 글만 뜨게끔 할 수 없을까요.<br /><a href="http://cyaber.byus.net/tt">http://cyaber.byus.net/tt</a></p>]]></content>
			<author>
				<name><![CDATA[장미강탈자]]></name>
			</author>
			<updated>2007-12-19T05:58:13Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=22692#p22692</id>
		</entry>
</feed>
