불당님 한줄스크롤 최근게시물 섭페이지에서 오류..;; 정보
불당님 한줄스크롤 최근게시물 섭페이지에서 오류..;;본문
http://www.tvramashop.co.kr/index1.php -> 메인페이지 잘나옵니다.
http://www.tvramashop.co.kr/shop/list.php?ca_id=9940 -> 섭페이지 안나와요 ㅠㅠ
http://www.tvramashop.co.kr/bbs/board.php?bo_table=event -> 게시판에 붙어도 안나오는듯..;
스킨은 불당님 스킨이었던거 같구요.
http://www.sir.co.kr/bbs/tb.php/g4_skin/45987 -> 스킨자료실 링크
오류문구는
Fatal error: Call to undefined function: latest() in /home/hosting_users/tvramashop/www/head.php on line 91
입니다.
섭페이지와 게시판에서 어떻게 해야 제대로 출력될지 몰라서 질문 올립니다.
어찌해야 할까요? ㅠㅠ;
---------------------------------------------------- head.php -----------------------------------------------------
...
<tr>
<td class=sde style='padding:3 14 0 14;'><img src="<?=$g4[path]?>/img/i_md.gif" border=0 align="absmiddle"> <?=latest('top_scroll', scroll, 10, 30);?></td> ->>>>> 91번째줄
<td width="270" align="center"><!-- 검색 시작 -->
...
---------------------------------------------------- latest.skin.php ------------------------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<style type="text/css">
DIV,blockquote {line-height:160%;}
</style>
<script language="javascript">
<!--
//Math.random()
var scrollerheight=20; // 스크롤러의 세로
var html,total_area=0,wait_flag=true;
var bMouseOver = 1;
var scrollspeed = 1; // Scrolling 속도
var waitingtime = 4000; // 멈추는 시간
var s_tmp = 0, s_amount = 20;
var scroll_content=new Array();
var startPanel=0, n_panel=0, i=0;
function startscroll()
{ // 스크롤 시작
i=0;
for (i in scroll_content)
n_panel++;
n_panel = n_panel -1 ;
startPanel = Math.round(Math.random()*n_panel);
if(startPanel == 0)
{
i=0;
for (i in scroll_content)
insert_area(total_area, total_area++);
}
else if(startPanel == n_panel)
{
insert_area(startPanel, total_area);
total_area++;
for (i=0; i<startPanel; i++)
{
insert_area(i, total_area);
total_area++;
}
}
else if((startPanel > 0) || (startPanel < n_panel))
{
insert_area(startPanel, total_area);
total_area++;
for (i=startPanel+1; i<=n_panel; i++)
{
insert_area(i, total_area);
total_area++;
}
for (i=0; i<startPanel; i++)
{
insert_area(i, total_area);
total_area++;
}
}
window.setTimeout("scrolling()",waitingtime);
}
function scrolling(){ // 실제로 스크롤 하는 부분
if (bMouseOver && wait_flag)
{
for (i=0;i<total_area;i++){
tmp = document.getElementById('scroll_area'+i).style;
tmp.top = parseInt(tmp.top)-scrollspeed;
if (parseInt(tmp.top) <= -scrollerheight){
tmp.top = scrollerheight*(total_area-1);
}
if (s_tmp++ > (s_amount-1)*scroll_content.length){
wait_flag=false;
window.setTimeout("wait_flag=true;s_tmp=0;",waitingtime);
}
}
}
window.setTimeout("scrolling()",1);
}
function insert_area(idx, n){
html='<div style="left: 0px; width: 100%; position: absolute; top: '+(scrollerheight*n)+'px" id="scroll_area'+n+'">\n';
html+=scroll_content[idx]+'\n';
html+='</div>\n';
document.write(html);
}
// 스크롤러에 들어갈 내용들을 태그와 함께 넣어 줍니다
<?
//$rows = "10"; // 자료가 숫자보다 작으면 안됩니다. - 숫자변경은 10이상 5의 배수로 하세요
$sql = " select *
from {$g4[write_prefix]}{$bo_table}
where wr_comment >= 0
order by wr_id desc limit 0, $rows ";
$result = sql_query($sql);
$i = 0;$j = 0;
while($row = mysql_fetch_array($result)) {
$tmp_subject=stripslashes(cut_str($row[wr_subject], 100)); //제목 글자수자르기
if($row[wr_datetime] >= date("Y-m-d H:i:s", time() - 24 * 3600)) {//새글표시---제목색상변경
$subject = "{$tmp_subject}";
} else {
$subject = $tmp_subject; //새글이 아닐경우 그냥 나타남
}
$date1 = substr($row[wr_datetime],0,10); //날짜표시형식변경
$date = explode("-", $date1);
$year = $date[0];
$month = $date[1];
$day = $date[2];
$latest_date = $month."월".$day."일";
if($i==0) {
echo "scroll_content[".$j."]=\"";
}
echo "<a href='$row[wr_link1]'>{$subject}</a><br>";
$i++;
if($i==1) {
echo "\";\n\t";
$i = 0; $j++;
}
}
?>
//-->
</script>
<div style="position: absolute; width: 100%; height: 18px; overflow:hidden;" onMouseover="bMouseOver=0" onMouseout="bMouseOver=1" id="scroll_image">
<script>startscroll();</script>
</div>
http://www.tvramashop.co.kr/shop/list.php?ca_id=9940 -> 섭페이지 안나와요 ㅠㅠ
http://www.tvramashop.co.kr/bbs/board.php?bo_table=event -> 게시판에 붙어도 안나오는듯..;
스킨은 불당님 스킨이었던거 같구요.
http://www.sir.co.kr/bbs/tb.php/g4_skin/45987 -> 스킨자료실 링크
오류문구는
Fatal error: Call to undefined function: latest() in /home/hosting_users/tvramashop/www/head.php on line 91
입니다.
섭페이지와 게시판에서 어떻게 해야 제대로 출력될지 몰라서 질문 올립니다.
어찌해야 할까요? ㅠㅠ;
---------------------------------------------------- head.php -----------------------------------------------------
...
<tr>
<td class=sde style='padding:3 14 0 14;'><img src="<?=$g4[path]?>/img/i_md.gif" border=0 align="absmiddle"> <?=latest('top_scroll', scroll, 10, 30);?></td> ->>>>> 91번째줄
<td width="270" align="center"><!-- 검색 시작 -->
...
---------------------------------------------------- latest.skin.php ------------------------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<style type="text/css">
DIV,blockquote {line-height:160%;}
</style>
<script language="javascript">
<!--
//Math.random()
var scrollerheight=20; // 스크롤러의 세로
var html,total_area=0,wait_flag=true;
var bMouseOver = 1;
var scrollspeed = 1; // Scrolling 속도
var waitingtime = 4000; // 멈추는 시간
var s_tmp = 0, s_amount = 20;
var scroll_content=new Array();
var startPanel=0, n_panel=0, i=0;
function startscroll()
{ // 스크롤 시작
i=0;
for (i in scroll_content)
n_panel++;
n_panel = n_panel -1 ;
startPanel = Math.round(Math.random()*n_panel);
if(startPanel == 0)
{
i=0;
for (i in scroll_content)
insert_area(total_area, total_area++);
}
else if(startPanel == n_panel)
{
insert_area(startPanel, total_area);
total_area++;
for (i=0; i<startPanel; i++)
{
insert_area(i, total_area);
total_area++;
}
}
else if((startPanel > 0) || (startPanel < n_panel))
{
insert_area(startPanel, total_area);
total_area++;
for (i=startPanel+1; i<=n_panel; i++)
{
insert_area(i, total_area);
total_area++;
}
for (i=0; i<startPanel; i++)
{
insert_area(i, total_area);
total_area++;
}
}
window.setTimeout("scrolling()",waitingtime);
}
function scrolling(){ // 실제로 스크롤 하는 부분
if (bMouseOver && wait_flag)
{
for (i=0;i<total_area;i++){
tmp = document.getElementById('scroll_area'+i).style;
tmp.top = parseInt(tmp.top)-scrollspeed;
if (parseInt(tmp.top) <= -scrollerheight){
tmp.top = scrollerheight*(total_area-1);
}
if (s_tmp++ > (s_amount-1)*scroll_content.length){
wait_flag=false;
window.setTimeout("wait_flag=true;s_tmp=0;",waitingtime);
}
}
}
window.setTimeout("scrolling()",1);
}
function insert_area(idx, n){
html='<div style="left: 0px; width: 100%; position: absolute; top: '+(scrollerheight*n)+'px" id="scroll_area'+n+'">\n';
html+=scroll_content[idx]+'\n';
html+='</div>\n';
document.write(html);
}
// 스크롤러에 들어갈 내용들을 태그와 함께 넣어 줍니다
<?
//$rows = "10"; // 자료가 숫자보다 작으면 안됩니다. - 숫자변경은 10이상 5의 배수로 하세요
$sql = " select *
from {$g4[write_prefix]}{$bo_table}
where wr_comment >= 0
order by wr_id desc limit 0, $rows ";
$result = sql_query($sql);
$i = 0;$j = 0;
while($row = mysql_fetch_array($result)) {
$tmp_subject=stripslashes(cut_str($row[wr_subject], 100)); //제목 글자수자르기
if($row[wr_datetime] >= date("Y-m-d H:i:s", time() - 24 * 3600)) {//새글표시---제목색상변경
$subject = "{$tmp_subject}";
} else {
$subject = $tmp_subject; //새글이 아닐경우 그냥 나타남
}
$date1 = substr($row[wr_datetime],0,10); //날짜표시형식변경
$date = explode("-", $date1);
$year = $date[0];
$month = $date[1];
$day = $date[2];
$latest_date = $month."월".$day."일";
if($i==0) {
echo "scroll_content[".$j."]=\"";
}
echo "<a href='$row[wr_link1]'>{$subject}</a><br>";
$i++;
if($i==1) {
echo "\";\n\t";
$i = 0; $j++;
}
}
?>
//-->
</script>
<div style="position: absolute; width: 100%; height: 18px; overflow:hidden;" onMouseover="bMouseOver=0" onMouseout="bMouseOver=1" id="scroll_image">
<script>startscroll();</script>
</div>
댓글 전체
latest 함수의 위치를 찾아 보세요.
lib/latest.lib.php에 latest함수가 정의 되어 있습니다.
경로를 확인해서 맞춰 주시면 될 듯 합니다.
index.php화일 상단에 보시면
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
이 구문이 있습니다. lastest.lib.php가 include되어 있지요.
index.php에서만 되고 list나 board에서 않된다면
list.php와 board.php 상단에 index.php와 같이 아래 구문이 있는지 확인해 보세요.
include_once("$g4[path]/lib/latest.lib.php");
다음 글은 여러가지 에러사항에 대한 대처 방법이 나와 있습니다.
http://www.sir.co.kr/bbs/tb.php/pl_php/33/e562a558828f1aa55377164150e819f7
lib/latest.lib.php에 latest함수가 정의 되어 있습니다.
경로를 확인해서 맞춰 주시면 될 듯 합니다.
index.php화일 상단에 보시면
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
이 구문이 있습니다. lastest.lib.php가 include되어 있지요.
index.php에서만 되고 list나 board에서 않된다면
list.php와 board.php 상단에 index.php와 같이 아래 구문이 있는지 확인해 보세요.
include_once("$g4[path]/lib/latest.lib.php");
다음 글은 여러가지 에러사항에 대한 대처 방법이 나와 있습니다.
http://www.sir.co.kr/bbs/tb.php/pl_php/33/e562a558828f1aa55377164150e819f7
감사합니다^^
^^
추추