최신글 새창 띄우기 오류 > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

최신글 새창 띄우기 오류 정보

최신글 새창 띄우기 오류

본문

latest_box_bird의 최신글에서 latest.skin.php 부분을 새창을 띄우고자 아래와 같이 했습니다...
그런데 새창이 뜨지 않는 부분이 있어 문의 드립니다. 팁대로 했는데....모가 잘못되었나요?


<table width='100%' border='0' bordercolor="#eeeeee" cellspacing='0' cellpadding='0'
style="border-collapse:collapse; border-top:0 solid #cccccc;"
>
<tr>
<td>
<table width='100%' border='0' cellspacing='0' cellpadding='3'>
<tr bgcolor="#fafafa">
<td width='16'><span style="font-size:9pt;">&nbsp;</span></td>
<td width='100%' height="20" align="left" valign="bottom" style="padding-top:5">

<a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>' target='_blank'><b><span style="font-size:9pt;"><?=$board[bo_subject]?> </span></b></a><span style="font-size:9pt;">&nbsp;</span></td>
<td align="right">

<a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>' target='_blank'><img src='<?=$latest_skin_path?>/img/icon_more.gif' border=0></a>

</td>
</tr>
<tr>
<td width='16'>&nbsp;</td>
<td colspan="2" width='100%'>

<? for ($i=0; $i<count($list); $i++) { ?>
<table width=98% border=0 cellpadding=0 cellspacing=0>
<tr>
<td height=20><img src='<?=$latest_skin_path?>/img/latest_icon.gif' align=absmiddle>
<?
// echo $list[$i][icon_reply] . " ";
//echo "<a href='{$list[$i][href]}'>";
  echo "<a href=\"javascript:popup_window('$g4[bbs_path]/board.php?bo_table=$board[bo_table]&wr_id={$list[$i][wr_id]}','winBoard','left=50, top=50, width=800, height=600, scrollbars=1')\">";

if ($list[$i][is_notice])
echo "<font style='font-family:돋움; font-size:9pt; color:#2C88B9;'><strong>{$list[$i][subject]}</strong></font>";
else
echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>{$list[$i][subject]}</font>";
echo "</a>";

if ($list[$i][comment_cnt])
echo " <a href=\"{$list[$i][comment_href]}\"><span style='font-family:돋움; font-size:8pt; color:#9A9A9A;'>{$list[$i][comment_cnt]}</span></a>";

// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }

echo " " . $list[$i][icon_new];
// echo " " . $list[$i][icon_file];
// echo " " . $list[$i][icon_link];
// echo " " . $list[$i][icon_hot];
// echo " " . $list[$i][icon_secret];
?>
</td>
</tr>
</table>
<? } ?>

<? if(count($list) == 0){ ?>게시물이 없습니다.<? } ?>

</td>
</tr>
</table>
</td>
</tr>
</table>
---------------------------------------------------
새창을 띄우기 위해
<a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'>
--------><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>' target='_blank'>
(잘됩니다.)

echo "<a href='{$list[$i][href]}'>";
--------> echo "<a href=\"javascript:popup_window('$g4[bbs_path]/board.php?bo_table=$board[bo_table]&wr_id={$list[$i][wr_id]}','winBoard','left=50, top=50, width=800, height=600, scrollbars=1')\">";
(게시물 내용을 클릭하면
주소표시창에 javascript:popup_window('.bbs/board.php?bo_table=notice&wr_id','winBoard','left=50, top=50, width=800, height=600, scrollbar'
그 다음
페이지에 오류가 있습니다.
라고 나오고
페이지가 열리지 않습니다.)

댓글 전체

주소표시창에 javascript:popup_window('.bbs/board.php?bo_table=notice&wr_id','winBoard','left=50, top=50, width=800, height=600, scrollbar'

===> 해당글의 변수가 적용되지 않은게 아닌가요? 즉, wr_id 값이 넘어가지 않은듯 보이네요
echo "<a href=\"javascript:popup_window('$g4[bbs_path]/board.php?bo_table=$board[bo_table]&wr_id=".$list[$i][wr_id]."','winBoard','left=50, top=50, width=800, height=600, scrollbars=1')\">";
해당 페이지의 html 소스를 올려봐주십시오

그리고 가능하다면 파이어폭스를 설치해서 해당 페이지를 한번 보시기 바랍니다.
페이지 로딩시에  tool > javascript console 를 뛰워두고 보시면 자바스크립터의 오류 위치와 오류내역을 보실수 있을 것입니다.
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>

<table width='100%' border='0' bordercolor="#eeeeee" cellspacing='0' cellpadding='0'
style="border-collapse:collapse; border-top:0 solid #cccccc;"
>
<tr>
<td>
<table width='100%' border='0' cellspacing='0' cellpadding='3'>
<tr bgcolor="#fafafa">
<td width='16'><span style="font-size:9pt;">&nbsp;</span></td>
<td width='100%' height="20" align="left" valign="bottom" style="padding-top:5">

<a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>' target='_blank'><b><span style="font-size:9pt;"><?=$board[bo_subject]?> </span></b></a><span style="font-size:9pt;">&nbsp;</span></td>
<td align="right">

<a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>' target='_blank'><img src='<?=$latest_skin_path?>/img/icon_more.gif' border=0></a>



</td>
</tr>
<tr>
<td width='16'>&nbsp;</td>
<td colspan="2" width='100%'>

<? for ($i=0; $i<count($list); $i++) { ?>
<table width=98% border=0 cellpadding=0 cellspacing=0>
<tr>
<td height=20><img src='<?=$latest_skin_path?>/img/latest_icon.gif' align=absmiddle>
<?
// echo $list[$i][icon_reply] . " ";
//echo "<a href='{$list[$i][href]}'>";
echo "<a href=\"javascript:popup_window('$g4[bbs_path]/board.php?bo_table=$board[bo_table]&wr_id=".$list[$i][wr_id]."','winBoard','left=50, top=50, width=800, height=600, scrollbars=1')\">";

if ($list[$i][is_notice])
echo "<font style='font-family:돋움; font-size:9pt; color:#2C88B9;'><strong>{$list[$i][subject]}</strong></font>";
else
echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>{$list[$i][subject]}</font>";
echo "</a>";

if ($list[$i][comment_cnt])
echo " <a href=\"{$list[$i][comment_href]}\"><span style='font-family:돋움; font-size:8pt; color:#9A9A9A;'>{$list[$i][comment_cnt]}</span></a>";

// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }

echo " " . $list[$i][icon_new];
// echo " " . $list[$i][icon_file];
// echo " " . $list[$i][icon_link];
// echo " " . $list[$i][icon_hot];
// echo " " . $list[$i][icon_secret];
?>
</td>
</tr>
</table>
<? } ?>

<? if(count($list) == 0){ ?>게시물이 없습니다.<? } ?>

</td>
</tr>
</table>
</td>
</tr>
</table>
계속 관심가져 주셔서 감사합니다...새창으로 여는게 이리 어렵다니...남들은 몇분만에도 해치운다는.....
저게 새창부분 수정한 소스이고요.
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT