인덱스(게시판 문제) > 그누4 질문답변

그누4 질문답변

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

인덱스(게시판 문제) 정보

인덱스(게시판 문제)

본문

게시판이 안된다거나 이런 문제는 아닙니다.
 
www.tuna.kt.to 가보시면 아실 수 있을 텐데
 
최근게시물이 헤드 아래에 나오내요 오른쪽에 나오게 하고 싶은데
 
저번에 한번 질문 올렸었는데 유아원님께서 head.php와 tail.php를 알고 싶다고 하셨습니다.
 
head.php 소스 입니다.
 
<?
include_once("./_common.php");
include_once("$g4[path]/lib/outlogin.lib.php");
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 
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]/head.sub.php");
?>
<html>
<head>
<meta name="GENERATOR" content="Namo WebEditor v6.0">
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title>연습용</title>
</head>
<body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0">
<table cellspacing="0" bordercolordark="black" bordercolorlight="black" width="1058" cellpadding="0">
    <tr>
        <td width="1058" colspan="2"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="" width="1003" height="400">
            <param name="movie" value="">
            <param name="play" value="true">
            <param name="loop" value="true">
            <param name="quality" value="high">
<embed width="1003" height="400" src="" play="true" loop="true" quality="high" pluginspage=""></embed></object></td>
    </tr>
    <tr>
        <td width="273">
            <p> </p>
            <p><?=outlogin("basic")?>
            <!-- 오란씨 소년소녀가장돕기 사랑실천 검색창 소스 시작
아래코드중 스크립트관련된 코드 삭제하시면 안됩니다. -->
            <script language='JavaScript' src='http://www.oranc.co.kr/inc/in.html?ui=CAIJBQoREQtDWw=='>
            </script>
            <script>
window.onload=autoImg</script>
            <LINK REL=STYLESHEET TYPE="text/css" HREF="">
</p>
            <form name="oranc_frm" method="get" action="?"  target="_blank"  onsubmit='return goSubmit(this);'>
<table width="181" border='1' cellpadding='1' cellspacing='0' bordercolor='#f0f0f0'>
<tr>
<td width="175" valign='middle'><table width="173" border='0' cellspacing='0' cellpadding='0'>
<tr>
<td width="173" height='27' valign='bottom'>
<input type='text' name='cmd' size="22" onkeydown='clrImg(this)' onmousedown='clrImg(this)'>
<input type=image src='http://www.oranc.co.kr/home_images/search/button15.gif' width='20' height='20' align='absmiddle'> </td>
</tr>
<tr>
<td width="173" align=center height=23><span id=SEARCH_WORD></span><script>s_genWordlist();</script></td>
</tr>
</table></td>
</tr>
</table>  
  <input type=hidden name=M_mode value='b_sch'>
<input type=hidden name=skin value='base'>
<input type=hidden name=ui value='CAIJBQoREQtDWw=='>
</form>
            <p><!-- 오란씨 소년소녀가장돕기 사랑실천 검색창 소스 끝 -->
</p>
            <p><?=poll("basic",1); // 설문조사 ?></p>
            <p><?=visit("basic")?></p>
            <p><?=connect("basic");?></p>

</td>
        <td width="785"> </td>
    </tr>
</table>
</body>
</html>
 
또 tail.php 소스 입니다.
 
<?include_once("$g4[path]/tail.sub.php");?>
<html>
<head>
<meta name="GENERATOR" content="Namo WebEditor v6.0">
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title>제목 없음</title>
</head>
<body>
<p><img src="" width="635" height="100" border="0"></p>
</body>
</html>
 
그리고 index.php인 ckacl.php 소스도 쓰겠습니다.
 
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
$g4['title'] = "";
include_once("$g4[path]/kim1/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("_head.php");
?>
<!-- 메인화면 최신글 시작 -->
<td width="50%" valign=top>
<?
//  최신글
$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("scroll", $row['bo_table'], 12, 70, "4,25");
    echo "<p>\n";
}
?>
</td></tr></table>
<!-- 메인화면 최신글 끝-->
<?
include_once("_tail.php");
include_once("$g4[path]/kim1/tail.sub.php")
 
그리고 kimhyudori.oranc.co.kr/gnuboard4/ 여기 에서 로그인한다음에
 
게시판 손볼때요
 
게시판관리 -> 수정 -> 게시판 테이플 폭 50으로 맞췄습니다 (100이하는 %센트로 인식한다더군요)
 
이렇게 소스가 있습니다만 저게 왜 저렇게 되는지
 
저번에 답변을 주신 유아원님 또 이 글을 다 보신분중에서 어떻게 해야 하는지
 
아시는분은 댓글에 답변 올려주시면 감사하겠습니다.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

댓글 전체

예제 링크
http://www.morssola.co.kr/Q.php
============================
index.php

<?
$g4_path = ".";
include_once("$g4_path/_common.php");
$g4[title] = "타이틀을 입력하세요.";
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/latest.lib.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");
?>

<table border="0" cellspacing="0" cellpadding="0" align="center" valign="top">
<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="1003" height="400">
<param name="movie" value="http://kimhyudori.oranc.co.kr/gnuboard4/kim1/kim.swf">
<param name="play" value="true">
<param name="loop" value="true">
<param name="quality" value="high">
<embed width="1003" height="400" src="http://kimhyudori.oranc.co.kr/gnuboard4/kim1/kim.swf" play="true" loop="true" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object></td>
</tr>
<tr>
<td>

<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="273" align="center" valign="top">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td height="10"></td></tr>
<tr>
<td><?=outlogin("basic")?></td>
</tr>
<tr><td height="20"></td></tr>
<tr>
<td align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<!-- 오란씨 소년소녀가장돕기 사랑실천 검색창 소스 시작 아래코드중 스크립트관련된 코드 삭제하시면 안됩니다. -->
<script language='JavaScript' src='http://www.oranc.co.kr/inc/in.html?ui=CAIJBQoREQtDWw=='></script>
<script>
window.onload=autoImg
</script>
<LINK REL=STYLESHEET TYPE="text/css" HREF="http://www.oranc.co.kr/inc/style.css">
<form name="oranc_frm" method="get" action="http://search.oranc.co.kr/?"  target="_blank"  onsubmit='return goSubmit(this);'>
<table width="181" border='1' cellpadding='1' cellspacing='0' bordercolor='#f0f0f0'>
<tr>
<td width="175" valign='middle'>
<table width="173" border='0' cellspacing='0' cellpadding='0'>
<tr>
<td width="173" height='27' valign='bottom'>
<input type='text' name='cmd' size="22" onkeydown='clrImg(this)' onmousedown='clrImg(this)'>
<input type=image src='http://www.oranc.co.kr/home_images/search/button15.gif' width='20' height='20' align='absmiddle'></td>
</tr>
<tr>
<td width="173" align=center height=23><span id=SEARCH_WORD></span><script>s_genWordlist();</script></td>
</tr>
</table></td>
</tr>
</table>
<input type=hidden name=M_mode value='b_sch'>
<input type=hidden name=skin value='base'>
<input type=hidden name=ui value='CAIJBQoREQtDWw=='>
</form>
<!-- 오란씨 소년소녀가장돕기 사랑실천 검색창 소스 끝 -->
</td>
</tr>
</table></td>
</tr>
<tr><td height="20"></td></tr>
<tr>
<td><?=poll("basic",1); // 설문조사 ?></td>
</tr>
<tr><td height="20"></td></tr>
<tr>
<td><?=visit("basic")?></td>
</tr>
<tr><td height="20"></td></tr>
<tr>
<td><?=connect("basic");?></td>
</tr>
</table>
</td>
<td width="785" valign="top">
<?
//  최신글
$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("scroll", $row['bo_table'], 12, 70, "4,25");
    echo "<p>\n";
}
?>
</td>
</tr>
</table></td>
</tr>
<tr><td height="10"></td></tr>
<tr>
<td align="center">
<img src="http://kimhyudori.oranc.co.kr/gnuboard4/kim1/tail.gif" width="635" height="100"></td>
</tr>
</table>

<?
include_once("$g4[path]/tail.sub.php");
?>
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT