링크권한 어떻게? 정보
링크권한 어떻게?본문
<?
//echo $nobr_begin;
echo "<a href='{$list[$i][href]}'>";
echo $list[$i][reply];
echo $list[$i][icon_reply];
if ($list[$i][is_notice])
echo "<font color='#FB9606'><strong>{$list[$i][subject]}</strong></font>";
else
{
$style = "";
if ($list[$i][icon_new])
$style = " style='font-weight:bold;' ";
echo "<span $style>{$list[$i][subject]}</span>";
}
echo "</a>";
//echo $nobr_begin;
echo "<a href='{$list[$i][href]}'>";
echo $list[$i][reply];
echo $list[$i][icon_reply];
if ($list[$i][is_notice])
echo "<font color='#FB9606'><strong>{$list[$i][subject]}</strong></font>";
else
{
$style = "";
if ($list[$i][icon_new])
$style = " style='font-weight:bold;' ";
echo "<span $style>{$list[$i][subject]}</span>";
}
echo "</a>";
if ($list[$i][comment_cnt])
echo " <a href=\"{$list[$i][comment_href]}\"><span style='font-size:7pt;'>{$list[$i][comment_cnt]}</span></a>";
echo " <a href=\"{$list[$i][comment_href]}\"><span style='font-size:7pt;'>{$list[$i][comment_cnt]}</span></a>";
$wr_content=$list[$i][wr_content];
$wr_content=cut_str($wr_content,200, '...');
?>
?>
관리자에서 게시물보기 권한을 회원으로 했습니다. 게시물을 클릭하면 로그인 페이지로 넘어갑니다.
비회원이면 아예 링크자체가 안되게 하는 법은 뭘까요?
댓글 전체
echo "<a href='{$list[$i][href]}'>";
대신
if( $member['mb_id'])
echo "<a href='{$list[$i][href]}'>";
else
echo "<a href='javascript:alert(\"로그인 하세요\");''>";
아니면
echo "<a >";
대신
if( $member['mb_id'])
echo "<a href='{$list[$i][href]}'>";
else
echo "<a href='javascript:alert(\"로그인 하세요\");''>";
아니면
echo "<a >";
감사합니다. 막상보니 쉬운듯하기도 하고... 그러면서도 찾으려면 없고...
정말 감사합니다.
정말 감사합니다.