최신글에서 링크를 해제하고 싶습니다 정보
최신글에서 링크를 해제하고 싶습니다본문
첫화면에서 최신글로 추출하여 이미지를 보여주고 있습니다..
이미지만 보이게 하고 링크는 안되게 하고 싶습니다..
어떤 부분을 수정해야 되는지요?..
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<style>
.title a:link {font-family:돋움, SimHei, SimSun; font-size:9pt; color:#FFFFFF; text-decoration:none;}
.title a:visited {font-family:돋움, SimHei, SimSun; font-size:9pt; color:#FFFFFF; text-decoration:none;}
.title a:active {font-family:돋움, SimHei, SimSun; font-size:9pt; color:#FFFFFF; text-decoration:none;}
.title a:hover {font-family:돋움, SimHei, SimSun; font-size:9pt; color:#FFEA78; text-decoration:none;}
</style>
.title a:link {font-family:돋움, SimHei, SimSun; font-size:9pt; color:#FFFFFF; text-decoration:none;}
.title a:visited {font-family:돋움, SimHei, SimSun; font-size:9pt; color:#FFFFFF; text-decoration:none;}
.title a:active {font-family:돋움, SimHei, SimSun; font-size:9pt; color:#FFFFFF; text-decoration:none;}
.title a:hover {font-family:돋움, SimHei, SimSun; font-size:9pt; color:#FFEA78; text-decoration:none;}
</style>
<!-- 최신글 제목 -->
<!-- <?=$board[bo_subject]?> (<?=$board[bo_table]?>) 최신글 시작 -->
<table width="470" border="0" cellspacing="0" cellpadding="0" height="610">
<?
<!-- <?=$board[bo_subject]?> (<?=$board[bo_table]?>) 최신글 시작 -->
<table width="470" border="0" cellspacing="0" cellpadding="0" height="610">
<?
$img = "$g4[path]/data/file/$bo_table/".urlencode($list[0][file][0][file]);
if (!file_exists($img) || !$list[0][file][0][file])
$img = "$latest_skin_path/img/no_image.gif";
?>
<tr>
<? if (preg_match("/\.(gif|jpg|png)$/i", $img)) {?>
<td width="470"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>&wr_id=<?=$list[$i]['wr_id']?>'><img src="<?=$img?>" width="470" height="610" border="0"></a></td>
<? }else ?>
</tr>
<tr><td style='word-break:break-all;' height="5">
<table width=100%>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
</tr>
<tr>
</td>
</tr>
<? } ?>
</table></td>
<? if (count($list) == 0) { ?>
<tr>
</td>
</tr>
<? } ?>
</table>
<!-- <?=$board[bo_subject]?> (<?=$board[bo_table]?>) 최신글 끝 -->
if (!file_exists($img) || !$list[0][file][0][file])
$img = "$latest_skin_path/img/no_image.gif";
?>
<tr>
<? if (preg_match("/\.(gif|jpg|png)$/i", $img)) {?>
<td width="470"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>&wr_id=<?=$list[$i]['wr_id']?>'><img src="<?=$img?>" width="470" height="610" border="0"></a></td>
<? }else ?>
</tr>
<tr><td style='word-break:break-all;' height="5">
<table width=100%>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
</tr>
<tr>
</td>
</tr>
<? } ?>
</table></td>
<? if (count($list) == 0) { ?>
<tr>
</td>
</tr>
<? } ?>
</table>
<!-- <?=$board[bo_subject]?> (<?=$board[bo_table]?>) 최신글 끝 -->
댓글 전체

<? if (preg_match("/\.(gif|jpg|png)$/i", $img)) {?>
<td width="470"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>&wr_id=<?=$list[$i]['wr_id']?>'><img src="<?=$img?>" width="470" height="610" border="0"></a></td>
<? }else ?>
-->
<? if (preg_match("/\.(gif|jpg|png)$/i", $img)) {?>
<td width="470"><img src="<?=$img?>" width="470" height="610" border="0"></td>
<? }else ?>
<td width="470"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>&wr_id=<?=$list[$i]['wr_id']?>'><img src="<?=$img?>" width="470" height="610" border="0"></a></td>
<? }else ?>
-->
<? if (preg_match("/\.(gif|jpg|png)$/i", $img)) {?>
<td width="470"><img src="<?=$img?>" width="470" height="610" border="0"></td>
<? }else ?>
빠른답변 감사합니다..
해결하였습니다..
감사....꾸벅
해결하였습니다..
감사....꾸벅