S

트랙백이랑 코멘트 따로 받게하기 (3. 코멘트 본문이랑 분리하면서 링크걸기)

쓸대없이 요란한 제목은 신경쓰지 마시고 그냥 바꿔봅니다;


링크 주소를 보시면 아시겠지만 코멘트 부분이 iframe 화 되어있습니다

그러므로 코멘트, 트랙백 부분을 페이징화 해서 볼 수 있죠 =ㅅ=

본문이 어떻게 되어있는지는 이미 까먹었습니다...


적당한 부분에(아마 wr_content 밑부분이겠죠?)

//////////////////////////////////////////////////////////////////////////////////////////

<?$allview = $view[wr_comment];+$view[wr_trackback_num]?>
<font color="#DB0000" class="siz_font_mini_eng" style="cursor:pointer;" onclick="parent.parent.mqoo_main_iframe.comment_iframe.location.href='board.php?bo_table=<?=$bo_table?>&wr_id=<?=$wr_id?>&cwin=comment';">ALL : <?=$allview?></font>&nbsp;&nbsp;
<font color="#ACACAC" class="siz_font_mini_eng" style="cursor:pointer;" onclick="parent.parent.mqoo_main_iframe.comment_iframe.location.href='board.php?bo_table=<?=$bo_table?>&wr_id=<?=$wr_id?>&cwin=comment&op=1';">Comment : <?=$view[wr_comment]?></font>&nbsp;&nbsp;
<font color="#ACACAC" class="siz_font_mini_eng" style="cursor:pointer;" onclick="parent.parent.mqoo_main_iframe.comment_iframe.location.href='board.php?bo_table=<?=$bo_table?>&wr_id=<?=$wr_id?>&cwin=comment&op=2';">Trackbacks : <?=$view[wr_trackback_num]?></font>


<script Language='javascript'>
function reSize() {
try{
var objBody = comment_iframe.document.body;
var objFrame = document.all["comment_iframe"];
comment_iframeHeight = objBody.scrollHeight + (objBody.offsetHeight - objBody.clientHeight);

if (comment_iframeHeight > 50) {
objFrame.style.height = comment_iframeHeight
}else{
objFrame.style.height = 50;
}
objFrame.style.width = '100%'
}catch(e){}
}
function init_iframe() {
reSize();
setTimeout('init_iframe()',0)
}
init_iframe();
</script>
<IFRAME id="comment_iframe" name="comment_iframe" src="board.php?bo_table=<?=$bo_table?>&wr_id=<?=$wr_id?>&cwin=comment" marginWidth=0 marginHeight=0 frameBorder=0 width="100%" height="100%" scrolling=no ></IFRAME>

//////////////////////////////////////////////////////////////////////////////////////////

를 추가해 주세요 =ㅅ=//

<font color="red">ps. 코멘트 새창열기 허용을 반드시 줘야 합니다!!!!</font>
|

댓글 2개

html 허용 추가를 했더니 iframe 부분이 활성화 되서 ㅈㅈ ㅠㅠㅠ
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 팁자료실

그누보드4와 관련된 팁을 여러분들과 함께 공유하세요. 나누면 즐거움이 커집니다.

+
제목 글쓴이 날짜 조회
18년 전 조회 4,337
18년 전 조회 2,984
18년 전 조회 9,258
18년 전 조회 4,403
18년 전 조회 3,121
18년 전 조회 4,733
18년 전 조회 2,899
18년 전 조회 4,935
18년 전 조회 2,264
18년 전 조회 2,352
18년 전 조회 3,106
18년 전 조회 2,568
18년 전 조회 2,869
18년 전 조회 3,640
18년 전 조회 6,445
18년 전 조회 5,560
18년 전 조회 4,844
18년 전 조회 3,251
18년 전 조회 6,824
18년 전 조회 5,707
🐛 버그신고