홈페이지내 리스트 출력할려고 합니다 어케해야하나요 > 그누4 질문답변

그누4 질문답변

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

홈페이지내 리스트 출력할려고 합니다 어케해야하나요 정보

홈페이지내 리스트 출력할려고 합니다 어케해야하나요

첨부파일

right.php (8.1K) 1회 다운로드 2006-02-26 22:16:14

본문

busanguin.com 공지사항 및 뉴스 리스트 출력
구버전을 신버전 그누보드4로 리스트 출력할려가홉니다
어디를 어떻게 고쳐야하죠
파일 아래올렸고요 아래는 파일내용입니다
구버전이라 교체할려니 막막합니다
어디를 어떻게 고처야 되는건가요
그누보드4설치방법은 다 알고있는데
리스트출력 구버전을 그누보드4로 바꿔서 리스트 출력할려니
어케하는지 막막합니다
고칠려고해보니 막 에러메시지가 뜹니다
                  <td valign=top width=150>
<!-- 우측 시작 -->
            <table cellspacing=0 cellpadding=0>
              <tr>
                <td height=7></td>
              </tr>
            </table>

<?

if($location == "<a href=/>HOME</a>"){

echo("
            <table width=100% height=25 cellspacing=1 cellpadding=0 bgcolor=CECECE>
              <tr>
                <td bgcolor=F7F7F7>  <a href=/bbs/gblist.php?gb_table=bbs_notice><font color=3C64A7><b>공지사항 및 뉴스</b><font size=2>&nbsp; more...</font></font></a></td>
              </tr>
            </table>
            <table width=100% cellspacing=0 cellpadding=0 align=center>
              <tr>
                <td height=5></td>
              </tr>
");

$table = gb_board_bbs_notice;
$result = mysql_query("select bd_id, bd_subject from $table order by bd_id desc limit 0,5",$db);
while($row = mysql_fetch_array($result)){
$bd_subject = stripslashes($row[bd_subject]);
$bd_subject_cut = cut($bd_subject,20);
if(strlen($bd_subject) > 20){ $bd_subject_cut = $bd_subject_cut . ".."; }
echo("
              <tr>
                <td height=20 valign=bottom style=line-height:13pt>&nbsp;<font style=font-size:4pt;color:3C64A7>■</font> <a href=/bbs/gbview.php?gb_table=bbs_notice&bd_id=$row[bd_id]>$bd_subject_cut</a></td>
              </tr>
              <tr>
                <td height=1 background=/images/line_width.gif></td>
              </tr>
");
}

echo("
              <tr>
                <td height=5></td>
              </tr>
            </table>
            <table cellspacing=0 cellpadding=0>
              <tr>
                <td height=7></td>
              </tr>
            </table>
");

}

?>

            <table width=100% cellspacing=0 cellpadding=0>
              <tr>
                <td background=/images/job_list/today_bg.gif bgcolor=004386>
                  <table width=100% cellspacing=0 cellpadding=0>
                    <tr>
                      <td><a href=/job_reg/today.php title='오늘의 구인정보 신청하기'><img src=/images/job_list/today2_ti.gif border=0 alt='오늘의 구인정보 신청하기'></a></td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
            <table width=100% cellspacing=0 cellpadding=0>
              <tr>
                <td height=4></td>
              </tr>
            </table>
            <table width=100% cellspacing=0 cellpadding=0>
              <tr>
                <td width=1 bgcolor=C6C6C6></td>
                <td>
<?

$table = jobseeker;
$thistime = time();

$result = mysql_query("select jobcode, company, area, state, subject, hopesex, option1, option2, option3, option4, register_date, closedate from $table where pay2_date > '$thistime' and closedate > '$thistime' order by rand() limit 0,20",$db);
for($i=0;$row = mysql_fetch_array($result);$i++){
$today_jobcode = $row[jobcode];
$today_company = stripslashes($row[company]);
$today_company = str_replace("(주)","㈜",$today_company);
$today_company_cut = cut($today_company,15);
if(strlen($today_company) > 15){ $today_company_cut = $today_company_cut . ".."; }
$today_area = $row[area];
$today_state = $row[state];
$today_subject = stripslashes($row[subject]);
$today_subject_cut = cut($today_subject,35);
if(strlen($today_subject) > 35){ $today_subject_cut = $today_subject_cut . ".."; }
switch($row[hopesex]){
case "무관" : $today_hopesex = "무관"; break;
case "남자" : $today_hopesex = "男"; break;
case "여자" : $today_hopesex = "女"; break;
}

if($i % 2){ $bgcolor = "EFEFEF"; }else{ $bgcolor = "F7F7F7"; }

echo("
              <table width=100% cellspacing=0 cellpadding=0>
                <tr>
                  <td height=1></td>
                </tr>
              </table>
              <table width=100% cellspacing=5 cellpadding=0 bgcolor=$bgcolor>
                <tr>
                  <td><a href=/job_list/detail.php?jobcode=$today_jobcode><b>$today_company_cut</b></a></td>
                </tr>
                <tr>
                  <td>
                    <font style=font-size:3pt;color:004386>●</font> <a href=/job_list/detail.php?jobcode=$today_jobcode><font color=004386>$today_area $today_state</font> / <font color=DE801B>$today_hopesex</font></a>
                  </td>
                </tr>
                <tr>
                  <td>
                    &nbsp;<a href=/job_list/detail.php?jobcode=$today_jobcode>$today_subject</a>
                  </td>
                </tr>
              </table>
              <table width=100% cellspacing=0 cellpadding=0>
                <tr>
                  <td height=1  background=/images/line_width.gif></td>
                </tr>
              </table>
              ");
}

?>
                </td>
                <td width=1 bgcolor=C6C6C6></td>
              </tr>
            </table>
            <table width=100% cellspacing=0 cellpadding=0>
              <tr>
                <td height=10></td>
              </tr>
<!-- 배너부분 -->
              <tr>
                <td><a href=http://click.linkprice.com/click.php?m=mylotto&a=A100010794&l=0006&u_id=  target=_blank><img src=http://img.linkprice.com/files/stlink/mylotto/0006 border=0 width="150" height="60"></a></td>
              </tr>
              <tr>
                <td height=5></td>
              </tr>
              <tr>
                <td><a href=http://click.linkprice.com/click.php?m=990won&a=A100010794&l=0018&u_id= target=_blank><img src=http://www.990won.net/linkbanner/15060.gif border=0></a></td>
              </tr>
              <tr>
                <td height=5></td>
              </tr>
              <tr>
                <td><a href=http://click.linkprice.com/click.php?m=ddmclub&a=A100010794&l=0062&u_id= target=_blank><img src=http://imgextra.ddmclub.co.kr/link/e2_150x60.jpg border=0></a></td>
              </tr>
              <tr>
                <td height=5></td>
              </tr>
              <tr>
                <td><a href=http://click.linkprice.com/click.php?m=yuksul&a=A100010794&l=0006&u_id=  target=_blank><img src=http://img.linkprice.com/files/stlink/yuksul/0006 border=0 width="150" height="50"></a></td>
              </tr>
              <tr>
                <td height=5></td>
              </tr>
              <tr>
                <td><a href=http://click.linkprice.com/click.php?m=cinepox&a=A100010794&l=0038&u_id=  target=_blank><img src=http://img.linkprice.com/files/stlink/cinepox/0006 border=0></a></td>
              </tr>
  <tr>
                <td height=5></td>
              </tr>
  <tr>
                <td><a href=http://click.linkprice.com/click.php?m=tongyang&a=A100010794&l=0012&u_id=  target=_blank><img src=http://www.tongyangevent.com/linkprice/img/l-e13740.gif border=0  width="150" height="50"></a></td>
              </tr>
              <tr>
                <td height=5></td>
              </tr>
  <tr>
                <td><a href=http://click.linkprice.com/click.php?m=spospo&a=A100010794&l=0028&u_id=  target=_blank><img src=http://www.spo.com/kr/ads/gostop/150_100.gif border=0></a></td>
              </tr>
              <tr>
                <td height=5></td>
              </tr>
  <tr>
                <td><a href=><img src=http://img.linkprice.com/files/stlink/hapia/0019 border=0></a></td>
              </tr>
              <tr>
                <td height=5></td>
              </tr>
  <tr>
                <td><a href=http://click.linkprice.com/click.php?m=luxbi&a=A100010794&l=0004&u_id=  target=_blank><img src=http://img.linkprice.com/files/stlink/luxbi/0004></a></td>
              </tr>
<!-- 배너부분 끝 -->
            </table>
            <table cellspacing=0 cellpadding=0>
              <tr>
                <td height=7></td>
              </tr>
            </table>
<!-- 우측 끝 -->
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td colspan=4 height=1 bgcolor=747474></td>
  </tr>
</table>

댓글 전체

simple 스킨을 이용하여 free 라는 게시판에서 3라인 40글자만 출력하고 싶다면
<?=latest("simple", "free", 3, 40);?>
과 같은 코드를 출력하고 싶은곳에 넣으시면 됩니다.
사용방법 :
<?=latest("스킨명", "게시판아이디", 출력라인수, 출력글자수);?>
이걸 넣고 싶은곳에 넣으라고 하는데 위에 파일에서 어느부분에 넣어야하나요
<?=latest("스킨명", "게시판아이디", 출력라인수, 출력글자수);?>를 나에게 맞게
고쳐서 어디다가 넣어야하나요 위에 소스 공지사항및뉴스 그밑에다 넣으니깐
에러메시지 뜨더라고요 어느부분어느위치에 넣어야하며
위 파일에서 어떤내용을 지워야하고 고쳐야하는지요 하는건가요
넣으니깐 자꾸 에러메시지가 뜹니다 구버전에 소스가 들어가있어 그런것같습니다
어느 소스를 수정하게 삭제할부분은 삭제해야하나요
새로 설치하신것이 그누보드4 라면 .....
삭제할부분+++++++

<?

if($location == "<a href=/>HOME</a>"){

echo("
            <table width=100% height=25 cellspacing=1 cellpadding=0 bgcolor=CECECE>
              <tr>
                <td bgcolor=F7F7F7>  <a href=/bbs/gblist.php?gb_table=bbs_notice><font color=3C64A7><b>공지사항 및 뉴스</b><font size=2>&nbsp; more...</font></font></a></td>
              </tr>
            </table>
            <table width=100% cellspacing=0 cellpadding=0 align=center>
              <tr>
                <td height=5></td>
              </tr>
");

$table = gb_board_bbs_notice;
$result = mysql_query("select bd_id, bd_subject from $table order by bd_id desc limit 0,5",$db);
while($row = mysql_fetch_array($result)){
$bd_subject = stripslashes($row[bd_subject]);
$bd_subject_cut = cut($bd_subject,20);
if(strlen($bd_subject) > 20){ $bd_subject_cut = $bd_subject_cut . ".."; }
echo("
              <tr>
                <td height=20 valign=bottom style=line-height:13pt>&nbsp;<font style=font-size:4pt;color:3C64A7>■</font> <a href=/bbs/gbview.php?gb_table=bbs_notice&bd_id=$row[bd_id]>$bd_subject_cut</a></td>
              </tr>
              <tr>
                <td height=1 background=/images/line_width.gif></td>
              </tr>
");
}

echo("
              <tr>
                <td height=5></td>
              </tr>
            </table>
            <table cellspacing=0 cellpadding=0>
              <tr>
                <td height=7></td>
              </tr>
            </table>
");

}

?>



넣는 내용----
<table width=100% cellspacing=0 cellpadding=0>
              <tr>
                <td>
<?=latest("simple", "free", 3, 40);?>
                </td>
              </tr>
</table>
네임클로버님 말씀대로 하니깐 에러는 안나는데
게시판 주소 http://www.xn--t60b722bhzg.com/gnu4/bbs/board.php?bo_table=ognews
홈주소 http://www.xn--t60b722bhzg.com/index.php
 게시판주소이렇게 될때
아래와 같이 쓰면되나요 basic 스킨사용합니다
<?=latest("basic", "ognews", 5, 40);?> <------ 요렇게 썻는데 요거 쓴줄이 에러납니다
그래서 지금현재 지웠음 요 에러난 요줄만 고치면 될것같습니다
위 상황으로 보았을때 무엇을 고쳐야할까요 문제인가요
아마도 최신글 출력을 위한 함수와 기본 함수를 불러 들이지 않으셔서 그런것 같네요.....
사용법은 맞습니다만......
링크로 알려드린 자주하시는 질문 게시판에서
홈주소의 index.php의 상단에
$g4_path를 설정하시고 _common.php 와 lib/latest.lib.php를 불러들이시면 될듯합니다.
경로에 대해서는 본 질답게시판이나 팁 게시판을 검색해 보시길 권유 드립니다.
홈주소  index.php 상단에 $g4_path 설정을 쓰라는 말인지요...어떻게하죠
_common.php 와 lib/latest.lib.php 를 불러들이라는 말씀이 무슨말씀이신지요
불러들인다 어디로 불러들인다는 말슴인가요
더이상 여쭤보면 안되겠죠  팁 질문게시판 검색해보겠습니다
아 어렵다....
네잎클로버님 감사합니다
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

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