<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[TNF : Tatter Network Foundation forum - Random Photo Viewer가 안되네요]]></title>
	<link rel="self" href="http://forum.tattersite.com/ko/extern.php?action=feed&amp;tid=4968&amp;type=atom"/>
	<updated>2008-03-16T08:40:17Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.tattersite.com/ko/viewtopic.php?id=4968</id>
		<entry>
			<title type="html"><![CDATA[RSS 답글: Random Photo Viewer가 안되네요]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=25412#p25412"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[inureyes]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=2</uri>
			</author>
			<updated>2008-03-16T08:40:17Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=25412#p25412</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Random Photo Viewer가 안되네요]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=25394#p25394"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[ovaLife]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=2685</uri>
			</author>
			<updated>2008-03-15T17:50:58Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=25394#p25394</id>
		</entry>
</feed>
