k

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

<?
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>
  
<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') { ?>
링크거는 부분에 이런식으로 해줘도 안되네요...
어떻게 해야 하나요?
|

댓글 1개

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

이렇게 해 보셨나요?
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
18년 전 조회 1,865
18년 전 조회 1,651
18년 전 조회 2,248
18년 전 조회 1,581
18년 전 조회 1,688
18년 전 조회 1,533
18년 전 조회 1,536
18년 전 조회 1,537
18년 전 조회 1,953
18년 전 조회 1,583
18년 전 조회 1,701
18년 전 조회 1,511
18년 전 조회 2,161
18년 전 조회 1,649
18년 전 조회 1,644
18년 전 조회 1,876
18년 전 조회 1,895
18년 전 조회 1,671
18년 전 조회 1,561
18년 전 조회 1,708