스킨설치시 오류내용 입니다. 확인 부탁드립니다. 정보
스킨설치시 오류내용 입니다. 확인 부탁드립니다.
본문
스킨을 새로 올렸습니다.
----------------------------------- 불러오니 오류가 생겼습니다..
Warning: latest(./skin/latest/coverstory/latest.skin.php): failed to open stream: No such file or directory in /home/hosting_users/giper6000/www/lib/latest.lib.php on line 29
Warning: latest(./skin/latest/coverstory/latest.skin.php): failed to open stream: No such file or directory in /home/hosting_users/giper6000/www/lib/latest.lib.php on line 29
Warning: latest(): Failed opening './skin/latest/coverstory/latest.skin.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/giper6000/www/lib/latest.lib.php on line 29
-------------------------------
19번째 줄은.. include "$latest_skin_path/latest.skin.php"; 입니다.
------------------------------------------------
새로붙인 스킨의 latest.skin.php 의 내용은
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$overlap_speed = "3000";
$blink_speed = "600";
$swf_width = "519"; // 플래시 파일을 업로드시 수동으로 싸이즈 입력 = 넓이
$swf_height = "139"; // 플래시 파일을 업로드시 수동으로 싸이즈 입력 = 높이
?>
<script language="JavaScript">
<!--
function doBlink() {
var blink = document.all.tags("BLINK")
for (var i=0; i < blink.length; i++)
blink[i].style.visibility = blink[i].style.visibility == "" ? "hidden" : ""
}
function startBlink() {
if (document.all)
setInterval("doBlink()",<?=$blink_speed?>)
}
window.onload = startBlink;
-->
</script>
<SCRIPT type=text/javascript>
<!--
old_debate='1';
function Comeon(objid){
document.getElementById("debate"+old_debate).style.display="none";
document.getElementById("debate"+old_debate+"#1").style.display="";
document.getElementById("debate"+objid+"#1").style.display="none";
document.getElementById("debate"+objid).style.display="";
document.getElementById("debate_content"+old_debate).style.display="none";
document.getElementById("debate_content"+objid).style.display="";
old_debate=objid;
}
var objid = 1;
var interval_best;
function best_change()
{
if( objid == <?=$rows?> ) // 오버랩되는 갯수
objid = 1;
else
objid++;
Comeon(objid);
}
function setInterval_best()
{
interval_best = setInterval("best_change()",<?=$overlap_speed?>);//속도조절
}
function clearInterval_best()
{
clearInterval(interval_best);
}
setInterval_best();
//-->
</SCRIPT>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="5"><img src="<?=$latest_skin_path?>/img/box_top_left.gif" width="5" height="5"></td>
<td align="center" background="<?=$latest_skin_path?>/img/box_top_center.gif"><img src="<?=$latest_skin_path?>/img/box_top_center.gif" width="1" height="5"></td>
<td width="5"><img src="<?=$latest_skin_path?>/img/box_top_right.gif" width="5" height="5"></td>
</tr>
<tr>
<td background="<?=$latest_skin_path?>/img/box_middle_left.gif"><img src="<?=$latest_skin_path?>/img/box_middle_left.gif" width="5" height="1"></td>
<td style="padding:0 1 0 1px;">
<? for ($i=0; $i<count($list); $i++) {
$title = get_text($list[$i][wr_subject]);
$content = nl2br($list[$i][wr_content]);
$img = "$g4[path]/data/file/$bo_table/".urlencode($list[$i][file][0][file]);
$img_bg = "$g4[path]/data/file/$bo_table/".urlencode($list[$i][file][1][file]);
if ($list[$i][wr_link1]) { $link_all = "<a href='$g4[bbs_path]/board.php?bo_table={$list[$i][wr_link1]}' target='{$list[$i][wr_8]}'>"; }
else { $link_all = "<a href='{$list[$i][wr_link2]}' target='{$list[$i][wr_9]}'>"; }
$j = $i + 1;
if ($j == "1") {
echo "<DIV id=debate_content$j onmouseover=clearInterval_best() onmouseout=setInterval_best()>"; }
else { echo "<DIV id=debate_content$j onmouseover=clearInterval_best() onmouseout=setInterval_best() style='DISPLAY: none;'>\n"; }
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="0" align="right"><div id="text1" style="position:absolute; z-index:1; width: 0;">
<div id="text2" style="position:relative; left:-320px; top:20px; z-index:1; width: 0;">
<table width="300" border="0" cellpadding="0" cellspacing="0">
<tr>
<td> <table width="" border="0" align="right" cellpadding="0" cellspacing="0">
<td height="40" align="right" style="font-size:<?=$list[$i][wr_2]?>px; font-weight:bold;">
<?=$link_all?>
<span style="color: <?=$list[$i][wr_1]?>; font-size:<?=$list[$i][wr_2]?>px; font-weight:bold; font-family:<?=$list[$i][wr_10]?>; ">
<? if($list[$i][wr_3] == "1") { echo "<blink>"; } ?>
<?=$list[$i][wr_subject]?>
<? if($list[$i][wr_3] == "1") { echo "</blink>"; } ?>
</span></a></td>
</tr>
<tr>
<td align="right"><?=$link_all?><?=$list[$i][wr_content];?></a>
</tr>
<tr>
<td height="30" align="right"><img src="<?=$latest_skin_path?>/img/dot.gif" width="8" height="11" hspace="2" align="absmiddle">
<?=$link_all?>
<span style="color: <?=$list[$i][wr_5]?>; font-size:<?=$list[$i][wr_6]?>px; font-weight:bold; <? if($list[$i][wr_7] == "1") { echo "text-decoration:underline;"; } ?>">
<?=$list[$i][wr_4]?>
</span></a></td>
</tr>
</table></td>
</tr>
</table>
</div>
</div></td>
</tr>
<tr><td background="<?=$img_bg?>">
<? switch(array_pop(explode(".",$img))) {
case "gif" : echo "{$link_all}<img src='{$img}' border='0'></a>"; break;
case "jpg" : echo "{$link_all}<img src='{$img}' border='0'></a>"; break;
case "png" : echo "{$link_all}<img src='{$img}' border='0'></a>"; break;
case "swf" : echo "<textarea id=swf_cover_img style='display:none;' rows='0' cols='0'>
<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='{$swf_width}' height='{$swf_height}'>
<param name='movie' value='{$img}'>
<param name='quality' value='high'>
<param name='wmode' value='transparent'>
<embed src='{$img}' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='{$swf_width}' height='{$swf_height}'>
</embed></object></textarea><script>iePass('swf_cover_img')</script>"; break;
} ?></td>
</tr>
</table>
<? echo "</DIV>\n\n"; } ?>
<? if (count($list) == 0) { echo "<table width='100%'><tr><td height='48' align='center' class='no_list'>커버스토리 게시물이 없습니다.</td></tr></table>"; } ?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="right"><div id="button1" style="position:absolute; z-index:1; width: 0;">
<div id="button2" style="position:relative; left:-230px; top:-25px; z-index:1; width: 205;">
<table width="" border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<? for ($i=0; $i<count($list); $i++) {
$k = $i + 1;
?>
<td><a href="javascript://" onmouseover="javascript:Comeon('<?=$k?>')">
<img src="<?=$latest_skin_path?>/img/<?=$k?>_on.gif" width="33" height="11" hspace="2" border="0" id="debate<?=$k?>" onmouseover="clearInterval_best()" onmouseout="setInterval_best()" <? if($k == "1") { echo ""; } else { echo "style='DISPLAY: none;' "; } ?>>
<img src="<?=$latest_skin_path?>/img/<?=$k?>.gif" width="33" height="11" hspace="2" border="0" id="debate<?=$k?>#1" <? if($k == "1") { echo "style='DISPLAY: none;'"; } else { echo ""; } ?>></a>
</td>
<? } ?>
</tr>
</table>
</div>
</div></td>
</tr>
</table>
</td>
<td background="<?=$latest_skin_path?>/img/box_middle_right.gif"><img src="<?=$latest_skin_path?>/img/box_middle_right.gif" width="5" height="1"></td>
</tr>
<tr>
<td><img src="<?=$latest_skin_path?>/img/box_bottom_left.gif" width="5" height="5"></td>
<td align="center" background="<?=$latest_skin_path?>/img/box_bottom_center.gif"><img src="<?=$latest_skin_path?>/img/box_bottom_center.gif" width="1" height="5"></td>
<td><img src="<?=$latest_skin_path?>/img/box_bottom_right.gif" width="5" height="5"></td>
</tr>
</table>
----------------------------------------------------- 입니다
어떻게 뭐가 잘못됏다는 건지... 잘모르겠습니다... 복사 붙이기만 할줄아는 초보입니다
답변주시면 감사 하겠습니다.
댓글 전체
저런 경우는 대부분 경로를 정상적으로 안 적어 줘서 그런 겁니다.
오류가 나오네요.. ㅡㅡ;
해결은 못했지만... 답변 감사합니다...
제목과 내용이 쭉 로딩 되면서 자동으로 넘어가는 스킨이네요 ^^
/skin/latest/스킨폴더이름/ 여기에 작업하신 latest.skin.php가 있어야 합니다. ^^
예를들어서 스킨디렉토리인 /skin/latest/test/ 디렉토리에 latest.skin.php 파일이
있다고 가정한다면 최신글 보이는 페이지가 index.php 라고 합시다.
index.php 에
<?=latest("스킨디렉토리이름", "게시판이름", 보여질최신글갯수, 글자수, "");?>
의 형태로 최신글을 불러오는데 이 함수는 /lib/latest.lib.php 에 정의 되어 있죠.
여기에 스킨디렉토리이름이 없으면 /skin/latest/basic/latest.skin.php 를 인클루드 하구요
만약 스킨디렉토리 이름이 있으면 /skin/latest/스틴데릭토리이름/lastest.skin.php 가
인클루드됩니다.
에러의 내용을 봐서는 /lib/latest.lib.php 는 해당페이지에서 잘 인클루드 되었구요
스킨폴더 이름을 잘못 넣으신것 같습니다. ^^
<?=latest("스킨폴더이름", "게시판이름", 보여질최신글갯수, 글자수, "");?>
이부분의 스킨폴더이름을 다시 한번 확인해 보시기 바랍니다.
위의 예처럼 될려면
<?=latest("test", "freeboard", 5, 30, "");?>
이렇게 하시면 되겠죠? ^^ 성공하세요.. ^^
감사 감사... 그런데...
<?=latest("latest이름", "게시판이름", 보여질최신글갯수, 글자수, "");?> 이렇게 해줫어요...
스킨 이름이 아니고..그랫더니 성공 ^^
아 근데... 포인트가.. ;;
다른분에게 갔네요... ^^ 다음에... 포인트 잔득 모아서 글 또 드릴께요
감사합니다.