답변 1개
채택된 답변
+20 포인트
9년 전
비회원이 글쓰기버튼 보이는 부분은
list.skin.php상단에 추가하세요
$write_href = "./write.php?bo_table=$bo_table"; ?>
list.skin.php에서 글쓰기버튼잇는 부분에
조건을 추가해주셔야할듯하네요
이부분에 조건 주시면됩니다
예로
if(!is_member){//로그인 회원이 아니면
$write_href = '이동할로그인페이지.php';
}
로그인 후 평가할 수 있습니다
답변에 대한 댓글 7개
f
fldkfem1
9년 전
�
9년 전
이걸로 해보세요
bbs/list.php에
$write_href = '';
if ($member['mb_level'] >= $board['bo_write_level']) {
$write_href = './write.php?bo_table='.$bo_table;
}
이부분을
$write_href = '';
if ($member['mb_level'] >= $board['bo_write_level']) {
$write_href = './write.php?bo_table='.$bo_table;
}else {
$write_href = "javascript:alert('회원가입후 이용하세요.');";
}
이렇게 수정
bbs/list.php에
$write_href = '';
if ($member['mb_level'] >= $board['bo_write_level']) {
$write_href = './write.php?bo_table='.$bo_table;
}
이부분을
$write_href = '';
if ($member['mb_level'] >= $board['bo_write_level']) {
$write_href = './write.php?bo_table='.$bo_table;
}else {
$write_href = "javascript:alert('회원가입후 이용하세요.');";
}
이렇게 수정
f
fldkfem1
9년 전
<?php
include_once('./_common.php');
$html_title = '링크 > '.conv_subject($write['wr_subject'], 255);
if (!($bo_table && $wr_id && $no))
alert_close('값이 제대로 넘어오지 않았습니다.');
// SQL Injection 예방
$row = sql_fetch(" select count(*) as cnt from {$g5['write_prefix']}{$bo_table} ", FALSE);
if (!$row['cnt'])
alert_close('존재하는 게시판이 아닙니다.');
if (!$write['wr_link'.$no])
alert_close('링크가 없습니다.');
$ss_name = 'ss_link_'.$bo_table.'_'.$wr_id.'_'.$no;
if (empty($_SESSION[$ss_name]))
{
$sql = " update {$g5['write_prefix']}{$bo_table} set wr_link{$no}_hit = wr_link{$no}_hit + 1 where wr_id = '{$wr_id}' ";
sql_query($sql);
set_session($ss_name, true);
}
goto_url(set_http($write['wr_link'.$no]));
?>
알려주신 폴더입니다 ㅠㅠ;
include_once('./_common.php');
$html_title = '링크 > '.conv_subject($write['wr_subject'], 255);
if (!($bo_table && $wr_id && $no))
alert_close('값이 제대로 넘어오지 않았습니다.');
// SQL Injection 예방
$row = sql_fetch(" select count(*) as cnt from {$g5['write_prefix']}{$bo_table} ", FALSE);
if (!$row['cnt'])
alert_close('존재하는 게시판이 아닙니다.');
if (!$write['wr_link'.$no])
alert_close('링크가 없습니다.');
$ss_name = 'ss_link_'.$bo_table.'_'.$wr_id.'_'.$no;
if (empty($_SESSION[$ss_name]))
{
$sql = " update {$g5['write_prefix']}{$bo_table} set wr_link{$no}_hit = wr_link{$no}_hit + 1 where wr_id = '{$wr_id}' ";
sql_query($sql);
set_session($ss_name, true);
}
goto_url(set_http($write['wr_link'.$no]));
?>
알려주신 폴더입니다 ㅠㅠ;
f
fldkfem1
9년 전
아아 폴더를 잘못 눌렀네요 그런데 보여지기는 하는데 클릭시 아무 반은이 없는데 여기에서는 어떻게 해야할까요 답변주셔서 정말 감사합니다
�
9년 전
클릭시에 반응이없는거는
<div style="float:right;" onclick="<?php if ($write_href) { echo "location.href='".$write_href."';"; }else{echo "medi.openPOP('login');";}?>">
<p class="circle1">+</p>
</div>
여기부분 때문이네요
<div style="float:right;" onclick="<? echo "location.href='".$write_href."';"; }?>">
<p class="circle1">+</p>
</div>
이렇게 수정하시면될듯하네요
그리고 list.php에 alert추가하신 부분에 loginPopup이 뜨게 넣어주심될듯
<div style="float:right;" onclick="<?php if ($write_href) { echo "location.href='".$write_href."';"; }else{echo "medi.openPOP('login');";}?>">
<p class="circle1">+</p>
</div>
여기부분 때문이네요
<div style="float:right;" onclick="<? echo "location.href='".$write_href."';"; }?>">
<p class="circle1">+</p>
</div>
이렇게 수정하시면될듯하네요
그리고 list.php에 alert추가하신 부분에 loginPopup이 뜨게 넣어주심될듯
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인전체 질문 목록
채택
답변대기
답변대기
채택
답변대기
<div style="float:right;" onclick="<?php if ($write_href) { echo "location.href='".$write_href."';"; }else{echo "medi.openPOP('login');";}?>">
<p class="circle1">+</p>
</div>
<? } ?>
지금 소스가 이렇게 되어있습니다 어떻게 해야하나요 ?
모바일 부분입니다