최신글불러오기에서 클릭하면 게시판본문페이지로 이동하는 방법 질문합니다.

최신글불러오기에서 클릭하면 게시판본문페이지로 이동하는 방법 질문합니다.

QA

최신글불러오기에서 클릭하면 게시판본문페이지로 이동하는 방법 질문합니다.

본문

안녕하세요. 밑에도 질문 비슷한 올렸는데 다시 한번 질문드려요

메인에 최신글 불러오기는 했는데 제목을 클릭했을 때 게시판 내용이 메인에서 표시되는 것이 아니라

게시판 본문 페이지로 넘어가게 하고싶습니다.

a href 주소를 변경해야하는 것 같은데 어떻게 수정해야할 지 모르겠어서요

 

링크 클릭하면 메인으로 연결됩니다.

도움 부탁드립니다!

 

 

<?

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

?>

 

 

<table width=100% cellpadding=0 cellspacing=0>

<? for ($i=0; $i<count($list); $i++) { ?>

<tr>

    <td colspan=4 align=center>

        <table width=95%>

        <tr>

            <td height=25><img src='<?=$latest_skin_path?>/img/latest_icon.gif' align=absmiddle>   

            <?

            echo $list[$i]['icon_reply'] . " ";

            echo "<a href='{$list[$i]['href']}'>";

            if ($list[$i]['is_notice'])

                echo "<font style='font-family:돋움; font-size:9pt; color:#2C88B9;'><strong>{$list[$i]['subject']}</strong></font>";

            else

                echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>{$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></tr>

        <tr><td bgcolor=#EBEBEB height=1></td></tr>

        </table></td>

</tr>

<? } ?>

 

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

 

</table>

 

  

이 질문에 댓글 쓰기 :

답변 2

/bbs/list.php 페이지에

    $list[$i] = get_list($row, $board, $board_skin_path, $board[bo_subject_len]);

구문이 있습니다.

해당 링크에서  모든값이 맞게 들어가야 링크가 이어집니다.

위변수들 echo로 체크해보세여

위변수들을 찍어보세여
echo $row;
echo $board;
이런식으로여 위값으로 안된다 싶으면
{$list[$i]['href']} 값자체를 재정의해야합니다.
$list['href'] = "";
$list['href'] = 재정의;

위값들을 확인해야대는데 /bbs/list.php 페이지 자체에서 확인을 해야합니다.
안되시면 링크 재정의하는것도 좋은 방법입니다.

괸리자페이지 게시판관리에서 글읽기 권한을 레벨1로 조정하세요

 

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

회원로그인

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