초보입니다 몇가지 질문 드려봅니다. 고수님들 도와 주세요 정보
초보입니다 몇가지 질문 드려봅니다. 고수님들 도와 주세요
본문
저희 교회 홈페이지 하나 짜보려하는데요
1. 먼저 처음 로그인 하기전 주소치고 들어오면 초기 메인화면과 로그인후 메인화면을 달리하고 싶습니다.
어디를 수정해야하는지요.
2. 그누의 게시판하나로 여러부서들의 게시판을 그룹으로 나누어 별도 홈페이지로 구성하고싶은대요. 최근 게시물을 보면 그룹전체 최근 게시물이 나와요. 분류하는 방법좀 알려 주세요
3. 게시판을 만들어 게시판마다 스킨을 달리 하고싶습니다.
예를 들어 a라는 게시판은 겔러리 형식으로 b라는 게시판는 블러그형식으로 근데 이곳에 스킨 다운 받아 게시판에 적용 시켜하니 스킨이 베이직만 설정되어 있던데요 어떻게 지정해야할지 아무리 찾아보아도 초보라 찾기가 힘드네요
이곳 스킨은 그누 전체에만 해당하는건지. 부분적인 스킨적용도 가능한지....
1달째 같은 자리만 맴돌고 있어요 도와 주세요^^
임시 페이지 주소 : pos.wo.tc
댓글 전체
1. index.php 에서...
<? if ($is_member) { ?>
로그인 이전에 보여질 내용
<? } else { ?>
//로그인 후 보여질 내용
<?}?>
이 함수를 이용하면 될 것 같습니다.
2. 최근게시물을 이용하세요. <? echo latest("스킨이름", "게시판", 5, 22); ?> 이런 식으로 각각의 게시판을 불러올 수 있습니다.
참고 : http://sir.co.kr/manual/youngcart4/?man=skin.htm
3. http://www.sir.co.kr/bbs/board.php?bo_table=g4_skin 여기에서 게시판 스킨을 다운받으셔서 게시판 관리자모드에서 변경해주시면 됩니다.
참고 주소에 들어가시면 자세하게 설명되어 있습니다.
<? if ($is_member) { ?>
로그인 이전에 보여질 내용
<? } else { ?>
//로그인 후 보여질 내용
<?}?>
이 함수를 이용하면 될 것 같습니다.
2. 최근게시물을 이용하세요. <? echo latest("스킨이름", "게시판", 5, 22); ?> 이런 식으로 각각의 게시판을 불러올 수 있습니다.
참고 : http://sir.co.kr/manual/youngcart4/?man=skin.htm
3. http://www.sir.co.kr/bbs/board.php?bo_table=g4_skin 여기에서 게시판 스킨을 다운받으셔서 게시판 관리자모드에서 변경해주시면 됩니다.
참고 주소에 들어가시면 자세하게 설명되어 있습니다.
{ (괄호)여는 수와 } 닫는 수가 하나라도 틀리면 에러가 납니다.
그리고 <? 안에 또하나의 <? 가 있어도 에러가납니다.
---------------------------------------------------------------------------------------
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
$g4['title'] = "";
include_once("$g4[path]/head.php");
?>
<!-- 메인화면 최신글 시작 -->
<table width="100%" cellpadding=0 cellspacing=0><tr><td valign=top>
<? if ($is_member) { ?>
<!--//로그인 전 보여질 내용 -->
<table align="center" cellpadding="0" cellspacing="0" width="500" height="0%">
<tr>
<td width="973">
<p align="center"><img src="/img/ch_top.gif" width="400" height="286" border="0"></td>
</tr>
<tr>
<td width="973" height="48">
<p align="center"><b><font color="#000066">2007년 표어: 이루고 나누며
섬기는 교회</font></b></p>
</td>
</tr>
<tr>
<td width="973" height="65">
<p align="center"><font face="휴먼편지체">"너희 속에 착한 일을
시작하신 이가 그리스도 예수의 날까지</font></p>
<p align="center"><font face="휴먼편지체">이루실 줄을 우리가 확신하노라
(빌 1:6)</font></p>
</td>
</tr>
</table>
<p align="center"><font face="휴먼편지체"> </font></p>
<? } else { ?>
<!--// 로그인 후 보여질 내용 -->
<!-- 메인화면 최신글 시작 -->
<table width="100%" cellpadding=0 cellspacing=0><tr><td valign=top>
<p>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width=14><img src='./skin/latest/basic/img/latest_t01.gif'></td>
<td width='100%' background='./skin/latest/basic/img/bg_latest.gif'> <strong>
<a href='./bbs/board.php?bo_table=ch_so_ge'>교회소개</a></strong></td>
<td width=37 background='./skin/latest/basic/img/bg_latest.gif'>
<a href='./bbs/board.php?bo_table=ch_so_ge'><img src='./skin/latest/basic/img/more.gif' border=0></a></td>
<td width=14><img src='./skin/latest/basic/img/latest_t02.gif'></td>
</tr>
<tr>
<td colspan=4 align=center>
<table width=95%>
<tr>
<td height=25><img src='./skin/latest/basic/img/latest_icon.gif' align=absmiddle>
<a href='./bbs/board.php?bo_table=ch_so_ge&wr_id=1'><font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>옥산교회를 소개합니다.</font></a> </td></tr>
<tr><td bgcolor=#EBEBEB height=1></td></tr>
</table></td>
</tr>
</table>
<p>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width=14><img src='./skin/latest/basic/img/latest_t01.gif'></td>
<td width='100%' background='./skin/latest/basic/img/bg_latest.gif'> <strong>
<a href='./bbs/board.php?bo_table=charting_rom'>옥산 사이버 대화실</a></strong></td>
<td width=37 background='./skin/latest/basic/img/bg_latest.gif'>
<a href='./bbs/board.php?bo_table=charting_rom'><img src='./skin/latest/basic/img/more.gif' border=0></a></td>
<td width=14><img src='./skin/latest/basic/img/latest_t02.gif'></td>
</tr>
<tr>
<td colspan=4 align=center>
<table width=95%>
<tr>
<td height=25><img src='./skin/latest/basic/img/latest_icon.gif' align=absmiddle>
<a href='./bbs/board.php?bo_table=charting_rom&wr_id=1'><font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>바쁜 시간들 바쁜 일들 때문에 서로의 대화가 부족하지는 않은가요?</font></a> </td></tr>
<tr><td bgcolor=#EBEBEB height=1></td></tr>
</table></td>
</tr>
</table>
<p>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width=14><img src='./skin/latest/basic/img/latest_t01.gif'></td>
<td width='100%' background='./skin/latest/basic/img/bg_latest.gif'> <strong>
<a href='./bbs/board.php?bo_table=CH_BANG'>방명록</a></strong></td>
<td width=37 background='./skin/latest/basic/img/bg_latest.gif'>
<a href='./bbs/board.php?bo_table=CH_BANG'><img src='./skin/latest/basic/img/more.gif' border=0></a></td>
<td width=14><img src='./skin/latest/basic/img/latest_t02.gif'></td>
</tr>
<tr>
<td colspan=4 align=center>
<table width=95%>
<tr>
<td height=25><img src='./skin/latest/basic/img/latest_icon.gif' align=absmiddle>
<a href='./bbs/board.php?bo_table=CH_BANG&wr_id=1'><font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>간단한 인사말로 방문 흔적을 남기세요^^</font></a>
</td></tr>
<tr><td bgcolor=#EBEBEB height=1></td></tr>
</table></td>
</tr>
</table>
<p>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width=14><img src='./skin/latest/basic/img/latest_t01.gif'></td>
<td width='100%' background='./skin/latest/basic/img/bg_latest.gif'> <strong>
<a href='./bbs/board.php?bo_table=CH_GU'>교회 게시판</a></strong></td>
<td width=37 background='./skin/latest/basic/img/bg_latest.gif'>
<a href='./bbs/board.php?bo_table=CH_GU'><img src='./skin/latest/basic/img/more.gif' border=0></a></td>
<td width=14><img src='./skin/latest/basic/img/latest_t02.gif'></td>
</tr>
<tr>
<td colspan=4 align=center>
<table width=95%>
<tr>
<td height=25><img src='./skin/latest/basic/img/latest_icon.gif' align=absmiddle>
<a href='./bbs/board.php?bo_table=CH_GU&wr_id=1'><font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>정보를 나누는 게시판입니다.</font></a>
</td></tr>
<tr><td bgcolor=#EBEBEB height=1></td></tr>
</table></td>
</tr>
</table>
<p>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width=14><img src='./skin/latest/basic/img/latest_t01.gif'></td>
<td width='100%' background='./skin/latest/basic/img/bg_latest.gif'> <strong>
<a href='./bbs/board.php?bo_table=ch_m10'>협력 교회 소식 및 선교 자료실</a></strong></td>
<td width=37 background='./skin/latest/basic/img/bg_latest.gif'>
<a href='./bbs/board.php?bo_table=ch_m10'><img src='./skin/latest/basic/img/more.gif' border=0></a></td>
<td width=14><img src='./skin/latest/basic/img/latest_t02.gif'></td>
</tr>
<tr>
<td colspan=4 align=center>
<table width=95%>
<tr>
<td height=25><img src='./skin/latest/basic/img/latest_icon.gif' align=absmiddle>
<a href='./bbs/board.php?bo_table=ch_m10&wr_id=1'><font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>주변 교회의 동정이나 소식을 함께 나누는 게시판입니다.</font></a> </td></tr>
<tr><td bgcolor=#EBEBEB height=1></td></tr>
</table></td>
</tr>
</table>
<p>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width=14><img src='./skin/latest/basic/img/latest_t01.gif'></td>
<td width='100%' background='./skin/latest/basic/img/bg_latest.gif'> <strong>
<a href='./bbs/board.php?bo_table=ch_m4'>구역 모임</a></strong></td>
<td width=37 background='./skin/latest/basic/img/bg_latest.gif'>
<a href='./bbs/board.php?bo_table=ch_m4'><img src='./skin/latest/basic/img/more.gif' border=0></a></td>
<td width=14><img src='./skin/latest/basic/img/latest_t02.gif'></td>
</tr>
<tr>
<td colspan=4 align=center>
<table width=95%>
<tr>
<td height=25><img src='./skin/latest/basic/img/latest_icon.gif' align=absmiddle>
<a href='./bbs/board.php?bo_table=ch_m4&wr_id=1'><font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>구역의 소식이나 정보를 나누어 주세요</font></a> </td></tr>
<tr><td bgcolor=#EBEBEB height=1></td></tr>
</table></td>
</tr>
</table>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width=14><img src='./skin/latest/basic/img/latest_t01.gif'></td>
<td width='100%' background='./skin/latest/basic/img/bg_latest.gif'> <strong><a href='./bbs/board.php?bo_table=ch_m9'>은혜의 말씀</a></strong></td>
<td width=37 background='./skin/latest/basic/img/bg_latest.gif'><a href='./bbs/board.php?bo_table=ch_m9'><img src='./skin/latest/basic/img/more.gif' border=0></a></td>
<td width=14><img src='./skin/latest/basic/img/latest_t02.gif'></td>
</tr>
<tr>
<td colspan=4 align=center>
<table width=95%>
<tr>
<td height=25><img src='./skin/latest/basic/img/latest_icon.gif' align=absmiddle>
<a href='./bbs/board.php?bo_table=ch_m9&wr_id=1'><font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>목사님의 말씀을 생각하며..</font></a> </td></tr>
<tr><td bgcolor=#EBEBEB height=1></td></tr>
</table></td>
</tr>
</table>
</td>
</tr>
</table>
<!-- 메인화면 최신글 끝 -->
<!-- // 이하 글은 원본내용입니다 -->
<?}?>
<!--
// 최신글
$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("basic", $row['bo_table'], 12, 70);
echo "<p>\n";
}
?>
> -->
<!-- 메인화면 최신글 끝 -->
</td></tr></table>
<?
include_once("$g4[path]/tail.php");
?>
그리고 <? 안에 또하나의 <? 가 있어도 에러가납니다.
---------------------------------------------------------------------------------------
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
$g4['title'] = "";
include_once("$g4[path]/head.php");
?>
<!-- 메인화면 최신글 시작 -->
<table width="100%" cellpadding=0 cellspacing=0><tr><td valign=top>
<? if ($is_member) { ?>
<!--//로그인 전 보여질 내용 -->
<table align="center" cellpadding="0" cellspacing="0" width="500" height="0%">
<tr>
<td width="973">
<p align="center"><img src="/img/ch_top.gif" width="400" height="286" border="0"></td>
</tr>
<tr>
<td width="973" height="48">
<p align="center"><b><font color="#000066">2007년 표어: 이루고 나누며
섬기는 교회</font></b></p>
</td>
</tr>
<tr>
<td width="973" height="65">
<p align="center"><font face="휴먼편지체">"너희 속에 착한 일을
시작하신 이가 그리스도 예수의 날까지</font></p>
<p align="center"><font face="휴먼편지체">이루실 줄을 우리가 확신하노라
(빌 1:6)</font></p>
</td>
</tr>
</table>
<p align="center"><font face="휴먼편지체"> </font></p>
<? } else { ?>
<!--// 로그인 후 보여질 내용 -->
<!-- 메인화면 최신글 시작 -->
<table width="100%" cellpadding=0 cellspacing=0><tr><td valign=top>
<p>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width=14><img src='./skin/latest/basic/img/latest_t01.gif'></td>
<td width='100%' background='./skin/latest/basic/img/bg_latest.gif'> <strong>
<a href='./bbs/board.php?bo_table=ch_so_ge'>교회소개</a></strong></td>
<td width=37 background='./skin/latest/basic/img/bg_latest.gif'>
<a href='./bbs/board.php?bo_table=ch_so_ge'><img src='./skin/latest/basic/img/more.gif' border=0></a></td>
<td width=14><img src='./skin/latest/basic/img/latest_t02.gif'></td>
</tr>
<tr>
<td colspan=4 align=center>
<table width=95%>
<tr>
<td height=25><img src='./skin/latest/basic/img/latest_icon.gif' align=absmiddle>
<a href='./bbs/board.php?bo_table=ch_so_ge&wr_id=1'><font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>옥산교회를 소개합니다.</font></a> </td></tr>
<tr><td bgcolor=#EBEBEB height=1></td></tr>
</table></td>
</tr>
</table>
<p>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width=14><img src='./skin/latest/basic/img/latest_t01.gif'></td>
<td width='100%' background='./skin/latest/basic/img/bg_latest.gif'> <strong>
<a href='./bbs/board.php?bo_table=charting_rom'>옥산 사이버 대화실</a></strong></td>
<td width=37 background='./skin/latest/basic/img/bg_latest.gif'>
<a href='./bbs/board.php?bo_table=charting_rom'><img src='./skin/latest/basic/img/more.gif' border=0></a></td>
<td width=14><img src='./skin/latest/basic/img/latest_t02.gif'></td>
</tr>
<tr>
<td colspan=4 align=center>
<table width=95%>
<tr>
<td height=25><img src='./skin/latest/basic/img/latest_icon.gif' align=absmiddle>
<a href='./bbs/board.php?bo_table=charting_rom&wr_id=1'><font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>바쁜 시간들 바쁜 일들 때문에 서로의 대화가 부족하지는 않은가요?</font></a> </td></tr>
<tr><td bgcolor=#EBEBEB height=1></td></tr>
</table></td>
</tr>
</table>
<p>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width=14><img src='./skin/latest/basic/img/latest_t01.gif'></td>
<td width='100%' background='./skin/latest/basic/img/bg_latest.gif'> <strong>
<a href='./bbs/board.php?bo_table=CH_BANG'>방명록</a></strong></td>
<td width=37 background='./skin/latest/basic/img/bg_latest.gif'>
<a href='./bbs/board.php?bo_table=CH_BANG'><img src='./skin/latest/basic/img/more.gif' border=0></a></td>
<td width=14><img src='./skin/latest/basic/img/latest_t02.gif'></td>
</tr>
<tr>
<td colspan=4 align=center>
<table width=95%>
<tr>
<td height=25><img src='./skin/latest/basic/img/latest_icon.gif' align=absmiddle>
<a href='./bbs/board.php?bo_table=CH_BANG&wr_id=1'><font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>간단한 인사말로 방문 흔적을 남기세요^^</font></a>
</td></tr>
<tr><td bgcolor=#EBEBEB height=1></td></tr>
</table></td>
</tr>
</table>
<p>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width=14><img src='./skin/latest/basic/img/latest_t01.gif'></td>
<td width='100%' background='./skin/latest/basic/img/bg_latest.gif'> <strong>
<a href='./bbs/board.php?bo_table=CH_GU'>교회 게시판</a></strong></td>
<td width=37 background='./skin/latest/basic/img/bg_latest.gif'>
<a href='./bbs/board.php?bo_table=CH_GU'><img src='./skin/latest/basic/img/more.gif' border=0></a></td>
<td width=14><img src='./skin/latest/basic/img/latest_t02.gif'></td>
</tr>
<tr>
<td colspan=4 align=center>
<table width=95%>
<tr>
<td height=25><img src='./skin/latest/basic/img/latest_icon.gif' align=absmiddle>
<a href='./bbs/board.php?bo_table=CH_GU&wr_id=1'><font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>정보를 나누는 게시판입니다.</font></a>
</td></tr>
<tr><td bgcolor=#EBEBEB height=1></td></tr>
</table></td>
</tr>
</table>
<p>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width=14><img src='./skin/latest/basic/img/latest_t01.gif'></td>
<td width='100%' background='./skin/latest/basic/img/bg_latest.gif'> <strong>
<a href='./bbs/board.php?bo_table=ch_m10'>협력 교회 소식 및 선교 자료실</a></strong></td>
<td width=37 background='./skin/latest/basic/img/bg_latest.gif'>
<a href='./bbs/board.php?bo_table=ch_m10'><img src='./skin/latest/basic/img/more.gif' border=0></a></td>
<td width=14><img src='./skin/latest/basic/img/latest_t02.gif'></td>
</tr>
<tr>
<td colspan=4 align=center>
<table width=95%>
<tr>
<td height=25><img src='./skin/latest/basic/img/latest_icon.gif' align=absmiddle>
<a href='./bbs/board.php?bo_table=ch_m10&wr_id=1'><font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>주변 교회의 동정이나 소식을 함께 나누는 게시판입니다.</font></a> </td></tr>
<tr><td bgcolor=#EBEBEB height=1></td></tr>
</table></td>
</tr>
</table>
<p>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width=14><img src='./skin/latest/basic/img/latest_t01.gif'></td>
<td width='100%' background='./skin/latest/basic/img/bg_latest.gif'> <strong>
<a href='./bbs/board.php?bo_table=ch_m4'>구역 모임</a></strong></td>
<td width=37 background='./skin/latest/basic/img/bg_latest.gif'>
<a href='./bbs/board.php?bo_table=ch_m4'><img src='./skin/latest/basic/img/more.gif' border=0></a></td>
<td width=14><img src='./skin/latest/basic/img/latest_t02.gif'></td>
</tr>
<tr>
<td colspan=4 align=center>
<table width=95%>
<tr>
<td height=25><img src='./skin/latest/basic/img/latest_icon.gif' align=absmiddle>
<a href='./bbs/board.php?bo_table=ch_m4&wr_id=1'><font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>구역의 소식이나 정보를 나누어 주세요</font></a> </td></tr>
<tr><td bgcolor=#EBEBEB height=1></td></tr>
</table></td>
</tr>
</table>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width=14><img src='./skin/latest/basic/img/latest_t01.gif'></td>
<td width='100%' background='./skin/latest/basic/img/bg_latest.gif'> <strong><a href='./bbs/board.php?bo_table=ch_m9'>은혜의 말씀</a></strong></td>
<td width=37 background='./skin/latest/basic/img/bg_latest.gif'><a href='./bbs/board.php?bo_table=ch_m9'><img src='./skin/latest/basic/img/more.gif' border=0></a></td>
<td width=14><img src='./skin/latest/basic/img/latest_t02.gif'></td>
</tr>
<tr>
<td colspan=4 align=center>
<table width=95%>
<tr>
<td height=25><img src='./skin/latest/basic/img/latest_icon.gif' align=absmiddle>
<a href='./bbs/board.php?bo_table=ch_m9&wr_id=1'><font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>목사님의 말씀을 생각하며..</font></a> </td></tr>
<tr><td bgcolor=#EBEBEB height=1></td></tr>
</table></td>
</tr>
</table>
</td>
</tr>
</table>
<!-- 메인화면 최신글 끝 -->
<!-- // 이하 글은 원본내용입니다 -->
<?}?>
<!--
// 최신글
$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("basic", $row['bo_table'], 12, 70);
echo "<p>\n";
}
?>
> -->
<!-- 메인화면 최신글 끝 -->
</td></tr></table>
<?
include_once("$g4[path]/tail.php");
?>