최신글 불러오기에서 관리자만 클릭이 될수있게 해주세요.. > 그누4 질문답변

그누4 질문답변

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

최신글 불러오기에서 관리자만 클릭이 될수있게 해주세요.. 정보

최신글 불러오기에서 관리자만 클릭이 될수있게 해주세요..

본문

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

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height=3></td>
</tr>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr><td height=22 align=left colspan=2>
    &nbsp;&nbsp;
    <img src='<?=$latest_skin_path?>/img/blot.gif' align=absmiddle> <a href='<?=$list[$i][href]?>'><?=$list[$i][subject]?></a>
    <span style='font-family:돋움; font-size:8pt; color:#9A9A9A;'><?=$list[$i][comment_cnt]?></span></a></td>
</tr>
<tr><td width=3></td><td align=center valign=top><img src='<?=$latest_skin_path?>/img/dot_line.gif' align=abstop></td></tr>
<? } ?>

<? if (count($list) == 0) { ?>
<tr><td align=center height=30 background="<?=$latest_skin_path?>/img/board_bg_line.gif">게시물이 없습니다.</td></tr>
<? } ?>
</table>

위와같은 최신글 스킨을 사용합니다.
관리자만 글내용을 클릭할수 있게하고 싶습니다.
<? if($is_admin == 'super') { ?>
링크거는 부분에 이런식으로 해줘도 안되네요...
어떻게 해야 하나요?
  • 복사

댓글 전체

<? if($is_admin == "super") { ?>
&nbsp;&nbsp;
    <img src='<?=$latest_skin_path?>/img/blot.gif' align=absmiddle> <a href='<?=$list[$i][href]?>'><?=$list[$i][subject]?></a>
<? } else { ?>
&nbsp;&nbsp;
    <img src='<?=$latest_skin_path?>/img/blot.gif' align=absmiddle> <?=$list[$i][subject]?>
<? } ?>

이렇게 해 보셨나요?
© SIRSOFT
현재 페이지 제일 처음으로