그누보드5 홈페이지 만들기 메인페이지 최신글 밑 이미지 불러오기

그누보드5 홈페이지 만들기 메인페이지 최신글 밑 이미지 불러오기

QA

그누보드5 홈페이지 만들기 메인페이지 최신글 밑 이미지 불러오기

본문

안녕하세요.

 

예전에 그누보드4로 얼렁뚱땅 홈피를 만들어 줬을 때는 별 문제가 되지 않았는데...

그때는 경로가 획갈려서 걍 www 폴더 안에 그누보드 파일을 다 업로드 하고 홈피를 만들어서 작동하는데 이상은 없었으나

 

이번에 개인홈피 만들어 볼려고 그누보드5를 받아서 작업을 해보고 있습니다.

최신글 스킨이 맘에 드는 것이 없어서 예전에 쓰던 그누보드4 최신글 스킨이 맘에 들어서 그걸 사용할려고

소스를 이리저리 건들여 봤는데, 새로고침 하면 게시판 제목이 사라져 버립니다. ㅠㅠ

 

그누보드 위치는 g5 라 이름을 줬고요...

메인페이지에 어떻게 정의하고 불러와야 되는지 ㅠㅠ

소스 한번 봐주실분 있으신가요?

 

ㅠㅠ

 

<?php

$G5_PATH="./g5";  // 그누보드5 g5 폴더에 넣었음 이렇게 정의를 해줘야 될것 같아서 해놨어요.. ㅠ

include_once("$G5_PATH/common.php");
include_once("$G5_PATH/lib/latest.lib.php");

?>

 

#### 질문   그누보드5  폴더이름을 g5라고 줬으면 $G5_PATH="./g5"; 게 해주는 것이 맞는지요?

 

~~~~~생략~~~~
 <!---------------------------공지사항----------------------------->
            <?=latest('ots.cafe24.basic', 'notice', 5, 20); include_once("$G5_PATH/skin/latest/ots.cafe24.basic/latest.skin.php");?>
 <!---------------------------공지사항 끝----------------------------->  

 

메인화면에 최신게시글을 불러오는 소스를 위처럼 쓰면 맞는지요?

근데 이상하게 새로고침 해버리면 제목이 사라집니다 ㅠㅠ

그누보드4 최신글 스킨에서 다운받은글 그누보드5 스킨에 넣고

아래와 같이 수정을 했습니다.

 

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>

<style TYPE="text/css">
<!--
a:link { text-decoration: none;}
a:visited { text-decoration: none;}
a:active { text-decoration: none;}
a:hover {color:#0066ff; text-decoration:underline;}
#ots_latest_cafe24_top {}
#ots_latest_cafe24_top tr {height:24px;}
#ots_latest_cafe24_top td {border-bottom:1px solid #e5e5e5;}
#ots_latest_cafe24_top a {color:#333333; text-decoration:none;}
#ots_latest_cafe24_top a:hover {color:#37abe4; text-decoration:none;}
#ots_latest_cafe24_list {}
#ots_latest_cafe24_list tr {height:22px; text-decoration:none;}
#ots_latest_cafe24_list td {color:#333333; text-decoration:none;}
-->
</style>

<table width=100% cellpadding=0 cellspacing=0 id="ots_latest_cafe24_top">
<tr>
    <td>
    <div style="float:left;font:normal 12px tahoma;"><a href='<?php echo G5_BBS_URL ?>/board.php?bo_table=<?=$bo_table?>'><img src="<?=$latest_skin_path?>/img/icon_name_arrow.png" border=0 > <?=$board[bo_subject]?></a></div>
    <div style="float:right;font:normal 12px tahoma;"><a href='<?php echo G5_BBS_URL ?>/board.php?bo_table=<?=$bo_table?>'>더보기</a></div><td>

 

~~~~~~~원소스는

<div style="float:left;font:normal 12px tahoma;"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><img src="<?=$latest_skin_path?>/img/icon_name_arrow.png" border=0 > <?=$board[bo_subject]?></a></div>
    <div style="float:right;font:normal 12px tahoma;"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'>더보기</a></div>

~~~~~ 이렇습니다.

 

<?=$g4[bbs_path]?> 를 <?php echo G5_BBS_URL ?>게 고쳐서 문제가 생긴걸까요? ㅠㅠ 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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

<table width="100%" cellpadding="0" cellspacing="0" id="ots_latest_cafe24_list">
<? for ($i=0; $i<count($list); $i++) { ?>
 <tr>
            <td>
            <?
            echo $list[$i]['icon_reply'] . " ";
            echo "<a href='{$list[$i]['href']}'>";
            if ($list[$i]['is_notice'])
                echo "<font style='font-family: 돋움, Dotum, AppleGothic, sans-serif; font-size:9pt; text-decoration:none; color: rgb(86, 89, 92);'><img src=\"{$latest_skin_path}/img/icon_notice.png\" border=0 align=absmiddle> {$list[$i]['subject']}</font>";
            else
                echo "<font style='font-family: 돋움, Dotum, AppleGothic, sans-serif; font-size:9pt; text-decoration:none; color: rgb(86, 89, 92);'><img src=\"{$latest_skin_path}/img/icon_upgrade.png\" border=0 align=absmiddle> {$list[$i]['subject']}</font>";
            echo "</a>";

            if ($list[$i]['comment_cnt'])
                echo " <a href=\"{$list[$i]['comment_href']}\"><span style='font-family:돋움; font-size:8pt; color:#9A9A9A;'>{$list[$i]['comment_cnt']}</span></a>";

            // if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
            // if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }

            echo " " . $list[$i]['icon_new'];
            echo " " . $list[$i]['icon_file'];
            echo " " . $list[$i]['icon_link'];
            echo " " . $list[$i]['icon_hot'];
            echo " " . $list[$i]['icon_secret'];
            ?></td>
            <td align=center><span style="color: rgb(154, 159, 165); font-family: Verdana, sans-serif; font-size: 10px; letter-spacing: -1px; line-height: normal">
            <?=$list[$i][datetime]?>
            </td>
</tr>
<? } ?>

<? if (count($list) == 0) { ?><tr><td colspan=2 align=center height=50><font color=#6A6A6A>게시물이 없습니다.</a></td></tr><? } ?>

</table>​

       
 <!---------------------------커뮤니티----------------------------->
<?=latest('ots.cafe24.basic', 'community', 5, 20); include_once("$G5_PATH/skin/latest/ots.cafe24.basic/latest.skin.php");?>
 <!-------------------------------커뮤니티 끝----------------------------->

 

 

ㅠㅠ

 

메인페이지에서 그누보드게시판을 잘 불러다 쓸수 있는

페이지 상단구조부터 어떻게 정의 해야되는지 개념좀 ㅠㅠ

 

이 질문에 댓글 쓰기 :

답변 1

답변을 작성하시기 전에 로그인 해주세요.
전체 60,954
QA 내용 검색

회원로그인

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