이렇게 할 수는 없나요? 정보
이렇게 할 수는 없나요?본문
어떠한 특정한 게시판에 글을 남겨야지만
다른 게시판에 글을 볼 수 있는 그런 기능은 구현 못하나요?
다른 게시판에 글을 볼 수 있는 그런 기능은 구현 못하나요?
댓글 전체
간단하게 한다면 포인트 지급 방법이 있겠네요..
특정 게시판만 글 쓸 때 포인트를 지급하는식으로 하고, 다른 게시판들의 글을 볼 때 포인트가 삭감되는 방법으로요..
그리고 일반 게시판 글을 쓸 때는 포인트 지급이 안되게 하면 가능하기는 하겠네요^^
특정 게시판만 글 쓸 때 포인트를 지급하는식으로 하고, 다른 게시판들의 글을 볼 때 포인트가 삭감되는 방법으로요..
그리고 일반 게시판 글을 쓸 때는 포인트 지급이 안되게 하면 가능하기는 하겠네요^^
<?
#################################################
# 다른 게시판에 x번 글을 남겨야 이 게시판을 봅니다...;;
# skin.view.php 암데나 붙여 넣으세요...
# 만약 테이블 명이 girl_table 이거나 sexy_table 이면
# free_board 에 3 번 이상 글을 남겨야 이 게시판을 볼 수 있습니다.
#################################################
if($member[mb_id]){
//적용할 테이블명(수정要)
if( $bo_table=='girl_test' || $bo_table=='sexy_table' )
{ $that_table='free_board'; //거기...테이블 //수정要
$that_table_name="g4_write_".$that_table;
$that_cut_limit = 3; // 글쓴횟수//수정要
$that_pandan=
mysql_num_rows(mysql_query("select mb_id from $that_table_name where mb_id='$member[mb_id]'
and wr_is_comment = 0 order by mb_id desc"));
if($that_pandan < $that_cut_limit)
{alert("쩝...글을 $that_cut_limit 번 써야지..볼수있다오~!");}
else { echo" <b><font color='red'>$that_pandan</font></b>번 글을 쓰셨군요~`...보세요.";}
}//if girl
}else{alert("음허허~~로긴을 하시오~!");}
//if login
######################################2005.12.28 dalsoo
?>
#################################################
# 다른 게시판에 x번 글을 남겨야 이 게시판을 봅니다...;;
# skin.view.php 암데나 붙여 넣으세요...
# 만약 테이블 명이 girl_table 이거나 sexy_table 이면
# free_board 에 3 번 이상 글을 남겨야 이 게시판을 볼 수 있습니다.
#################################################
if($member[mb_id]){
//적용할 테이블명(수정要)
if( $bo_table=='girl_test' || $bo_table=='sexy_table' )
{ $that_table='free_board'; //거기...테이블 //수정要
$that_table_name="g4_write_".$that_table;
$that_cut_limit = 3; // 글쓴횟수//수정要
$that_pandan=
mysql_num_rows(mysql_query("select mb_id from $that_table_name where mb_id='$member[mb_id]'
and wr_is_comment = 0 order by mb_id desc"));
if($that_pandan < $that_cut_limit)
{alert("쩝...글을 $that_cut_limit 번 써야지..볼수있다오~!");}
else { echo" <b><font color='red'>$that_pandan</font></b>번 글을 쓰셨군요~`...보세요.";}
}//if girl
}else{alert("음허허~~로긴을 하시오~!");}
//if login
######################################2005.12.28 dalsoo
?>
와우 감사합니다~^^