도움이 꼭 필요합니다. > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

도움이 꼭 필요합니다. 정보

도움이 꼭 필요합니다.

본문

우선 head.php 파일에서
게시판에 관련된 왼편메뉴 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 = 1000;
?>


<!-- 상단 로고 및 버튼 및 플래쉬 이미지  시작 -->
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
 <tr>
    <td height="36">
<table width="100%" height="36" border="0" cellpadding="0" cellspacing="0" background="http://kimgeun.mireene.com/html/images/main_img.jpg">
      <? if (!$member[mb_id]) { ?>
            <!-- 로그인 이전 -->
  <tr>
        <td align="center" style="padding-left:631px;padding-top:10px;"><a href="/"><img src="http://kimgeun.mireene.com/html/images/home_img.gif" width="43" height="16" border="0"></a>&nbsp;<img src="http://kimgeun.mireene.com/html/images/topline_img.gif" width="1" height="12">&nbsp;<a href="<?=$g4[bbs_path]?>/login.php?url=<?=$urlencode?>"><img src="http://kimgeun.mireene.com/html/images/login_img.gif" width="43" height="16" border="0"></a>&nbsp;<img src="http://kimgeun.mireene.com/html/images/topline_img.gif" width="1" height="12">&nbsp;<img src="http://kimgeun.mireene.com/html/images/contact_img.gif" width="48" height="16"></td>
      </tr>
  <? } else { ?>
            <!-- 로그인 이후 -->
<tr>
        <td align="center" style="padding-left:631px;padding-top:6px;"><a href="/"><img src="http://kimgeun.mireene.com/html/images/home_img.gif" width="43" height="16" border="0"></a>&nbsp;<img src="http://kimgeun.mireene.com/html/images/topline_img.gif" width="1" height="12">&nbsp;<a href="<?=$g4[bbs_path]?>/logout.php"><img src="http://kimgeun.mireene.com/html/images/logout_img.gif" width="53" height="16" border="0"></a>&nbsp;<img src="http://kimgeun.mireene.com/html/images/topline_img.gif" width="1" height="12">&nbsp;<img src="http://kimgeun.mireene.com/html/images/contact_img.gif" width="48" height="16"></td>
     
  </tr>
  <? } ?>
    </table>
    </td>
  </tr>
  <tr>
    <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="1000" height="378" hspace="0" vspace="0">
      <param name="movie" value="http://kimgeun.mireene.com/html/images/main_image.swf">
      <param name="quality" value="high">
      <embed src="http://kimgeun.mireene.com/html/images/main_image.swf" width="1000" height="378" hspace="0" vspace="0" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
    </object></td>
  </tr>
</table>
<!-- 상단 로고 및 버튼 버튼 및 플래쉬 이미지 끝 -->





<style type="text/css">
#middiv {
width:<?=$table_width?>px;
position:relative;
margin:0px auto;
    vertical-align:top;
    float:left;
}
#middiv #mleft  { width:220px; float:left; padding:0 0 0 43; }
#middiv #mright { width:683px; float:left; padding:0 0 0 15; }
body { background-color : #FEF0FF }
</style>

 
<table width='100%' cellpadding=0 cellspacing=0>
<tr>
    <td width=43></td>
    <td width=279 valign=top>
    <div style='height:12px;'></div>
      <table width="227" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td style="padding-left:5px;"> <?=outlogin("basic"); // 외부 로그인 ?></td>
  </tr>
</table>


        <div style='height:10px;'></div>
<?

if ($board[bo_table]=='basic' || $board[bo_table]=='im' || $board[bo_table]=='high'){?>
<table border="0" width="227" cellpadding="0" cellspacing="0" >
<tr>
<td>
<? $sql = " select * from $g4[board_table] where gr_id = 'edu' order by bo_table ";
$bo = sql_query($sql);
while ($row = mysql_fetch_array($bo)) {
echo "<div style='padding-left:6px;'><table width='220' border='0' cellpadding='4' cellspacing='0'>
<tr><td align=center bgcolor='#ffffff'><a href='$g4[path]/bbs/board.php?bo_table=$row[bo_table]'> $row[bo_subject]</a>
</td></tr></table></div>
<br>
";}
?>

 </td>
</tr>
</table>

<? }
  else if ($board[bo_table]=='notice' || $board[bo_table]=='free' || $board[bo_table]=='qna' || $board[bo_table]=='study'){?>
  <table border="0" width="227" cellpadding="0" cellspacing="0" >
      <tr>
        <td>
            <? $sql = " select * from $g4[board_table] where gr_id = 'community' order by bo_table ";
    $bo = sql_query($sql);
    while ($row = mysql_fetch_array($bo)) {
    echo "<div style='padding-left:6px;'><table  width='220' border='0' cellpadding='4' cellspacing='2'>
<tr><td align=center bgcolor='#ffffff'>
<a href='$g4[path]/bbs/board.php?bo_table=$row[bo_table]'> $row[bo_subject]</a>
</td></tr></table></div>

";}
        ?>
      </td>
      </tr>
</table>

 <? }else{ ?>
  <!--<table border="0" width="100%" cellpadding="0" cellspacing="0"> 
    <tr>
      <td>
          ????? ?? ??                       
      </td>
    </tr>
  </table>
  -->
  <? } ?>
 
    </td>
    <td width=683 valign=top>




게시판의 왼편메뉴를 G4 질문과 답변을 참고하여 작업했지만,
게시판이 전혀 없는 페이지에는 head.php 파일에  메뉴 소스를 넣지 않고
아웃로그인 부분 밑에 따로 왼편메뉴를 넣는 방법은 혹시 있나요??
어떠한 방법이 있는지요???

즉, 메인페이지 (인덱스페이지)에는 아웃로그인 밑에 아무것도 없이 하고  싶고
만약 English 소개 메뉴를 클릭하면 소개에 관련된 메뉴만 왼편에 나타내고 싶습니다.
그리고 게시판에 관련된 페이지에서 게시판에 대한 메뉴만 나타내고 싶습니다.
다시말해서, 그누보드 홈페이지 처럼요.... 가능한가요???
주로 메뉴가 들어가는 부분은 아웃로그인 밑입니다.

혹시 이게 카테고리 적용방법인가요???

너무나 힘듭니다.

도움을 꼭 주십시요....
  • 복사

댓글 전체

© SIRSOFT
현재 페이지 제일 처음으로