일정포인트 이상 보유한 회원에게만 보이기 정보
일정포인트 이상 보유한 회원에게만 보이기본문
latest.skin.php 인데요.
포인트가 2500이상인 회원에게는 정상적으로 보이고,
그 이하는 " 포인트가 부족합니다." 라고
보여주고 싶은데요.
<? if ($member[mb_point]>=2500) { ?> 이걸 사용해서 이래저래 해봐도 안되네요.
회원님들의 도움을 부탁드립니다.
------------------------소스----------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// 연동 : http://www.sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=32524&page=4
// 이미지 가로 및 세로 정렬 기능 최신글
// 썸네일이 없을경우 원본이미지 불러옴.
$cols = 5; // 이미지 가로갯수 // 이미지 세로 갯수는 메인에서 지정(총 이미지 수)
$image_h = 10; // 이미지 상하 간격
$col_width = (int)(99 / $cols);
?>
<style type="text/css">
<!--
.data { font-family:돋움; font-size:8pt; color:#999999; }
-->
</style>
<table width="100%" border="0" cellspacing="0" cellpadding="0" >
<tr><td height=30 bgcolor=#ffffff> <b><span class=topblack> <?=$board[bo_subject]?></b></span> <b><span class=topblack>오늘 인기TOP10</span></b></td></tr>
<tr>
<td align='center' >
<table width="200" border="0" cellpadding="0" cellspacing="0" bgcolor=#F0F0F0>
<tr>
<td height=10></td>
</tr>
<tr>
<td>
<!--리스트-->
<table width="656" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td width="19"> </td>
<td width="637">
<table width="95%" border="0" cellspacing="0" cellpadding="0">
<tr>
<? for ($i=0; $i<count($list); $i++) {
if ($i>0 && $i%$cols==0) { echo "</tr><tr><td colspan='$cols' height='10'></td></tr><tr>"; }
?>
<td width=10 >
<img src="<?=$latest_skin_path?>/img/tb<?=$i+1?>.png" width="13" height="13" align="absmiddle" class=png24 hspace=3>
</td><td width="<?=$col_width?>%" align="center" valign='top'>
<?
$style = "font-family:돋움; font-size:9pt; color:#636363;";
if ($list[$i][icon_new])
$style = "style='font-family:돋움; font-size:9pt; color:#006F00;' ";
$subject =cut_str($list[$i][subject],18); //제목 글자수 자르기
// if ($list[$i]['comment_cnt']) //코
// $cmt = "({$list[$i]['comment_cnt']})";
$bg = ""; //새글?
if ($list[$i][icon_new])
$bg="la_top_2.gif";
else
$bg="la_top_1.gif";
echo $list[$i][icon_reply] . " ";
echo "<table width='110' cellpadding='0' cellspacing='0' border='0'>";
echo "<tr><td height='10'><a href='{$list[$i]['href']}' >{$subject}</a></td></tr>";
echo "</table>";
?>
</td>
<? } ?>
<?
$cnt = ($i%$cols);
for ($k=$cnt; $k<$cols && $cnt; $k++) {
echo "<td width=$col_width%> </td>";
}
?>
<? if (count($list) == 0) { echo "<td height=10 align=center>게시물이 없습니다.</td>"; } ?>
</tr>
</table>
</td>
</tr>
</table> </td>
</tr>
<tr>
<td height=10></td>
</tr>
</table>
</td></table>
<script language="javascript">
function popupImage(imageURL){
imageHandle=open("","popupForImage","toolbar=no,location=no,status=no,manubar=no,scrollbars=no,resizable=no,width=100,height=100,top=0,left=0");
imageHandle.document.write("<title> </title>");
imageHandle.document.write("<style>");
imageHandle.document.write("*{margin:0;padding:0;border:0;}");
imageHandle.document.write("</style>");
imageHandle.document.write("<img src=\""+imageURL+"\" onload=\"window.resizeTo(this.width+6,this.height+55);\" onclick=\"self.close();\" style=\"cursor:hand;\" title=\"클릭하면 닫힙니다.\">");
}
</script>
포인트가 2500이상인 회원에게는 정상적으로 보이고,
그 이하는 " 포인트가 부족합니다." 라고
보여주고 싶은데요.
<? if ($member[mb_point]>=2500) { ?> 이걸 사용해서 이래저래 해봐도 안되네요.
회원님들의 도움을 부탁드립니다.
------------------------소스----------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// 연동 : http://www.sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=32524&page=4
// 이미지 가로 및 세로 정렬 기능 최신글
// 썸네일이 없을경우 원본이미지 불러옴.
$cols = 5; // 이미지 가로갯수 // 이미지 세로 갯수는 메인에서 지정(총 이미지 수)
$image_h = 10; // 이미지 상하 간격
$col_width = (int)(99 / $cols);
?>
<style type="text/css">
<!--
.data { font-family:돋움; font-size:8pt; color:#999999; }
-->
</style>
<table width="100%" border="0" cellspacing="0" cellpadding="0" >
<tr><td height=30 bgcolor=#ffffff> <b><span class=topblack> <?=$board[bo_subject]?></b></span> <b><span class=topblack>오늘 인기TOP10</span></b></td></tr>
<tr>
<td align='center' >
<table width="200" border="0" cellpadding="0" cellspacing="0" bgcolor=#F0F0F0>
<tr>
<td height=10></td>
</tr>
<tr>
<td>
<!--리스트-->
<table width="656" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td width="19"> </td>
<td width="637">
<table width="95%" border="0" cellspacing="0" cellpadding="0">
<tr>
<? for ($i=0; $i<count($list); $i++) {
if ($i>0 && $i%$cols==0) { echo "</tr><tr><td colspan='$cols' height='10'></td></tr><tr>"; }
?>
<td width=10 >
<img src="<?=$latest_skin_path?>/img/tb<?=$i+1?>.png" width="13" height="13" align="absmiddle" class=png24 hspace=3>
</td><td width="<?=$col_width?>%" align="center" valign='top'>
<?
$style = "font-family:돋움; font-size:9pt; color:#636363;";
if ($list[$i][icon_new])
$style = "style='font-family:돋움; font-size:9pt; color:#006F00;' ";
$subject =cut_str($list[$i][subject],18); //제목 글자수 자르기
// if ($list[$i]['comment_cnt']) //코
// $cmt = "({$list[$i]['comment_cnt']})";
$bg = ""; //새글?
if ($list[$i][icon_new])
$bg="la_top_2.gif";
else
$bg="la_top_1.gif";
echo $list[$i][icon_reply] . " ";
echo "<table width='110' cellpadding='0' cellspacing='0' border='0'>";
echo "<tr><td height='10'><a href='{$list[$i]['href']}' >{$subject}</a></td></tr>";
echo "</table>";
?>
</td>
<? } ?>
<?
$cnt = ($i%$cols);
for ($k=$cnt; $k<$cols && $cnt; $k++) {
echo "<td width=$col_width%> </td>";
}
?>
<? if (count($list) == 0) { echo "<td height=10 align=center>게시물이 없습니다.</td>"; } ?>
</tr>
</table>
</td>
</tr>
</table> </td>
</tr>
<tr>
<td height=10></td>
</tr>
</table>
</td></table>
<script language="javascript">
function popupImage(imageURL){
imageHandle=open("","popupForImage","toolbar=no,location=no,status=no,manubar=no,scrollbars=no,resizable=no,width=100,height=100,top=0,left=0");
imageHandle.document.write("<title> </title>");
imageHandle.document.write("<style>");
imageHandle.document.write("*{margin:0;padding:0;border:0;}");
imageHandle.document.write("</style>");
imageHandle.document.write("<img src=\""+imageURL+"\" onload=\"window.resizeTo(this.width+6,this.height+55);\" onclick=\"self.close();\" style=\"cursor:hand;\" title=\"클릭하면 닫힙니다.\">");
}
</script>
댓글 전체
<? if ($member[mb_point]>=2500) { ?> 이걸 사용해서 이래저래 해봐도 안되네요.
와 같은 구성으로 하면 됩니다. 하지만 해당 최근글 프로그램은
function으로 운영된다는 점을 관과 하신듯합니다. 해당 function 안에
변수가 참조되는것은 global 선언된 부분입니다. 현제 "global $g4;" 만 선언되어 있습니다. $g4[변수배열이름] 에 해당하는 환경변수만 참조 됩니다. 그렇기 때문에
해당 function 이나 해당 스킨 상단에
global $member;
를 추가하신후 상기 구문을 적용하시면 원하시는 방향되로 적용될것입니다.
와 같은 구성으로 하면 됩니다. 하지만 해당 최근글 프로그램은
function으로 운영된다는 점을 관과 하신듯합니다. 해당 function 안에
변수가 참조되는것은 global 선언된 부분입니다. 현제 "global $g4;" 만 선언되어 있습니다. $g4[변수배열이름] 에 해당하는 환경변수만 참조 됩니다. 그렇기 때문에
해당 function 이나 해당 스킨 상단에
global $member;
를 추가하신후 상기 구문을 적용하시면 원하시는 방향되로 적용될것입니다.
최신글이란 게시판의 일부를 맛배기로 보여주는글이라.....
거기서 막기는 거시기하구여....bbs/board.php 에서 사용하시면 될듯합니다..
거기서 막기는 거시기하구여....bbs/board.php 에서 사용하시면 될듯합니다..
개미인간님 답변 감사합니다.
저는 완전 모르는 내용이었는데.. 그런건 어떻게 알게 되는지..ㅜㅜ
잘 됩니다.
그리고 dream님도 감사해요.
오늘 너무 추워요.~
따뜻한 하루 보내세요.
저는 완전 모르는 내용이었는데.. 그런건 어떻게 알게 되는지..ㅜㅜ
잘 됩니다.
그리고 dream님도 감사해요.
오늘 너무 추워요.~
따뜻한 하루 보내세요.