도와주세요~ 최신글 갤러리 때문에...... > 그누3질답

그누3질답

도와주세요~ 최신글 갤러리 때문에...... 정보

그누보드 도와주세요~ 최신글 갤러리 때문에......

본문

홈페이지 메인 최신글에
갤러리를 하나 만들었는데
스킨두 설치하고 계시판에서는 잘나오는데여
최신글에 적용시키려니 짜꾸에러만 나서욥
lib/latest.skin.php를 변경하라는데..(다시한번 찾아보니 제 폴더에 업더군여 그래서 그냥 lib폴더에
넣었는데 그래도 에러가 나는데 어떻해야하나엽?
latest.skin.php가 없었는데 lib폴더에 들어가는게 맞는지엽?
정확히 어떻게 고쳐야하는지 잘모르겠고요
다른분이 올리신 latest.skin.php를 다운받아서
넣어보니 제홈피에 않맞는지 메인전체가 깨져서 나오는데..
어떻게 해야하나엽?
제기존의 메인에 최신글 갤러리 나올수있게 수정하는 방법좀 알려주세여~
제 latest.lib,php 의 내용입니다.
아래는 latest.skin.php 이고욥
그아래는 적용시에 에러메세지입니다.

<<<<<<<<<<<latest.lib,php >>>>>>>>>>>>>>>..
<?
if (defined(__FILE__)) return;
define(__FILE__, TRUE);

//==============================================================================
//  최신글 관련 함수
//==============================================================================


// 최신글 추출
function latest($skin_dir='', $bo_table, $rows=10, $len=40)
{
    global $latest_skin, $cfg;

    $tmp_latest_skin = $latest_skin;

    // 스킨디렉토리값이 넘어왔다면
    if ($skin_dir) {
        $latest_skin = "./bbs/skin/latest/$skin_dir";
    }

    $sql = " select * from $cfg[table_board] where bo_table = '$bo_table' ";
    $bo = sql_fetch($sql);
    $bo_subject = $bo[bo_subject];

    $sql = " select *
              from {$cfg[write_table_prefix]}{$bo_table}
              where wr_comment = 0
              order by wr_id desc limit 0, $rows ";
    $result = sql_query($sql);
    for ($i=0; $row = mysql_fetch_array($result); $i++) {
        $list[$i] = $row;

        $list[$i][href] = "./?doc=bbs/gnuboard.php&bo_table=$bo_table&wr_id=$row[wr_id]";

        // 코멘트 카운트
        $list[$i][commentcnt] = "";
        if ($row[wr_commentcnt] > 0) {
            $list[$i][commentcnt] = "($row[wr_commentcnt])";
        }

        $list[$i][name] = gblayer($row[mb_id], cut_str($row[wr_name],10), $row[wr_email], $row[wr_homepage]);
        $list[$i][subject] = conv_subject($row[wr_subject], $len,"…");
        $list[$i][content] = get_text($row[wr_content]);
        $list[$i][date] = substr($row[wr_datetime],2,8);

        $list[$i][icon_new] = "";
        if ($row[wr_datetime] >= date("Y-m-d H:i:s", time() - $bo[bo_new] * 3600)) {
            $list[$i][icon_new] = "<img src='$latest_skin/icon_new.gif' align=absmiddle> ";
        }

        for ($k=1; $k<=$cfg[file_count]; $k++) {
            if (@preg_match($cfg[image_extension], $row["wr_file".$k])) {
                $list[$i]["file_image".$k] = "./data/file/$bo_table/" . $row["wr_file".$k];
            }
        }

        for ($k=1; $k<=$cfg[link_count]; $k++) {
            if ($row["wr_link".$k]) {
                $link[$i]["link".$k] = set_http(get_text(cut_str($row["wr_link".$k], 255)));
                $link[$i]["link_href".$k] = "./?doc=bbs/gblink.php&$qstr&wr_id=$row[wr_id]&index=$k";
            }
        }
    }
    mysql_free_result($result);
   
    include "$latest_skin/latest.skin.php";

    $latest_skin = $tmp_latest_skin;
}
?>

<<<<<<<<<<<<<<<<<latest.skin,php>>>>>>>>>>>>>>>>>>>
<?
$mod = 3;  // 한행당 몇개씩?
$image_width  = 80; // 이미지 폭
$image_height = 60; // 이미지 높이
?>

<table width=100% cellpadding=0 cellspacing=1>
    <tr><td colspan=<?=$mod-1?> bgcolor=#FFFFFF  class=t_latest>&nbsp;&nbsp;<B><?=$bo_subject?></B></td><td align=right><a href='<?="./?doc=$cfg[bbs_dir]/gnuboard.php&bo_table=$bo_table"?>'><img src='<?="$latest_skin/icon_more.gif"?>' border=0></a></td></tr>
    <tr><td colspan=<?=$mod?> height=2 bgcolor=#E2E2E2></td></tr>
    <tr><td colspan=<?=$mod?> height=5></td></tr>
<tr>
<? for ($i=0; $i<count($list); $i++) { ?>
    <?
    if (!file_exists($list[$i][file_image1])) { $list[$i][file_image1] = "$latest_skin/noimage.gif"; }
    if ($i>0 && $i%$mod==0) { echo "</tr><tr>"; }
    ?>
        <td valign=top align=center>
            <table cellpadding=4 border=0>
            <tr>
                <td align=center><a href='<?=$list[$i][href]?>'><img src='<?=$list[$i][file_image1]?>' width='<?=$image_width?>' height='<?=$image_height?>' border=1 alt='<?=$list[$i][wr_subject]?>' style='border-color:#CCCCCC;'></a></td>
            </tr>
            <tr>
                <td align=center width='<?=$image_width?>'><a href='<?=$list[$i][href]?>'><?=$list[$i][subject]?><?=$list[$i][commentcnt]?></a><?=$list[$i][icon_new]?></td>
            </tr>
            </table>
        </td>
<? } ?>

<?
// td(열)의 나머지 갯수를 구한후 빈 td(열)을 출력한다.
$nam = ($i%$mod);
for ($k=$nam; $k<$mod && $nam; $k++) {
    echo "<td>&nbsp;</td>";
}
?>

<? if (count($list) == 0) { echo "<td colspan=$mod align=center>게시물이 없습니다.</td>"; } ?>
</tr>
</table>

<<<<<<<<<에러 메세지>>>>>>>>>>>>>>>.....
select * from gb_write_bast_gallery where wr_comment = 0 order by wr_id desc limit 0, 1

1146 : Table 'kimsdesign.gb_write_bast_gallery' doesn't exist

꼬옥좀 해결좀 해주세요

행복하시고 즐거운 하루되세엽~
  • 복사

댓글 전체

에러메세지가 잘못됬네여 요고욥


Warning: latest(./bbs/skin/latest/best_gallery/latest.skin.php) [function.latest]: failed to create stream: No such file or directory in /home/hosting_users/kimsdesign/www/lib/latest.lib.php on line 67

Warning: latest() [function.latest]: Failed opening './bbs/skin/latest/best_gallery/latest.skin.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/kimsdesign/www/lib/latest.lib.php on line 67
© SIRSOFT
현재 페이지 제일 처음으로