각 그룹 페이지 별로 페이지를 만들려면 어떻게 하는거죠?
페이지 정보
본문
$table_width = 1000; <--이렇게 조정
<!-- 상단 로고 및 버튼 시작 -->
<table width="<?=$table_width?>" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td> <----60 으로 변경
중간생략
<td width="110"></td> <-----90 으로 변경
이런부분들이 head,sudhead,tail에 각각 있습니다...
또한 각 레이어 위치를 잡아 주세요..
오른쪽 배너 - head.sub.php
메뉴도 잡아 주시구요..."
댓글목록
![profile_image](https://zeronara.net/img/no_profile.gif)
제로님의 댓글
제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 작성일
가운데 정렬은 간단합니다..
현제의 제나빌더에 테이블을 쒸워버리면 바로 적용이 되지요..
head.php / subhead.php
<table width="100%" cellpadding=0 cellspacing=0 border=0>
<tr>
<td align=center valign=top>
<!--상단로고 및 메뉴-->
<table width="<?=$totalwidth?>" cellpadding=0 cellspacing=0 border=0>
<tr>
<td rowspan="2" width="10"></td>
-------------------
tail.php
<!--카피라이트끝-->
</td>
<td width="10" border="0"></td>
<td width="100" border="0"></td>
</tr>
</table>
</td>
</tr>
</table>
----------------
이렇게 적용하시면 됩니다..
우측배너에는 영향이 없습니다~~
그룹은
각 grouptable.php / grouptable1.php 이런식으로 몇개를 만드세요.
그룹에서 보여지는 부분입니다..
<!-- 메인화면 최신글 시작 -->
<table width="100%" cellpadding=0 cellspacing=5>
<tr>
<td align="center" valign=top>
<?
// 최신글
$sql = " select bo_table, bo_subject from $g4[board_table]
where gr_id = '$gr_id'
and bo_list_level <= '$member[mb_level]'
order by bo_table ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result);) {
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
// 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.
// 사용방법
// latest(스킨, 게시판아이디, 출력라인, 글자수);
if($i%2==0)
echo "<tr>";
?>
<td width="50%" valign="top">
<?= latest("basic", $row[bo_table], 5, 70, "4,25")?>
</td>
<?
$i++;
}
?>
</tr></table>
<!-- 메인화면 최신글 끝 -->.
이부분을
<? include_once("$g4[bbs_path]/$grtable");?>
수정해 주세요..
그런후..
head.sub.php
파일에 아래처럼 삽입해 주세요..
<!--매뉴-->
<?
switch($gr_id){
case "":
//$grback = "$g4[path]/include/mainmenu/img/top.gif"; //이미지일 경우 사용
$grcolor = "#004C73";
$grbanner = "mainbanner";
$grtable = "grouptable.php";
break;
case "z1":
$grcolor = "#1EA529";
$grbanner = "sub1banner";
$grtable = "grouptable1.php";
각 그룹테이블파일을 따로 적용하시면 되겠죠..
테스트는 해보지 못했습니다..
이런식으로 하면 될꺼 같은 생각입니다...^^
![profile_image](https://zeronara.net/img/no_profile.gif)
![profile_image](https://zeronara.net/img/no_profile.gif)
힘쓰님의 댓글
힘쓰쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 작성일
각 그룹은
grouptable.php / grouptable1.php ... 이렇게 필요한 수많큼 만들어서
./bbs/에 저장해 다르게 사용하니까 잘됩니다.
(ㅡㅡ) (_ _) 감사합니다.(이건 해결됨)
그런데
------------------------------------------------------------------------------------------------
<!--매뉴-->
<?
switch($gr_id){
case "":
//$grback = "$g4[path]/include/mainmenu/img/top.gif"; //이미지일 경우 사용
$grcolor = "#004C73";
$grbanner = "mainbanner";
$grtable = "grouptable.php"; (여기)
---------------------------------------------------->> 이부분은 index.php 따라가는거 같습니다.
![profile_image](https://zeronara.net/img/no_profile.gif)
제로님의 댓글의 댓글
제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 작성일
이것을 group.php
<?
// 상대 경로
$g4_path = "..";
include_once("$g4_path/common.php");
include_once("$g4[path]/lib/latest.lib.php");
$g4[title] = $group[gr_subject];
include_once("./_head.php");
?>
<?
switch($gr_id){
case "":
$grtable = "grouptable.php";
break;
case "z1":
$grtable = "grouptable1.php";
break;
case "z2":
$grtable = "grouptable2.php";
break;
case "z3":
$grtable = "grouptable3.php";
break;
case "z4":
$grtable = "grouptable4.php";
break;
case "z5":
$grtable = "grouptable5.php";
break;
case "z6":
$grtable = "grouptable6.php";
break;
case "html":
$grtable = "grouptable.php";
break;
case "banner":
$grtable = "grouptable.php";
break;
}
?>
<? include_once("$g4[path]/include/nav_top/nav_top.php");?>
<!-- 메인화면 최신글 시작 -->
<? include_once("$g4[bbs_path]/$grtable");?>
<!-- 메인화면 최신글 끝 -->
<?
include_once("./_tail.php");
?>
---------------------------------------------
각 grouptable.php
<!-- 메인화면 최신글 시작 -->
<table width="100%" cellpadding=0 cellspacing=0>
<tr>
<td align="center" valign=top>
필요에 따라서 만드세요~!
</td>
</tr></table>
<!-- 메인화면 최신글 끝 -->
![profile_image](https://zeronara.net/img/no_profile.gif)
힘쓰님의 댓글
힘쓰쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 작성일
가운데 정렬은 간단합니다..
현제의 제나빌더에 테이블을 쒸워버리면 바로 적용이 되지요..
head.php / subhead.php
------------------------------------------------------------------------------------------------------
<table width="100%" cellpadding=0 cellspacing=0 border=0>
<tr>
<td align=center valign=top>
------------------------------------------------------------------------------------------------------ 이게 추가 적용부분 맞죠?
<!--상단로고 및 메뉴-->
<table width="<?=$totalwidth?>" cellpadding=0 cellspacing=0 border=0>
<tr>
<td rowspan="2" width="10"></td>
-------------------
tail.php
<!--카피라이트끝-->
</td>
<td width="10" border="0"></td>
<td width="100" border="0"></td>
</tr>
</table>
--------------------------------------------
</td>
</tr>
</table>
-------------------------------------------- 이거 추가한 부분
이렇게 적용하시면 됩니다..
우측배너에는 영향이 없습니다~~
**********************************************
이렇게 테이블로 덮어 써도 변동이 없네요
현재 제나 1.5 버젼이구요 페이지를 보여 드리지 못하는 것은
제컴에서 RWAPM으로 연습중이라 보여 드리지 못하겠네요
![profile_image](https://zeronara.net/img/no_profile.gif)
제로님의 댓글의 댓글
제로쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 작성일
테스트 해봤습니다 잘되고 잇습니다~!
// 저작권 : 이 주석 부분은 삭제할 수 없습니다.
//*************************************************
?>
<table width="100%" cellpadding=0 cellspacing=0 border=0>
<tr>
<td align=center valign=top>
<!--상단로고 및 메뉴-->
<table width="<?=$totalwidth?>" cellpadding=0 cellspacing=0 border=0>
<tr>
<td rowspan="2" width="10"></td>
<td rowspan="2" width="190" border="0" align=center><a href="<?=$g4['path']?>/"><img src="<?=$g4['path']?>/img/logo.gif" border="0"></a></td>
<td rowspan="2" width="10"></td>
<td width="680" border="0" align=right valign=top>
<!--로그인 및 검색-->
----------------------------------
<!--카피라이트-->
<br>
<?=conv_content($config[cf_zcopyright], 0)?>
<br><br>
<!--카피라이트끝-->
</td>
<td width="10" border="0"></td>
<td width="100" border="0"></td>
</tr>
</table>
</td>
</tr>
</table>
<?
include_once("$g4[path]/tail.sub.php");
?>
![profile_image](https://zeronara.net/img/no_profile.gif)
![profile_image](https://zeronara.net/img/no_profile.gif)
![profile_image](https://zeronara.net/img/no_profile.gif)