안녕하세요,
금일 오전 테터툴즈를 드디어 텍스트큐브로 업그레이드하였습니다.
전체적으로 큰 이상은 없어보이나 기존에 사용하던 스킨(슈퍼스킨)의 카운터 부분이 오류가 나는데요..
이 주소(http://chocobox.net/tt/)의 블로그 오른쪽 하단을 보시면 카운터가 깨져나오는 것을 알 수 있는데요,
혹시 수정방법 알고계시면 귀띰 부탁 드립니다.
기본적인 html정도만 알고 php는 전혀 모르다보니 갑자기 왜 깨져서 나오는지 모르겠네요..
감사합니다.
참고로 연결된 스킨의 카운터php 내용은 아래와 같습니다..
------------------------------------------------
<?
include ("src/jpgraph.php");
include ("src/jpgraph_scatter.php");
include ("src/jpgraph_line.php");
include ("../../../config.php");
$host = $database['server'];
$db = $database['database'];
$user = $database['username'];
$pass = $database['password'];
$dbid = $database['prefix'];
$table = $dbid."DailyStatistics";
// 접속하고, 데이터베이스를 선택
$conn = mysql_connect($host, $user, $pass) or die("접속할 수 없습니다 : " . mysql_error());
mysql_select_db($db) or die("데이터베이스를 선택할 수 없습니다.");
// 카운터를 표시할 블로그 선택
if($blogname == "") {
$owner = 1;
}
else {
$t = $dbid."BlogSettings";
$q = "select owner from $t where name = '$blogname'";
$r = mysql_query($q, $conn) or die("쿼리 실패 : " . mysql_error());
$a = mysql_fetch_array($r);
$owner = $a["owner"];
}
// 최근 일주일 날짜 구하기
$now_date = strtotime("now");
$old_date = strtotime("-1 week");
$now_day = date('Ymd', $now_date);
$old_day = date('Ymd', $old_date);
// SQL 쿼리 실행하기
$query = "select date, visits from $table where date between $old_day and $now_day and owner = $owner order by date asc";
$result = mysql_query($query, $conn) or die("쿼리 실패 : " . mysql_error());
// Y축 배열
$row = mysql_fetch_array($result);
for ($i = 7; $i >= 0; $i--) {
$week = strtotime("-".$i." day");
$xdata[] = date('d', $week);
if (date('d', $week) != substr($row["date"], -2)) {
$ydata[] = 0;
} else {
$ydata[] = $row["visits"];
$row = mysql_fetch_array($result);
}
}
// Create the graph. These two calls are always required
$graph = new Graph(175,120,"auto"); //그래프의 크기를 지정
$graph->img->SetAntiAliasing();
$graph->SetMargin(0,10,5,0);
$graph->SetFrame(false);
$graph->SetMarginColor('white');
$graph->SetScale("textlin");
$graph->xaxis->SetTickLabels($xdata);
$graph->xaxis->SetColor("gray7");
$graph->xaxis->title->Set(date('Y-m-d h:i:s', $now_date));
$graph->xaxis->title->SetColor("gray7");
$graph->xaxis->title->SetFont(FF_FONT0);
$graph->xaxis->SetFont(FF_FONT0);
$graph->xaxis->HideTicks();
$graph->yaxis->title->Set("Hits");
$graph->yaxis->title->SetColor("gray7");
$graph->yaxis->title->SetFont(FF_FONT0);
$graph->yaxis->HideZeroLabel();
$graph->ygrid->SetFill(true,'white','#F7F7F7');
$graph->xgrid->Show();
$graph->yaxis->SetColor("white");
$graph->yaxis->SetFont(FF_FONT0);
// Create the linear plot
$lineplot = new LinePlot($ydata);
$lineplot->SetColor("gray7");
$lineplot->value->SetColor("gray5");
$lineplot->value->Show();
$lineplot->value->SetFormat("%d");
$lineplot->value->SetFont(FF_FONT0);
$lineplot->value->SetAlign("left");
$lineplot->mark->SetColor("red");
$lineplot->mark->SetWidth(1);
$lineplot->mark->SetTYPE(MARK_FILLEDCIRCLE,1);
$lineplot->SetCenter();
// Add the plot to the graph
$graph->Add($lineplot);
// Display the graph
$graph->Stroke();
// 결과셋 해제하기
mysql_free_result($result);
// 접속 종료
mysql_close($conn);
?>