<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[TNF : Tatter Network Foundation forum - TT 1.3->TC 1.7로 업그레이드 후 카운터 오류 관련 질문]]></title>
		<link>http://forum.tattersite.com/ko/viewtopic.php?id=7643</link>
		<description><![CDATA[TT 1.3->TC 1.7로 업그레이드 후 카운터 오류 관련 질문 의 최근 RSS 글들.]]></description>
		<lastBuildDate>Tue, 20 Jan 2009 16:52:33 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[RSS 답글: TT 1.3->TC 1.7로 업그레이드 후 카운터 오류 관련 질문]]></title>
			<link>http://forum.tattersite.com/ko/viewtopic.php?pid=33356#p33356</link>
			<description><![CDATA[<p>해당 카운터 프로그램하고 새 버전하고 맞지 않아서 그런 것 같습니다. 카운터 프로그램을 업데이트하시거나 별도의 이미지 카운터 플러그인을 찾아 쓰시면 어떨까 싶습니다.</p>]]></description>
			<author><![CDATA[null@example.com (daybreaker)]]></author>
			<pubDate>Tue, 20 Jan 2009 16:52:33 +0000</pubDate>
			<guid>http://forum.tattersite.com/ko/viewtopic.php?pid=33356#p33356</guid>
		</item>
		<item>
			<title><![CDATA[TT 1.3->TC 1.7로 업그레이드 후 카운터 오류 관련 질문]]></title>
			<link>http://forum.tattersite.com/ko/viewtopic.php?pid=33341#p33341</link>
			<description><![CDATA[<p>안녕하세요,<br />금일 오전 테터툴즈를 드디어 텍스트큐브로 업그레이드하였습니다.</p><p>전체적으로 큰 이상은 없어보이나 기존에 사용하던 스킨(슈퍼스킨)의 카운터 부분이 오류가 나는데요..<br />이 주소(http://chocobox.net/tt/)의 블로그 오른쪽 하단을 보시면 카운터가 깨져나오는 것을 알 수 있는데요,</p><p>혹시 수정방법 알고계시면 귀띰 부탁 드립니다.</p><p>기본적인 html정도만 알고 php는 전혀 모르다보니 갑자기 왜 깨져서 나오는지 모르겠네요..</p><p>감사합니다.</p><br /><p>참고로 연결된 스킨의 카운터php 내용은 아래와 같습니다..</p><p>------------------------------------------------<br />&lt;?<br />include (&quot;src/jpgraph.php&quot;);<br />include (&quot;src/jpgraph_scatter.php&quot;);<br />include (&quot;src/jpgraph_line.php&quot;);<br />include (&quot;../../../config.php&quot;);</p><p>$host = $database[&#039;server&#039;];<br />$db = $database[&#039;database&#039;];<br />$user = $database[&#039;username&#039;];<br />$pass = $database[&#039;password&#039;];<br />$dbid = $database[&#039;prefix&#039;];<br />$table = $dbid.&quot;DailyStatistics&quot;;</p><p>// 접속하고, 데이터베이스를 선택<br />$conn = mysql_connect($host, $user, $pass) or die(&quot;접속할 수 없습니다 : &quot; . mysql_error());<br />mysql_select_db($db) or die(&quot;데이터베이스를 선택할 수 없습니다.&quot;);</p><p>// 카운터를 표시할 블로그 선택<br />if($blogname == &quot;&quot;) {<br />&nbsp; &nbsp; $owner = 1;<br />}<br />else {<br />&nbsp; &nbsp; $t = $dbid.&quot;BlogSettings&quot;;<br />&nbsp; &nbsp; $q = &quot;select owner from $t where name = &#039;$blogname&#039;&quot;;<br />&nbsp; &nbsp; $r = mysql_query($q, $conn) or die(&quot;쿼리 실패 : &quot; . mysql_error());<br />&nbsp; &nbsp; $a = mysql_fetch_array($r);<br />&nbsp; &nbsp; $owner = $a[&quot;owner&quot;];<br />}</p><p>// 최근 일주일 날짜 구하기<br />$now_date = strtotime(&quot;now&quot;);<br />$old_date = strtotime(&quot;-1 week&quot;);<br />$now_day = date(&#039;Ymd&#039;, $now_date);<br />$old_day = date(&#039;Ymd&#039;, $old_date);</p><p>// SQL 쿼리 실행하기<br />$query = &quot;select date, visits from $table where date between $old_day and $now_day and owner = $owner order by date asc&quot;;<br />$result = mysql_query($query, $conn) or die(&quot;쿼리 실패 : &quot; . mysql_error());</p><p>// Y축 배열<br />$row = mysql_fetch_array($result);<br />for ($i = 7; $i &gt;= 0; $i--) {<br />&nbsp; &nbsp; $week = strtotime(&quot;-&quot;.$i.&quot; day&quot;);<br />&nbsp; &nbsp; $xdata[] = date(&#039;d&#039;, $week);<br />&nbsp; &nbsp; if (date(&#039;d&#039;, $week) != substr($row[&quot;date&quot;], -2)) {<br />&nbsp; &nbsp; &nbsp; &nbsp; $ydata[] = 0;<br />&nbsp; &nbsp; } else {<br />&nbsp; &nbsp; &nbsp; &nbsp; $ydata[] = $row[&quot;visits&quot;];<br />&nbsp; &nbsp; &nbsp; &nbsp; $row = mysql_fetch_array($result);<br />&nbsp; &nbsp; }<br />}</p><p>// Create the graph. These two calls are always required<br />$graph = new Graph(175,120,&quot;auto&quot;); //그래프의 크기를 지정<br />$graph-&gt;img-&gt;SetAntiAliasing();<br />$graph-&gt;SetMargin(0,10,5,0);<br />$graph-&gt;SetFrame(false);<br />$graph-&gt;SetMarginColor(&#039;white&#039;);<br />$graph-&gt;SetScale(&quot;textlin&quot;);<br />$graph-&gt;xaxis-&gt;SetTickLabels($xdata);<br />$graph-&gt;xaxis-&gt;SetColor(&quot;gray7&quot;);<br />$graph-&gt;xaxis-&gt;title-&gt;Set(date(&#039;Y-m-d h:i:s&#039;, $now_date));<br />$graph-&gt;xaxis-&gt;title-&gt;SetColor(&quot;gray7&quot;);<br />$graph-&gt;xaxis-&gt;title-&gt;SetFont(FF_FONT0);<br />$graph-&gt;xaxis-&gt;SetFont(FF_FONT0);<br />$graph-&gt;xaxis-&gt;HideTicks();<br />$graph-&gt;yaxis-&gt;title-&gt;Set(&quot;Hits&quot;);<br />$graph-&gt;yaxis-&gt;title-&gt;SetColor(&quot;gray7&quot;);<br />$graph-&gt;yaxis-&gt;title-&gt;SetFont(FF_FONT0);<br />$graph-&gt;yaxis-&gt;HideZeroLabel();<br />$graph-&gt;ygrid-&gt;SetFill(true,&#039;white&#039;,&#039;#F7F7F7&#039;);<br />$graph-&gt;xgrid-&gt;Show();<br />$graph-&gt;yaxis-&gt;SetColor(&quot;white&quot;);<br />$graph-&gt;yaxis-&gt;SetFont(FF_FONT0);</p><p>// Create the linear plot<br />$lineplot = new LinePlot($ydata);<br />$lineplot-&gt;SetColor(&quot;gray7&quot;);<br />$lineplot-&gt;value-&gt;SetColor(&quot;gray5&quot;);<br />$lineplot-&gt;value-&gt;Show();<br />$lineplot-&gt;value-&gt;SetFormat(&quot;%d&quot;);<br />$lineplot-&gt;value-&gt;SetFont(FF_FONT0);<br />$lineplot-&gt;value-&gt;SetAlign(&quot;left&quot;);<br />$lineplot-&gt;mark-&gt;SetColor(&quot;red&quot;);<br />$lineplot-&gt;mark-&gt;SetWidth(1);<br />$lineplot-&gt;mark-&gt;SetTYPE(MARK_FILLEDCIRCLE,1);<br />$lineplot-&gt;SetCenter();</p><p>// Add the plot to the graph<br />$graph-&gt;Add($lineplot);</p><p>// Display the graph<br />$graph-&gt;Stroke();</p><p>// 결과셋 해제하기<br />mysql_free_result($result);</p><p>// 접속 종료<br />mysql_close($conn);<br />?&gt;</p>]]></description>
			<author><![CDATA[null@example.com (chocobox)]]></author>
			<pubDate>Tue, 20 Jan 2009 04:13:08 +0000</pubDate>
			<guid>http://forum.tattersite.com/ko/viewtopic.php?pid=33341#p33341</guid>
		</item>
	</channel>
</rss>
