베이직 게시판 그림업했을때 새창 안뜨게... 정보
베이직 게시판 그림업했을때 새창 안뜨게...본문
베이직 게시판요...
글쓰고 이미지 업로드하면
그 이미지 마우스 클릭하면 이미지가 원본크기로 새창으로 뜨잖아요?
그거 안하려고 하는데요.
이 부분이 어느 부분인지 좀 알려주시면 감사하겠습니다.
아래는 뷰스킨파일입니다.
<a href='{$view[link_href][$i]}' target=_blank><font style='normal 11px 돋움;'>{$link} ({$view[link_hit][$i]})이 부분을 지웠는데 아닌가봐요..어딘가요?;
========================================
<?
// 가변 파일
$cnt = 0;
for ($i=0; $i<count($view[file]); $i++) {
if ($view[file][$i][source] && !$view[file][$i][view]) {
$cnt++;
//echo "<tr><td height=22> <img src='{$board_skin_path}/img/icon_file.gif' align=absmiddle> <a href='{$view[file][$i][href]}' title='{$view[file][$i][content]}'><strong>{$view[file][$i][source]}</strong> ({$view[file][$i][size]}), Down : {$view[file][$i][download]}, {$view[file][$i][datetime]}</a></td></tr>";
echo "<tr><td height=30> <img src='{$board_skin_path}/img/icon_file.gif' align=absmiddle> <a href=\"javascript:file_download('{$view[file][$i][href]}', '{$view[file][$i][source]}');\" title='{$view[file][$i][content]}'><font style='normal 11px 돋움;'>{$view[file][$i][source]} ({$view[file][$i][size]}), Down : {$view[file][$i][download]}, {$view[file][$i][datetime]}</font></a></td></tr><tr><td height='1' bgcolor='#E7E7E7'></td></tr>";
}
}
// 링크
$cnt = 0;
for ($i=1; $i<=$g4[link_count]; $i++) {
if ($view[link][$i]) {
$cnt++;
$link = cut_str($view[link][$i], 70);
echo "<tr><td height=30> <img src='{$board_skin_path}/img/icon_link.gif' align=absmiddle> <a href='{$view[link_href][$i]}' target=_blank><font style='normal 11px 돋움;'>{$link} ({$view[link_hit][$i]})</font></a></td></tr><tr><td height='1' bgcolor='#E7E7E7'></td></tr>";
}
}
?>
<!-- <tr><td height=1 bgcolor=#"E7E7E7"></td></tr> //-->
<tr>
<td height="150" style='word-break:break-all;padding:10px;'>
<?
// 파일 출력
for ($i=0; $i<=count($view[file]); $i++) {
if ($view[file][$i][view])
echo $view[file][$i][view] . "<p>";
}
?>
<!-- 내용 출력 -->
<span id="writeContents"><?=$view[content];?></span>
<?//echo $view[rich_content]; // 과 같은 코드를 사용할 경우?>
<!-- 테러 태그 방지용 --></xml></xmp><a href=""></a><a href=''></a>
</td>
</tr>
글쓰고 이미지 업로드하면
그 이미지 마우스 클릭하면 이미지가 원본크기로 새창으로 뜨잖아요?
그거 안하려고 하는데요.
이 부분이 어느 부분인지 좀 알려주시면 감사하겠습니다.
아래는 뷰스킨파일입니다.
<a href='{$view[link_href][$i]}' target=_blank><font style='normal 11px 돋움;'>{$link} ({$view[link_hit][$i]})이 부분을 지웠는데 아닌가봐요..어딘가요?;
========================================
<?
// 가변 파일
$cnt = 0;
for ($i=0; $i<count($view[file]); $i++) {
if ($view[file][$i][source] && !$view[file][$i][view]) {
$cnt++;
//echo "<tr><td height=22> <img src='{$board_skin_path}/img/icon_file.gif' align=absmiddle> <a href='{$view[file][$i][href]}' title='{$view[file][$i][content]}'><strong>{$view[file][$i][source]}</strong> ({$view[file][$i][size]}), Down : {$view[file][$i][download]}, {$view[file][$i][datetime]}</a></td></tr>";
echo "<tr><td height=30> <img src='{$board_skin_path}/img/icon_file.gif' align=absmiddle> <a href=\"javascript:file_download('{$view[file][$i][href]}', '{$view[file][$i][source]}');\" title='{$view[file][$i][content]}'><font style='normal 11px 돋움;'>{$view[file][$i][source]} ({$view[file][$i][size]}), Down : {$view[file][$i][download]}, {$view[file][$i][datetime]}</font></a></td></tr><tr><td height='1' bgcolor='#E7E7E7'></td></tr>";
}
}
// 링크
$cnt = 0;
for ($i=1; $i<=$g4[link_count]; $i++) {
if ($view[link][$i]) {
$cnt++;
$link = cut_str($view[link][$i], 70);
echo "<tr><td height=30> <img src='{$board_skin_path}/img/icon_link.gif' align=absmiddle> <a href='{$view[link_href][$i]}' target=_blank><font style='normal 11px 돋움;'>{$link} ({$view[link_hit][$i]})</font></a></td></tr><tr><td height='1' bgcolor='#E7E7E7'></td></tr>";
}
}
?>
<!-- <tr><td height=1 bgcolor=#"E7E7E7"></td></tr> //-->
<tr>
<td height="150" style='word-break:break-all;padding:10px;'>
<?
// 파일 출력
for ($i=0; $i<=count($view[file]); $i++) {
if ($view[file][$i][view])
echo $view[file][$i][view] . "<p>";
}
?>
<!-- 내용 출력 -->
<span id="writeContents"><?=$view[content];?></span>
<?//echo $view[rich_content]; // 과 같은 코드를 사용할 경우?>
<!-- 테러 태그 방지용 --></xml></xmp><a href=""></a><a href=''></a>
</td>
</tr>
댓글 전체
bbs/board.php
bbs/list.php
bbs/view.php
bbs/write.php
bbs/write_update.php
js/common.js
common.lib.php
등을 수정해야 됩니다.^^
bbs/list.php
bbs/view.php
bbs/write.php
bbs/write_update.php
js/common.js
common.lib.php
등을 수정해야 됩니다.^^
원본 이미지 안뜨게 하는데 이렇게 많은 파일을 수정해야 되는건가요? 헉.. 혹시 제 질문을 잘못 보신 건 아닐까요? 저는 단지 게시판에(갤러리 게시판 아니고요) 이미지 들어간것만 안뜨면 되는데..게시판을 다 안뜨게 하는게 아니라요. 그냥 한 스킨만 안뜨게 하면 됩니다.
<?
// 파일 출력
for ($i=0; $i<=count($view[file]); $i++) {
if ($view[file][$i][view])
echo $view[file][$i][view] . "<p>";
}
?>
부분을 아래와 같이 바꿔보세요
<?
// 파일 출력
for ($i=0; $i<=count($view[file]); $i++) {
if ($view[file][$i][view]) {
$view[file][$i][view] = str_replace("image_window(this)"," ",$view[file][$i][view]);
echo $view[file][$i][view] . "<p>";
}
}
?>
내용 출력 부분에도 적용 하려면
$view[content] = str_replace("image_window(this)"," ",$view[content]);
해보세요
// 파일 출력
for ($i=0; $i<=count($view[file]); $i++) {
if ($view[file][$i][view])
echo $view[file][$i][view] . "<p>";
}
?>
부분을 아래와 같이 바꿔보세요
<?
// 파일 출력
for ($i=0; $i<=count($view[file]); $i++) {
if ($view[file][$i][view]) {
$view[file][$i][view] = str_replace("image_window(this)"," ",$view[file][$i][view]);
echo $view[file][$i][view] . "<p>";
}
}
?>
내용 출력 부분에도 적용 하려면
$view[content] = str_replace("image_window(this)"," ",$view[content]);
해보세요
너무나 감사드립니다. 그렇게 했더니 이미지 원본 안뜨네요~^^