왼쪽메뉴 종합 질문 마지막!!! 정보
왼쪽메뉴 종합 질문 마지막!!!
본문
포샵에서 이렇게 만들었습니다.. 답변좀 확실히 얻고자...제가 이해를 못하다보니.
좌측 메뉴는 잘 넣었습니다.
각 메뉴 누르니깐 메뉴들이 자동으로 생기더라고요.
문제는...다시
그림에 보시면
1번 .. head.php 파일에 저렇게 넣었습니다. 소스를
<table cellpadding="0" cellspacing="0" width="750" align="center"><tr>
<td valign="bottom" align="right"><p><a href="http://test.1sthost.wo.tc/bbs/group.php?gr_id=m01"><img src="<?=$g4['path']?>/img/m01.gif" border="0"></a></p></td>
<td valign="bottom" align="right"><p><a href="http://test.1sthost.wo.tc/bbs/group.php?gr_id=m02"><img src="<?=$g4['path']?>/img/m02.gif" border="0"></a></p></td>
<td valign="bottom" align="right"><p><a href="http://test.1sthost.wo.tc/bbs/group.php?gr_id=m03"><img src="<?=$g4['path']?>/img/m03.gif" border="0"></a></p></td>
<td valign="bottom" align="right"><p><a href="http://test.1sthost.wo.tc/bbs/group.php?gr_id=m04"><img src="<?=$g4['path']?>/img/m04.gif" border="0"></a></p></td>
<td valign="bottom" align="right"><p><a href="http://test.1sthost.wo.tc/bbs/group.php?gr_id=m05"><img src="<?=$g4['path']?>/img/m05.gif" border="0"></a></p></td>
</tr>
</table>
이렇게 링크 시키는게 맞나요?
메뉴들은 잘 나오는 것 같아요.
근대 이렇게 링크 시키고 나니깐 막혀버리는게 있는데
왼쪽 메뉴는 잘 나오는데요.
각 메뉴별 최근게시물 부분들을 따로 지정하고 싶은데..
너무 햇갈리네요.
2번 항목 보시면.
head.php 파일에
<td width=220 valign=top>
<?=outlogin("bm_login"); // 외부 로그인 ?>
<div style='height:10px;'></div>
<? include_once("$g4[path]/include/leftmenu/leftmenu.php");?>
<?=newcomment("전체최근코멘트", "basic", 10,26)?>
<div style='height:10px;'></div>
이렇게 넣으니깐 메뉴들은 잘 나와요.
질문 요점.
1. 상단 메뉴에 링크 거는 방법이 맞는건지.
2. 각 메뉴별로 최근 게시물 및 좌측 메뉴 하단에 스킨들을 다른 걸 넣고 싶은데 어떻게 하는건지.
좀만 자세히 알려주세여.
부탁 드립니다. 꾸벅
댓글 전체
2. 메뉴별? 최근게시물
그룹별 좌측메뉴 변경은 head.php 파일에서 스위치로 그룹별 왼쪽메뉴지정을 하세요.
<?
switch($gr_id) {
case "m01" : include "$g4[path]/include/leftmenu/leftmenu01.php"; break;
case "m02" : include "$g4[path]/include/leftmenu/leftmenu02.php"; break;
case "m03" : include "$g4[path]/include/leftmenu/leftmenu03.php"; break;
case "m04" : include "$g4[path]/include/leftmenu/leftmenu04.php"; break;
case "m05" : include "$g4[path]/include/leftmenu/leftmenu05.php"; break;
default include "$g4[path]/include/leftmenu/leftmenu.php";
?>
지금 왼쪽 메뉴가
head.php 에서 <? include_once("$g4[path]/include/leftmenu/leftmenu.php");?> 이걸로
해결이 된 것 같은데.
스위치로 저렇게 다시 넣으란 말씀이신가요?
leftmenu.php를 복사해서 그룹별로 만들어서 해당 그룹을 선택하면 그 왼쪽메뉴를 뿌려라.
요런기능이죠.
복사한 왼쪽메뉴에 넣고 싶은 스킨이나 배너나 뭐 그런것들 그룹별로 넣으면 됩니다.