최근글 스킨에서 if문이 안되요.. 정보
그누보드 최근글 스킨에서 if문이 안되요..본문
function _latest2($title, $tbl, $n=4, $len=40)
{
global $cfg;
$ulevel = 4; // 회원등급별 이동페이지 다르게
if ($member[mb_level] >= $ulevel || $is_admin == "default" || $is_admin == "group") {
echo "
<table width=100% cellpadding=0 cellspacing=0>
<tr height=29>
<td width=180 class=gb background='image/tit01.gif'> <a href='./?doc=bbs/gnuboard.php&bo_table=$tbl'><span class=gb>$title 1</span></a></td>
<td width=110 align=right background='image/tit02.gif'><a href='./?doc=bbs/gnuboard.php&bo_table=$tbl'><img src='image/v9_more.gif' border=0></a> </td>
</tr>
</table>";
}
else {
echo "
<table width=100% cellpadding=0 cellspacing=0>
<tr height=29>
<td width=180 class=gb background='image/tit01.gif'> <a href='http://도메인/a.html'><span class=gb>$title 2</span></a></td>
<td width=110 align=right background='image/tit02.gif'><a href='http://도메인/a.html'><img src='image/v9_more.gif' border=0></a> </td>
</tr>
</table>";
}
latest("adoult", $tbl, $n, $len);
}
혹시나 해서 위에 처럼 해보니.. 관리자가 로그인 해도
'http://도메인/a.html' 로만 연결되네요 ㅠ.ㅠ.
최근글 스킨에서 회원등급이 4 이상이 클릭하면 a 페이지로 이동
회원등급이 4 아래이면 (1,2,3) b 페이지로 이동시키고자 합니다.
도움 부탁드립니다 ^^
{
global $cfg;
$ulevel = 4; // 회원등급별 이동페이지 다르게
if ($member[mb_level] >= $ulevel || $is_admin == "default" || $is_admin == "group") {
echo "
<table width=100% cellpadding=0 cellspacing=0>
<tr height=29>
<td width=180 class=gb background='image/tit01.gif'> <a href='./?doc=bbs/gnuboard.php&bo_table=$tbl'><span class=gb>$title 1</span></a></td>
<td width=110 align=right background='image/tit02.gif'><a href='./?doc=bbs/gnuboard.php&bo_table=$tbl'><img src='image/v9_more.gif' border=0></a> </td>
</tr>
</table>";
}
else {
echo "
<table width=100% cellpadding=0 cellspacing=0>
<tr height=29>
<td width=180 class=gb background='image/tit01.gif'> <a href='http://도메인/a.html'><span class=gb>$title 2</span></a></td>
<td width=110 align=right background='image/tit02.gif'><a href='http://도메인/a.html'><img src='image/v9_more.gif' border=0></a> </td>
</tr>
</table>";
}
latest("adoult", $tbl, $n, $len);
}
혹시나 해서 위에 처럼 해보니.. 관리자가 로그인 해도
'http://도메인/a.html' 로만 연결되네요 ㅠ.ㅠ.
최근글 스킨에서 회원등급이 4 이상이 클릭하면 a 페이지로 이동
회원등급이 4 아래이면 (1,2,3) b 페이지로 이동시키고자 합니다.
도움 부탁드립니다 ^^
댓글 전체