최신글 팝업창 관련 질문입니다(망연자실) 정보
최신글 팝업창 관련 질문입니다(망연자실)본문
제가 이번에 최신글 스킨을 다운받아서 깔았는데요.
팝업창으로 뜨게 하고 싶거든요?
친절하게도 다운받은 스킨에 이미 그 소스가 포함되어 있는데요
문제는 어떤 부분을 수정해야 팝업창으로 열리는지 모르겠다는 겁니다.
팁에서 검색하고 나름 적용해봤는데 안되네요.
도와주세요.
부탁입니다. -_-
아래는 그 소스.
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$board[bo_table_width]="412"; //테이블 폭
?>
?>
<table width="<?=$board[bo_table_width]?>" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan=2>
<table width="100%" border="0" cellpadding="0" cellspacing="0" background="<?=$latest_skin_path?>/img/back_b.gif">
<tr>
<td height="23" style='padding-top:4px;padding-left:20px;'><span style="font-family:굴림;color:#666666;font-size:9pt;"><b><?=$board[bo_subject]?></b></span></td>
<td align="right" style='padding-right:20px;'><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><img src='<?=$latest_skin_path?>/img/more.gif' width="32" height="9" border=0></a></td>
</tr>
</table></td>
</tr>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td height=4 colspan=2></td>
</tr>
<tr>
<td width="20" height="20" align="center"><img src='<?=$latest_skin_path?>/img/top.gif' border=0 width="6" height="7"></td>
<td style='word-break:break-all;;'>
<span style="font-size:8pt; color:#6A6A6A;"><?=$list[$i][datetime]?></span>
<?
echo $list[$i][icon_reply] . " ";
// 팝업창으로 내용 보기 echo "<a href=\"javascript:popup_window('$g4[bbs_path]/board.php?bo_table=$board[bo_table]&wr_id={$list[$i][wr_id]}','winBoard','left=30, top=30, width=700, height=500, scrollbars=yes,resizable=no')\">";
echo "<a href='{$list[$i][href]}'>";
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:#222222;'>{$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>";
<tr>
<td colspan=2>
<table width="100%" border="0" cellpadding="0" cellspacing="0" background="<?=$latest_skin_path?>/img/back_b.gif">
<tr>
<td height="23" style='padding-top:4px;padding-left:20px;'><span style="font-family:굴림;color:#666666;font-size:9pt;"><b><?=$board[bo_subject]?></b></span></td>
<td align="right" style='padding-right:20px;'><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><img src='<?=$latest_skin_path?>/img/more.gif' width="32" height="9" border=0></a></td>
</tr>
</table></td>
</tr>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td height=4 colspan=2></td>
</tr>
<tr>
<td width="20" height="20" align="center"><img src='<?=$latest_skin_path?>/img/top.gif' border=0 width="6" height="7"></td>
<td style='word-break:break-all;;'>
<span style="font-size:8pt; color:#6A6A6A;"><?=$list[$i][datetime]?></span>
<?
echo $list[$i][icon_reply] . " ";
// 팝업창으로 내용 보기 echo "<a href=\"javascript:popup_window('$g4[bbs_path]/board.php?bo_table=$board[bo_table]&wr_id={$list[$i][wr_id]}','winBoard','left=30, top=30, width=700, height=500, scrollbars=yes,resizable=no')\">";
echo "<a href='{$list[$i][href]}'>";
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:#222222;'>{$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']}>"; }
// 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>
<tr>
<td height=1 colspan=2 background='<?=$latest_skin_path?>/img/line.gif'></td>
</tr>
<? } ?>
<? if (count($list) == 0) { echo "<tr><td colspan=3 align=center height=50>등록된 내용이 없습니다.</td></tr>"; } ?>
<tr>
<td height="13" colspan=2 ></td>
</tr>
</table>
//echo " " . $list[$i][icon_file];
//echo " " . $list[$i][icon_link];
//echo " " . $list[$i][icon_hot];
//echo " " . $list[$i][icon_secret];
?>
</td>
</tr>
<tr>
<td height=1 colspan=2 background='<?=$latest_skin_path?>/img/line.gif'></td>
</tr>
<? } ?>
<? if (count($list) == 0) { echo "<tr><td colspan=3 align=center height=50>등록된 내용이 없습니다.</td></tr>"; } ?>
<tr>
<td height="13" colspan=2 ></td>
</tr>
</table>
윗 부분에서
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=30, top=30, width=700, height=500, scrollbars=yes,resizable=no')\">";
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=30, top=30, width=700, height=500, scrollbars=yes,resizable=no')\">";
// echo "<a href='{$list[$i][href]}'>";
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=30, top=30, width=700, height=500, scrollbars=yes,resizable=no')\">";
// echo "<a href='{$list[$i][href]}'>";
아 그런거였군요.
빠르고 정확한 답변에 고개숙여 감사드립디다.
닉네임처럼 늘 행운이 함께 하시길 바라고요,
편한 하루 보내세요.
빠르고 정확한 답변에 고개숙여 감사드립디다.
닉네임처럼 늘 행운이 함께 하시길 바라고요,
편한 하루 보내세요.