테스트 사이트 - 개발 중인 베타 버전입니다

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

· 12년 전 · 634 · 8
현재 메인페이지에 최시글 공지가 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");
?>

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

댓글 8개

12년 전
메인페이지를 올려주세요
12년 전
올렸습니다. ^^
12년 전
include_once("./_head_index.php");
이부분이 메인페이지 헤더인가요?? body나오는 부분은 어디죠??
12년 전
현재 /_head_index.php의 소스는 다음과 같구요, head_index.php는 균이님 답글에 달린 소스와 같습니다.

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/head_index.php");
?>
/_head_index.php에서 불러오는 메인 페이지 화일이 잇어야 답변 가능..
12년 전
- 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>
12년 전
<tr>
<td align="right"><? echo latest("photo2", "photo2", 3, 36); ?> </td>
</tr>

이 부분 지우면 photo2는 사라지겠네요
12년 전
아... 불량학생님은 천사에요.ㅠ
해결되었어요. 너무너무 감사합니당.ㅠㅠㅠㅜ

게시글 목록

번호 제목
284438
284437
284435
284430
284420
284417
284409
284401
284399
284397
284380
284378
284371
284370
284366
284364
284360
284357
284355
284354