<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[TNF : Tatter Network Foundation forum - Random Photo Viewer가 안되네요]]></title>
		<link>http://forum.tattersite.com/ko/viewtopic.php?id=4968</link>
		<description><![CDATA[Random Photo Viewer가 안되네요 의 최근 RSS 글들.]]></description>
		<lastBuildDate>Sun, 16 Mar 2008 08:40:17 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[RSS 답글: Random Photo Viewer가 안되네요]]></title>
			<link>http://forum.tattersite.com/ko/viewtopic.php?pid=25412#p25412</link>
			<description><![CDATA[<div class="quotebox"><cite>ovaLife 작성:</cite><blockquote><p>TC 1.6.1로 업데이트를 한 후 Random photo viewer 3를 새로 업로드 하고 활성화를 시켰더니<br />아래 RPV3 코드에서 $id 가 NULL값이어서 아래 if 문 안으로 들어가지 못해<br />No image만을 출력합니다.</p><p>혹시 비슷한 문제를 보신 적이 있으시거나<br />해결책 있으신 분들 도와주세요...^^</p><br /><p>for($cc=1; $cc&lt;=$i; $cc++){<br />&nbsp; &nbsp; &nbsp; &nbsp; $arr_rand = array_rand($tmpfile); </p><p>&nbsp; &nbsp; &nbsp; &nbsp; // 해당 이미지를 참고하는 게시물 카테고리 검색<br />&nbsp; &nbsp; &nbsp; &nbsp; $result=mysql_query(&quot;select id, category, title from {$database[&#039;prefix&#039;]}Entries where owner = {$owner} and content like &#039;%{$tmpfile[$arr_rand]}%&#039;&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; list($id, $category, $title) = mysql_fetch_array($result);</p><p>&nbsp; &nbsp; &nbsp; &nbsp; //DB에 포함되어 있는 이미지파일만 처리<br />&nbsp; &nbsp; &nbsp; &nbsp; if($id != NULL){</p></blockquote></div><p>1.6 이상에서는 owner 필드가 없어서 그렇습니다. 위의 경우에는 </p><div class="quotebox"><blockquote><p>for($cc=1; $cc&lt;=$i; $cc++){<br />&nbsp; &nbsp; &nbsp; &nbsp; $arr_rand = array_rand($tmpfile); </p><p>&nbsp; &nbsp; &nbsp; &nbsp; // 해당 이미지를 참고하는 게시물 카테고리 검색<br />&nbsp; &nbsp; &nbsp; &nbsp; $result=mysql_query(&quot;select id, category, title from {$database[&#039;prefix&#039;]}Entries where blogid = &quot;.getBlogId().&quot; and content like &#039;%{$tmpfile[$arr_rand]}%&#039;&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; list($id, $category, $title) = mysql_fetch_array($result);</p><p>&nbsp; &nbsp; &nbsp; &nbsp; //DB에 포함되어 있는 이미지파일만 처리<br />&nbsp; &nbsp; &nbsp; &nbsp; if($id != NULL</p></blockquote></div><p>이렇게 수정해 주셔야 될 것 같습니다.^^</p>]]></description>
			<author><![CDATA[null@example.com (inureyes)]]></author>
			<pubDate>Sun, 16 Mar 2008 08:40:17 +0000</pubDate>
			<guid>http://forum.tattersite.com/ko/viewtopic.php?pid=25412#p25412</guid>
		</item>
		<item>
			<title><![CDATA[Random Photo Viewer가 안되네요]]></title>
			<link>http://forum.tattersite.com/ko/viewtopic.php?pid=25394#p25394</link>
			<description><![CDATA[<p>TC 1.6.1로 업데이트를 한 후 Random photo viewer 3를 새로 업로드 하고 활성화를 시켰더니<br />아래 RPV3 코드에서 $id 가 NULL값이어서 아래 if 문 안으로 들어가지 못해<br />No image만을 출력합니다.</p><p>혹시 비슷한 문제를 보신 적이 있으시거나<br />해결책 있으신 분들 도와주세요...^^</p><br /><p>for($cc=1; $cc&lt;=$i; $cc++){<br />&nbsp; &nbsp; &nbsp; &nbsp; $arr_rand = array_rand($tmpfile); </p><p>&nbsp; &nbsp; &nbsp; &nbsp; // 해당 이미지를 참고하는 게시물 카테고리 검색<br />&nbsp; &nbsp; &nbsp; &nbsp; $result=mysql_query(&quot;select id, category, title from {$database[&#039;prefix&#039;]}Entries where owner = {$owner} and content like &#039;%{$tmpfile[$arr_rand]}%&#039;&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; list($id, $category, $title) = mysql_fetch_array($result);</p><p>&nbsp; &nbsp; &nbsp; &nbsp; //DB에 포함되어 있는 이미지파일만 처리<br />&nbsp; &nbsp; &nbsp; &nbsp; if($id != NULL){</p>]]></description>
			<author><![CDATA[null@example.com (ovaLife)]]></author>
			<pubDate>Sat, 15 Mar 2008 17:50:58 +0000</pubDate>
			<guid>http://forum.tattersite.com/ko/viewtopic.php?pid=25394#p25394</guid>
		</item>
	</channel>
</rss>
