[질문] 그누보드 게시판 중앙에 삽입하는 방법??? > 그누4 질문답변

그누4 질문답변

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

[질문] 그누보드 게시판 중앙에 삽입하는 방법??? 정보

[질문] 그누보드 게시판 중앙에 삽입하는 방법???

본문

그누보드 자체로 불러오는 것은 알겠는데요
 
이번에 교육용 사이트에 그누보드를 추가 해보려고 하는데요..
 
그 사이트의 community.php 파일을 보면 
 
인클루드로 불러오는 파일이  상단 하단 좌 우 4가지 파일로 각각 다 따로 나뉘어져 있습니다.
 
아래 그림처럼 왼쪽 메뉴부분 파일이 community_left.php 이건데요.. 여기에 그누보드 게시판 주소를
 
넣었습니다. 이렇게요.
 
<tr>
          <td width="24" height="26"  valign="middle" style="border-width:1; border-color:black; border-style:none;"> </td>
          <td style="border-width:1; border-color:black; border-style:none;" valign="middle"><a href="../gnuboard4/bbs/board.php?bo_table=license_info">자격증 안내</a></td>
</tr>
 
 
위에 처럼 그누보드 게시판 주소만 따로 넣어도 가운데 부분에 삽입이 안되는데 이 소스를 어떻게
 
고쳐야 제대로 나올 수 있나요?  고수님들께 부탁드립니다.
 
 
그누보드 위치
/gnuboard4
 
 
아래 소스는 /community/community.php  소스 입니다.
 
<? session_start();?>
<? include "../permit/config.php";?>
 

<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title><?=$site_title?></title>
<link href="/style.css" rel="stylesheet" type="text/css">
<? include "../inc/top.php"; ?>
<table width="960" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
 <!-- 메뉴부분 -->  
<td width="171" height="200" valign="top">
<? include "community_left.php"?>
        </td>
  
    <TD width="630" align="center" valign="top" style="padding-top:8px; ">
      <?
if(!$board_code) $board_code="notice_board";
include("../board/board.php");
?>
    </td>
  
        <td valign="top">
         <? include "../inc/study_right.php"; ?>
</td>
</tr>
</table>
<? include "../inc/bottom.php"; ?>

</body>
</html>
 
 
 
자격증안내를 클릭시 가운데에 그누보드 게시판이 나오게 하는 방법을 알려주세요.
 
 
 
추신 : 자격증안내 외에 다른 게시판들은 그누보드가 아닙니다.
  • 복사

댓글 전체

rolo님! 뉴피아님! 답변에 진심으로 감사드립니다. ^^;;

말씀하신데로...
/community/community.php 의 상단부분과 하단 부분을 head.php 와 tail.php에 그대로 복사해서 나누어 적용해본 결과 나오긴 나오는데 아래와 같이 페이지가 깨져나옵니다. 이거 어떻게 수정해야하나요?

http://www.fun-edu.net/gnuboard4/bbs/board.php?bo_table=license_info 

그리고 여기에 깨져나오는 좌측 메뉴들을 클릭하면 아래와 같이 주소가 나옵니다.
http://www.fun-edu.net/gnuboard4/community/community.php?board_code=notice_board

community/community.php  가  gnuboard4/ 와 같은 경로인데 하위 경로로 가버리면 안되거덩요...
이거 디게 복잡하네요. ^^;

PHP 함수로 경로를 바꾸어 불러와야하나요? 제가 PHP를 잘 몰라서요.. 고수님들 부탁드립니다.

이거 성공 시켜주시는분에게 제가 아끼고 아껴 먹는 홍삼 팩을 정말로 선물 드릴께요..

항상 야간 작업들 하시느라 피곤들 하실텐데.. 집주소를 가르쳐주시면... 꼭 사례하겠습니다.  ^^;
제가 말씀한 결과로 나온 것이 아닌 듯합니다만...
나오긴 나오는데란 말을 모르겠군요. 상하좌우 다 안나오는 듯도하는데요.
게시판만 나오는 것이 아닌가요.

헤더 파일 풋더 파일을  그누보드 게시판 관리자모드에서 그냥 불러오면 될텐데요.
헤더와 풋더 파일을 나눈  /community/community.php  소스 입니다.
 

-------------------------------------------------------여기서 부터 head.php 에 복사해 넣었습니다--------------

<? session_start();?>
<? include "../permit/config.php";?>
 

<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title><?=$site_title?></title>
<link href="/style.css" rel="stylesheet" type="text/css">
<? include "../inc/top.php"; ?>
<table width="960" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
 <!-- 메뉴부분 --> 
<td width="171" height="200" valign="top">
<? include "community_left.php"?>
        </td>
 
    <TD width="630" align="center" valign="top" style="padding-top:8px; ">
      <?
if(!$board_code) $board_code="notice_board";
include("../board/board.php");
?>
    </td>
  --------------------------여기 까지  head.php 에 복사해 넣었습니다--------------



----------------------------------------------아래 소스를 tail.php 에 넣었습니다. --------------------------------------------------

        <td valign="top">
        <? include "../inc/study_right.php"; ?>
</td>
</tr>
</table>
<? include "../inc/bottom.php"; ?>

</body>
</html>


이렇게 하는게 맞잖아요?  관리자 모드 상단 파일 경로에 ../../community/head.php

하단 파일 경로에 ../../community/tail.php 이렇게 써넣고

그대로 적용했는데 아래 주소처럼 나오는 원인이 뭘까요?

http://www.fun-edu.net/gnuboard4/bbs/board.php?bo_table=license_info&page=

 ㅠㅠ 오늘도 밤새기 싫었는데..  정말 안될땐 눈물 납니다.

뉴피아님의 답변에 감사드립니다.
경로에 문제가 있다면 전체 경로로 우선 작업해보세요.
아래의 파일를 그누보드 관리자 페이지 해당 게시판에서 불러옵니다.

-------------------------------------------------------여기서 부터 head.php 를 복사해 넣었습니다--------------

<? session_start();?>
<? include "../permit/config.php";?>
 

<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title><?=$site_title?></title>
<link href="/style.css" rel="stylesheet" type="text/css">
<? include "../inc/top.php"; ?>
<table width="960" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
 <!-- 메뉴부분 --> 
<td width="171" height="200" valign="top">
<? include "community_left.php"?>
        </td>
 
    <TD width="630" align="center" valign="top" style="padding-top:8px; ">



----------------------------------------------아래 소스를 tail.php 에 담았습니다. --------------------------------------------------

        <td valign="top">
        <? include "../inc/study_right.php"; ?>
</td>
</tr>
</table>
<? include "../inc/bottom.php"; ?>

</body>
</html>
밤잠 줄여 가면서 해주신 답변에 진심으로 감사드립니다.

고수님들께서 일러주신대로 그래로 했지만 잘 안돼네요. ^^

또 다른 의견이 있으신 분들이 있다면 해답 좀 부탁드립니다.
http://www.fun-edu.net/gnuboard4/ 폴더의 head.php와 tail.php를
위에서 만드신 head.php와 tail.php가 나오도록 변경하시고

관리자 모드 상단 파일 경로에 ../head.php
하단 파일 경로에 ../tail.php 를 적용하신후

해당게시판을 호출해보세요
http://www.fun-edu.net/gnuboard4/bbs/board.php?bo_table=license_info
답변에 감사드립니다. ^^

아이프레임으로 삽입하는 방법은 가능한가요?

아이프레임을 사용한다면 다른 경로에는 지장이 없을꺼라는 판단이 드는데요?

그래서 왼쪽메뉴 community_left.php에  아이프레임을 삽입했더니...

 
<tr>
      <td width="24" height="26"  valign="middle" style="border-width:1; border-color:black; border-style:none;">&nbsp;</td>
      <td style="border-width:1; border-color:black; border-style:none;" valign="middle"><iframe src="../gnuboard4/bbs/board.php?bo_table=license_info">자격증 안내</iframe></td>
</tr>

이렇게 했을 때

메인페이지 커뮤티니 버튼을 누르면 그누를 삽입한 조그만한 아이프레임이 좌측에 처음 부터 나와버려서 좌측메뉴(community_left.php)가 깨져서 나와버려요.. 근데 그렇게 하지 않고 첨부터 아이프레임이 나오지 않고
자격증 안내"라는 글자를 클릭했을 때 중앙에 나오게 하는 방법을 어떻게 하면 되나요?
© SIRSOFT
현재 페이지 제일 처음으로