메인홈페이지에 관해서 질문드려요. > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

메인홈페이지에 관해서 질문드려요. 정보

메인홈페이지에 관해서 질문드려요.

본문

현재 메인페이지에 최시글 공지가 3개가 배치가 되었는데요..

이중에 photo2 를 제거 하고 싶은데요... 소스에서 photo2를 지칭하는것을 몰라서 헤메고 있습니다.

소스는 아래와 같습니다.

http://dongpilcom.dothome.co.kr/


- 소스


<?
if (!defined('_GNUBOARD_')) exit;

// 최신글 추출
function latest($skin_dir="", $bo_table, $rows=10, $subject_len=40, $options="")
{
    global $g4;

    if ($skin_dir)
        $latest_skin_path = "$g4[path]/skin/latest/$skin_dir";
    else
        $latest_skin_path = "$g4[path]/skin/latest/basic";

    $list = array();

    $sql = " select * from $g4[board_table] where bo_table = '$bo_table'";
    $board = sql_fetch($sql);

    $tmp_write_table = $g4['write_prefix'] . $bo_table; // 게시판 테이블 전체이름
    //$sql = " select * from $tmp_write_table where wr_is_comment = 0 order by wr_id desc limit 0, $rows ";
    // 위의 코드 보다 속도가 빠름
    $sql = " select * from $tmp_write_table where wr_is_comment = 0 order by wr_num limit 0, $rows ";
    //explain($sql);
    $result = sql_query($sql);
    for ($i=0; $row = sql_fetch_array($result); $i++)
        $list[$i] = get_list($row, $board, $latest_skin_path, $subject_len);
   
    ob_start();
    include "$latest_skin_path/latest.skin.php";
    $content = ob_get_contents();
    ob_end_clean();

    return $content;
}
?>


고수님들 도움 부탁드립니다.ㅠ


- 메인 페이지 소스 입니다.

<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");

$g4['title'] = "";
include_once("./_head_index.php");
?>



<?
include_once("./_tail.php");
?>

댓글 전체

현재 /_head_index.php의 소스는 다음과 같구요, head_index.php는 균이님 답글에 달린 소스와 같습니다.

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/head_index.php");
?>
- head_index.php 파일 소스 입니다.

<?
if (!defined("_GNUBOARD_")) exit; //    ?

include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");

//print_r2(get_defined_constants());

//  ? ?  ? ??.
// ,  ? ??  ??.

$table_width = 1004;
?>

<!--  ?  ?  -->
<table width="888" cellspacing="0" cellpadding="0" align="center">
<tr>
    <!-- ? -->
    <td width="322" height="57"><a href="<?=$g4['path']?>/"><img src="<?=$g4['path']?>/img/logo.jpg" border="0"></a></td>
    <td width="429">&nbsp;</td>
    <td width="200" align="right"><?=outlogin("basic"); // ? α ?></td>
  </tr>
</table>
<!--  ?  ?  -->

<!-- ?  -->
<table width="1040" height="41" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="32" align="right">&nbsp;</td>
<td width="19"></td>
<td width="157" align="center"><a href="<?=$g4['path']?>/Members_Professor.php"><img src="<?=$g4['path']?>/img/menu_01.gif" border="0" /></a></td>
<td width="36" align="center"><img src="<?=$g4['path']?>/img/menu_line.gif" border="0" /></td>
<td width="157" align="center"><a href="<?=$g4['path']?>/bbs/board.php?bo_table=Research"><img src="<?=$g4['path']?>/img/menu_02.gif" border="0" /></a></td>
<td width="36" align="center"><img src="<?=$g4['path']?>/img/menu_line.gif" border="0" /></td>
<td width="157" align="center"><a href="<?=$g4['path']?>/bbs/board.php?bo_table=Publications"><img src="<?=$g4['path']?>/img/menu_03.gif" border="0" /></a></td>
<td width="36" align="center"><img src="<?=$g4['path']?>/img/menu_line.gif" border="0" /></td>
<td width="157" align="center"><a href="<?=$g4['path']?>/bbs/board.php?bo_table=Teaching"><img src="<?=$g4['path']?>/img/menu_04.gif" border="0" /></a></td>
<td width="36" align="center"><img src="<?=$g4['path']?>/img/menu_line.gif" border="0" /></td>
<td width="157" align="center"><a href="<?=$g4['path']?>/bbs/board.php?bo_table=Community"><img src="<?=$g4['path']?>/img/menu_05.gif" border="0" /></a></td>
<td width="28" align="center"></td>
<td width="32">&nbsp;</td>
</tr>
</table>
<!-- ?  -->
<div style='height:10px;'></div>
<tr><td width=43></td>
    <!--  ? -->
  <td width=220 valign=top>
  </td>


    <td width=18></td>
    <!-- ? -->
    <td width=683 valign=top><table width="888" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td valign="top" align="center"><img src="<?=$g4['path']?>/img/img_index.jpg" /></td>
      </tr>
      <tr>
        <td valign="top">&nbsp;</td>
      </tr>
      <tr>
        <td height="214" valign="top"><table width="90%" align="center" cellpadding="2" cellspacing="0">
          <tr>
            <td width="426"  align="left" valign="top"><?=latest("basic", "guest", 5, 56); ?></td>
            <td width="21"></td>
            <td width="425" align="right" valign="top"><table align="right" cellpadding="0" cellspacing="0">
                <tr>
                  <td align="right"><? echo latest("photo", "photo", 3, 36); ?> </td>
                </tr>
                <tr>
                  <td></td>
                </tr>
              </table>
                <br /></td>
          </tr>
          <tr>
          <td  align="left" valign="top">&nbsp;</td>
          <td></td>
          <td align="right" valign="top"><table align="right" cellpadding="0" cellspacing="0">
<tr>
<td align="right"><? echo latest("photo2", "photo2", 3, 36); ?> </td>
</tr>
<tr>
<td></td>
</tr>
</table></td>
          </tr>
        </table></td>
      </tr>
     
     
    </table>
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT