비회원에게도 내용이 보이도록 하려면 > 그누3질답

그누3질답

비회원에게도 내용이 보이도록 하려면 정보

그누보드 비회원에게도 내용이 보이도록 하려면

본문

<!-- 원글 내용 -->
<br>
<table width=<?=$width?> border=0 align=center cellpadding=0 cellspacing=0>
<tr>
    <td>
        <table cellpadding=3 cellspacing=1 width=100% height=100%>
        <tr><td colspan=2  height=1 bgcolor=#dddddd></td></tr>
        <tr><td>&nbsp;회원 이름 : <b><? if ($is_category) echo "[$category_name] "; ?><?=$subject?></b></td><td align=right></td></tr>
        <tr><td</td></tr>

        <!--/*<?

        // 파일 업로드 설정한 값만큼 출력

        for ($i=1; $i<=$cfg[file_count]; $i++) {

            if ($file[$i][source]) { echo "<tr><td>&nbsp;다운로드 #{$i} : <a href='{$file[$i][href]}'>{$file[$i][source]} ({$file[$i][size]})</a>, Down:{$file[$i][download]}</td></tr>"; }

        }

        ?>*/--//-->

        </table>
    </td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#dddddd></td></tr>
<tr><td colspan=2 height=0 bgcolor=#dedede></td></tr>
<tr>
    <td align=center><br>
        <table cellpadding=5 border=0>
            <tr>
                <td style='word-break:break-all;' class='lh' height=100>
                <?

                for ($i=1; $i<=$cfg[file_count]; $i++) {

                    if ($file[$i][view]) { echo $file[$i][view]; }

                }

                ?>
                <!-- 내용 출력 -->

                <span class=content><?=$content?></span><br><br>
                <?

                // 링크 설정한 값만큼 출력

                for ($i=1; $i<=$cfg[link_count]; $i++) {

                    if ($link[$i][link]) { echo "개인 사랑방으로 <a href='{$link[$i][href]}' target='$default[de_link_target]'>{$link[$i][link]}</a>, 방문자 수 : {$link[$i][hit]}"; }

                }

                ?>

                <? if ($board[bo_use_signature]) { echo $signature; } // 서명 출력 ?>
                <!-- 테러 태그 방지용 -->
                </xml></xmp>
            </td>
        </tr>
        </table>
    </td>
</tr>

</table>

<? if ($is_comment) { ?>
    <!-- 코멘트 내용 -->
    <? for ($i=0; $i<count($list); $i++) { ?>
    <a name='c<?=$list[$i][wr_id]?>'></a>

    <table width=<?=$width?> border=0 align=center cellpadding=0 cellspacing=0>
    <tr><td colspan=2 class=dotline></td></tr>
    <tr>
        <td width=170 valign=top style='padding:5px;' bgcolor=#F5F5F5><?=$list[$i][name]?>&nbsp;(<?=$list[$i][ip]?>)&nbsp;<? if ($list[$i][is_del]) { echo "{$list[$i][del_href]}<img src='$board_skin/com_del.gif' border=0 align=absmiddle></a>&nbsp;"; } ?></td>
        <td height=25>
            <table width=100% cellpadding=7 cellspacing=0>
            <tr>
                <td style='word-break:break-all; text-align:justify;' class='lh tt'><?=$list[$i][content]?></td>
            </tr>
            <tr><td align=right><font color="cf4900"><?=$list[$i][datetime]?></font></td></tr>
            </table>
      </td>
    </tr>
    </table>
    <? } // for ?>

    <? if ($is_comment_write) { ?>
    <!-- 코멘트 쓰기 -->
    <table width=<?=$width?> align=center cellpadding=0 cellspacing=0 border=0>
    <form name=fgbview method=post action='./?doc=bbs/gbupdate.php'>
    <input type=hidden name=w        value='c'>
    <input type=hidden name=bo_table value='<?=$bo_table?>'>
    <input type=hidden name=sselect  value='<?=$sselect?>'>
    <input type=hidden name=stext    value='<?=$stext?>'>
    <input type=hidden name=wr_id    value='<?=$wr_id?>'>
    <input type=hidden name=page    value='<?=$page?>'>
    <input type=hidden name=section  value='<?=$section?>'>
    <tr><td colspan=2 class=dotline></td></tr>
    <tr>
        <td valign=top width=170 style='padding:5px;' bgcolor=#F5F5F5>
            <table height=30 border=0 cellpadding=0 cellspacing=0>
            <tr>
                <td width=60 height=22>&nbsp;&nbsp;이 름 </td><td width=60><?=$c_name?></td>
            <? if ($is_guest) { ?>
            </tr>
            <tr>
                <td>&nbsp;&nbsp;비밀번호 </td>
                <td><input type=password name=wr_passwd size=10 class=input required itemname='비밀번호'>&nbsp;</td>
            <? } ?>
            </tr>
            <tr><td></td><td height=30><input type=image src='<?="$board_skin/btncomment.gif"?>' border=0 align=absmiddle></td></tr>
            </table>
        </td>
        <td style='padding:5px;'><textarea name=wr_content rows=3 style='width:100%; line-height:150%;' required itemname='내용' class=textarea></textarea>
        </td>
</tr>
    </form>
    </table>
    <? } // if ?>
<? } // if ?>




<!-- 링크 -->

<table width=<?=$width?> align=center border=0 cellpadding=0 cellspacing=0>

<tr><td colspan=2 height=1 bgcolor=#EAE8E8></td>

    </tr>

<td>&nbsp;</td>

    <td></td>

<tr>

    <td width=70% height=25>

        &nbsp;&nbsp; <? if ($search_href) { echo "<a href=\"$search_href\"><img src='$board_skin/searchlist.gif' border=0 alt='검색목록'></a>"; } ?>

        <? echo "<a href=\"$list_href\"><img src='$board_skin/list.gif' border=0 alt='목록'></a>"; ?>



        <? if ($write_href) { echo "<a href=\"$write_href\"><img src='$board_skin/write.gif' border=0 alt='글쓰기'></a>"; } ?>

        <? if ($reply_href) { echo "<a href=\"$reply_href\"><img src='$board_skin/reply.gif' border=0 alt='답변'></a>"; } ?>



        <? if ($update_href) { echo "<a href=\"$update_href\"><img src='$board_skin/edit.gif' border=0 alt='수정'></a>"; } ?>

        <? if ($delete_href) { echo "<a href=\"$delete_href\"><img src='$board_skin/delete.gif' border=0 alt='삭제'></a>"; } ?>



        <? if ($good_href) { echo "<a href=\"$good_href\"><img src='$board_skin/good.gif' border=0 alt='추천'></a>"; } ?>

        <? if ($nogood_href) { echo "<a href=\"$nogood_href\"><img src='$board_skin/nogood.gif' border=0 alt='비추천'></a>"; } ?>



        <? if ($copy_href) { echo "<a href=\"$copy_href\"><img src='$board_skin/copy.gif' border=0 alt='복사'></a>"; } ?>

        <? if ($move_href) { echo "<a href=\"$move_href\"><img src='$board_skin/move.gif' border=0 alt='이동'></a>"; } ?>

    </td>

    <td width=30% align=right>

        <? if ($prev_href) { echo "<a href=\"$prev_href\" title=\"$prev_wr_subject\"><img src='$board_skin/prev.gif' border=0 alt='이전글'></a>"; } ?><? if ($next_href) { echo "<a href=\"$next_href\" title=\"$next_wr_subject\"><img src='$board_skin/next.gif' border=0 alt='다음글'></a>"; } ?>

            &nbsp;&nbsp;&nbsp;

    </td>

</tr>

</table>

=======================
제가 회원 소개용 스킨을 개발 중에 있습니다. 저도 개발자인가 봐요. 잘은 모르겠지만................
그런데
게시물 보기 페이지에서 링크 걸린 것을 (개인 사랑방으로) 라고 이름을 바구어 놓았는데요. 그거야 바굴 수 있으니까요.

그런데 회원 로그인한 사람에게만 그것이 보이고
로그인 안 한 사람에겐 그것이 안 보입니다.
이거 비회원에게도 그대로 볼 수 있게 하려면 어느 소스를 어떻게 고쳐야 하나요? 좀 알려주십시오. 제발.
  • 복사

댓글 전체

감사합니다만, 그렇게 해도 마찬가지네요. 비회원에겐 (링크) 항목이 안 보이는데, 비회원에게도 그냥 다 보이게 할 수 있는 방법 좀 알려 주십시오.
© SIRSOFT
현재 페이지 제일 처음으로