게시물 리스트에 관한 문제. > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

게시물 리스트에 관한 문제. 정보

게시물 리스트에 관한 문제.

본문

오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.

오류 주소 : http://www.eu114.com/bbs/board.php?bo_table=fztest

테스트 아이디는 test 123456입니다.

게시물 리스트에 관한 문제입니다 . 위에 보면 링크를 보시면

제목은 두글자*****  글쓴이는 한글자 **  모든 링크가 안되구요 . 이건 비회원 상태이구요 정상인데요 .

회원일경우에 등록하면 제목은 하고 글쓴이가 모드 나타나고 링크가 모두 됩니다 ...

제가 원하는건 회원이든 회원이 아니든 자기글하고 이름만 보이고 다른 사람이 쓴글과 이름은 모두

링크가 차단되고  ** 이런 형태로 나타나고요  물론 관리자는 다 볼수잇구요 ... 내게시물에 관한 답변도 나는 볼수 잇겟끔 할수잇는지요 ...


skin/board/해당스킨에  list.skin.php를 수정한 부분입니다.
<?
        echo $nobr_begin;
        echo $list[$i][reply];
        echo $list[$i][icon_reply];
       
      if($is_admin=='super'){ //로그인 한 상태
        echo "<a href='{$list[$i][href]}'>";
        if ($list[$i][is_notice])
            echo "<font color='#FF6600'><strong>{$list[$i][subject]}</strong></font>";
        else
        {
            $style1 = $style2 = "";
            if ($list[$i][icon_new]) // 최신글은 검정
                $style1 = "color:#112222;";
            if (!$list[$i][comment_cnt]) // 코멘트 없는것만 굵게
                $style2 = "font-weight:bold;";

echo "<span style='$style1 $style2'>{$list[$i][subject]}</span>";
        }
        echo "</a>";
      }else{ // 로그아웃 상태
        if ($list[$i][is_notice])
            echo "<center><font color='#FF6600'><strong>{$list[$i][subject]}</strong></font>";
        else
        {
            $style1 = $style2 = "";
            if ($list[$i][icon_new]) // 최신글은 검정
                $style1 = "color:#112222;";
            if (!$list[$i][comment_cnt]) // 코멘트 없는것만 굵게
                $style2 = "font-weight:bold;";
                $subject1 = "{$list[$i][subject]}";
echo substr($subject1,1,2)."**********</center>";
        }
      }
 
 
 
       

        if ($list[$i][comment_cnt])
            echo " <a href=\"{$list[$i][comment_href]}\"><span style='font-size:7pt;'>{$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];
        ?>

// 이건 제목에 관해서 제가 수정한 부분이고 .

<?=($is_admin=='super')?$list[$i][name]:substr($list[$i][wr_name],0,2)."**"?>
// 이건 글쓴이에 관해 수정한 부분입니다.
  • 복사

댓글 전체

if($is_admin=='super'){ //로그인 한 상태
        echo "<a href='{$list[$i][href]}'>";
        if ($list[$i][is_notice])
==>
if($member['mb_id']) ){ //로그인 한 상태

        if( $is_admin=='super' || $member['mb_id']==$list[ $i]['mb_id'] )
        echo "<a href='{$list[$i][href]}'>";
        else echo "<a>";
        if ($list[$i][is_notice])
© SIRSOFT
현재 페이지 제일 처음으로