비회원일때.... 클럽에서 최신글 > 그누4 플러그인

그누4 플러그인

그누보드에는 여러가지 기능 추가가 쉽도록 제작 되었습니다.
플러그인의 저작권은 해당 플러그인 제작자님께 있으며, 그누보드의 저작권과 다를 수 있습니다.
플러그인 다운로드시 좋아요와 감사의 코멘트를 남기시면 제작자에게 큰 힘이됩니다. ^^y

비회원일때.... 클럽에서 최신글 정보

비회원일때.... 클럽에서 최신글

첨부파일

latest.skin.php (2.7K) 3회 다운로드 2007-12-21 15:03:31

본문

gnu/club/skin/latest/default/latest.skin.php

아래의 내용으로 고치니 별탈이 없네요.



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

<script language='javascript'>
function no_member() {
alert("회원 전용입니다. \n로그인 후 이용하세요.");
}
</script>
<table width=100% cellpadding=0 cellspacing=0>
<colgroup width=14>
<colgroup>
<colgroup width=37>
<colgroup width=14>
<tr>
    <td><img src='<?=$latest_skin_path?>/img/latest_t01.gif'></td>
    <td background='<?=$latest_skin_path?>/img/bg_latest.gif'>&nbsp;&nbsp;<strong><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>&sca=<?=$ca_name?>'>
    <? if ($ca_name)
      echo $ca_name;
    else {
      $cb = get_club($bo_table);
      echo $cb[cb_name];
      }
    ?>
    </a></strong></td>
    <td background='<?=$latest_skin_path?>/img/bg_latest.gif'><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>&sca=<?=$ca_name?>'><img src='<?=$latest_skin_path?>/img/more.gif' border=0></a></td>
    <td><img src='<?=$latest_skin_path?>/img/latest_t02.gif'></td>
</tr>

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

if($member[mb_id]){
$go_list = "<a href='".$list[$i][href]."&sca=". urlencode($list[$i][ca_name]). "'>";//링크는 최신글에서 걸린 링크를 입력해야 합니다.
} else {
$go_list = "<a href='javascript:no_member();' onfocus='this.blur()'>";
}

?>
<tr>
    <td colspan=4 align=center>
        <table width=95%>
        <tr>
            <td height=25><img src='<?=$latest_skin_path?>/img/latest_icon.gif' align=absmiddle>&nbsp;&nbsp;
            <?
            echo $list[$i][icon_reply] . " ";
            echo "$go_list";
            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>
추천
0
  • 복사

댓글 전체

아~ 그런데 최신글 뿐만 아니라,

일반글에서... 목록은 보이고 읽기 권한이 없을때에도 문제가 되겠더라구요.
일반글을 비회원 상태에서 누르면 로그인 하라고 나오쟎아요. ㅠ..ㅠ

그러면 다시 board.php에 들어가게 되고... 문제가 생기는 것 같아요.
© SIRSOFT
현재 페이지 제일 처음으로