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

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

QA

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

답변 2

본문

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

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

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

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로 조정하세요

 

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 125,873
© SIRSOFT
현재 페이지 제일 처음으로