왕초보 질문입니다 ㅜㅜ 정보
왕초보 질문입니다 ㅜㅜ본문
여기서요.
로그인 안하면 최신글이 출력되는데요.
로그인만 하면 최신글이 안나옴니다.
그리구요. 새소식을 누르면 정보 수정인데요...
이건 홈페이지 중간에 딱 오는데...
커뮤니티를 누르면 게시판이 나오거든요
그런데 홈페이지 중간에 안와요.
댓글 전체
저기요....소스도 올려보세요~~
그리고 테스트 아이디도 하나 올려보고요^^
그리고 테스트 아이디도 하나 올려보고요^^
테스트 아뒤는 test 비번 test 입니다.
head.php하고index.php소스 올려보세요^^
첫번째 질문은 소스를 봐야알것같고
두번째 질문은 커뮤니티 게시판관리에서 상단파일경로 그부분에 ../head.php라고 적고요
하단파일경로 부분에 ../tail.php적으시면 가운데로 들어올겁니다^^
두번째 질문은 커뮤니티 게시판관리에서 상단파일경로 그부분에 ../head.php라고 적고요
하단파일경로 부분에 ../tail.php적으시면 가운데로 들어올겁니다^^
index 소스입니다.
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
$g4['title'] = "";
include_once("./_head.php");
?>
<!-- 메인화면 최신글 시작 -->
<table width="100%" cellpadding=0 cellspacing=0><tr><td valign=top>
<?
// 최신글
$sql = " select bo_table, bo_subject from $g4[board_table] order by gr_id, bo_table ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
// 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.
// 사용방법
// latest(스킨, 게시판아이디, 출력라인, 글자수);
echo latest("kyu", $row['bo_table'], 12, 70, "4,25");
echo "<p>\n";
}
?>
</td></tr></table>
<!-- 메인화면 최신글 끝 -->
<?
include_once("./_tail.php");
?>
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
$g4['title'] = "";
include_once("./_head.php");
?>
<!-- 메인화면 최신글 시작 -->
<table width="100%" cellpadding=0 cellspacing=0><tr><td valign=top>
<?
// 최신글
$sql = " select bo_table, bo_subject from $g4[board_table] order by gr_id, bo_table ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
// 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.
// 사용방법
// latest(스킨, 게시판아이디, 출력라인, 글자수);
echo latest("kyu", $row['bo_table'], 12, 70, "4,25");
echo "<p>\n";
}
?>
</td></tr></table>
<!-- 메인화면 최신글 끝 -->
<?
include_once("./_tail.php");
?>
<?
// 최신글
$sql = " select bo_table, bo_subject from $g4[board_table] order by gr_id, bo_table ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
// 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.
// 사용방법
// latest(스킨, 게시판아이디, 출력라인, 글자수);
echo latest("kyu", $row['bo_table'], 12, 70, "4,25");
echo "<p>\n";
}
?>
이부분 대신에 이렇게 해보세요
<?=latest("kyu", wings, 12, 70);?>
// 최신글
$sql = " select bo_table, bo_subject from $g4[board_table] order by gr_id, bo_table ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
// 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.
// 사용방법
// latest(스킨, 게시판아이디, 출력라인, 글자수);
echo latest("kyu", $row['bo_table'], 12, 70, "4,25");
echo "<p>\n";
}
?>
이부분 대신에 이렇게 해보세요
<?=latest("kyu", wings, 12, 70);?>
head 소스입니다.
<?
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="<?=$table_width?>" cellspacing="0" cellpadding="0">
<tr>
<table width="100%" height="52" cellspacing="0" cellpadding="0">
<tr>
<td><img src="<?=$g4['path']?>/img/top_img.gif" width="100%" height="25"></td>
</tr>
</table></td>
</tr>
</table>
<!-- 상단 배경 끝 -->
<!-- 상단 로고 및 버튼 시작 -->
<table width="869" cellspacing="0" cellpadding="0" border="0">
<tr>
<td width="1" height="57"></td>
<!-- 로고 -->
<td width="267"><a href="<?=$g4['path']?>/"><img src="<?=$g4['path']?>/img/logo.jpg" width="220" height="112" border="0"></a></td>
<td width="32"> </td>
<td width="1">
<table width=100% border=0 cellpadding=0 cellspacing=0>
<tr>
<td> </td>
</tr>
</table>
</td>
<td width="567" align="right">
<img src="img/goo.jpg" width="567" height="52" border="0" usemap="#ImageMap1"> <map name="ImageMap1">
<area shape="rect" coords="18, 9, 61, 29" href="<?=$g4['bbs_path']?>/member_confirm.php?url=register_form.php">
<area shape="rect" coords="352, 12, 401, 29" href="<?=$g4['bbs_path']?>/board.php?bo_table=wings&wr_id=5">
</map></td>
<td width="1"></td>
</tr>
</table>
<!-- 상단 로고 및 버튼 끝 -->
<table width="870" cellpadding=0 cellspacing=0 border=0>
<tr>
<td width="1" height="109"></td>
<!-- 왼쪽 메뉴 -->
<td width="103" valign=top height="109">
<?=outlogin("basic"); // 외부 로그인 ?>
<div style='height:10px;'></div>
<?=poll("basic"); // 설문조사 ?>
<div style='height:10px;'></div>
<?=visit("basic"); // 방문자수 ?>
<div style='height:10px;'></div>
<?=connect(); // 현재 접속자수 ?>
</td>
<td width="71" height="109"></td>
<!-- 중간 -->
<td width="695" valign=top height="109">
<?
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="<?=$table_width?>" cellspacing="0" cellpadding="0">
<tr>
<table width="100%" height="52" cellspacing="0" cellpadding="0">
<tr>
<td><img src="<?=$g4['path']?>/img/top_img.gif" width="100%" height="25"></td>
</tr>
</table></td>
</tr>
</table>
<!-- 상단 배경 끝 -->
<!-- 상단 로고 및 버튼 시작 -->
<table width="869" cellspacing="0" cellpadding="0" border="0">
<tr>
<td width="1" height="57"></td>
<!-- 로고 -->
<td width="267"><a href="<?=$g4['path']?>/"><img src="<?=$g4['path']?>/img/logo.jpg" width="220" height="112" border="0"></a></td>
<td width="32"> </td>
<td width="1">
<table width=100% border=0 cellpadding=0 cellspacing=0>
<tr>
<td> </td>
</tr>
</table>
</td>
<td width="567" align="right">
<img src="img/goo.jpg" width="567" height="52" border="0" usemap="#ImageMap1"> <map name="ImageMap1">
<area shape="rect" coords="18, 9, 61, 29" href="<?=$g4['bbs_path']?>/member_confirm.php?url=register_form.php">
<area shape="rect" coords="352, 12, 401, 29" href="<?=$g4['bbs_path']?>/board.php?bo_table=wings&wr_id=5">
</map></td>
<td width="1"></td>
</tr>
</table>
<!-- 상단 로고 및 버튼 끝 -->
<table width="870" cellpadding=0 cellspacing=0 border=0>
<tr>
<td width="1" height="109"></td>
<!-- 왼쪽 메뉴 -->
<td width="103" valign=top height="109">
<?=outlogin("basic"); // 외부 로그인 ?>
<div style='height:10px;'></div>
<?=poll("basic"); // 설문조사 ?>
<div style='height:10px;'></div>
<?=visit("basic"); // 방문자수 ?>
<div style='height:10px;'></div>
<?=connect(); // 현재 접속자수 ?>
</td>
<td width="71" height="109"></td>
<!-- 중간 -->
<td width="695" valign=top height="109">