스킨 view.skin.php 파일 수정부탁드립니다 정보
스킨 view.skin.php 파일 수정부탁드립니다본문
아래 소스입니다.
겔러리의 블랙포토 갤러리 개시판을 다운받은거 같은데요.
제 기억으로는 ;;;
사진을 클릭하면 팝업 형식으로 그림이 뜨는데요
그 링크를 지우고 싶습니다.
잘않돼네요..
부탁합니다 도와주세요..
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<!-- 게시글 보기 시작 -->
<table width="100%" align="center" cellpadding="0" cellspacing="0"><tr><td>
<table width="100%" align="center" cellpadding="0" cellspacing="0"><tr><td>
<!-- 링크 버튼 -->
<?
ob_start();
?>
<table width='100%' cellpadding=0 cellspacing=0>
<tr height=35>
<td width=30%>
<? if ($prev_href) { echo "<a href=\"$prev_href\" title=\"$prev_wr_subject\"><img src='$board_skin_path/img/btn_prev.gif' border='0' align='absmiddle'></a>"; } ?>
<? if ($search_href) { echo "<a href=\"$search_href\"><img src='$board_skin_path/img/btn_search_list.gif' border='0' align='absmiddle'></a> "; } ?>
<? echo "<a href=\"$list_href\"><img src='$board_skin_path/img/btn_list.gif' border='0' align='absmiddle'></a> "; ?>
<? if ($next_href) { echo "<a href=\"$next_href\" title=\"$next_wr_subject\"><img src='$board_skin_path/img/btn_next.gif' border='0' align='absmiddle'></a>"; } ?>
</td>
<td width=70% align=right>
<? if ($scrap_href) { echo "<a href=\"javascript:;\" onclick=\"win_scrap('$scrap_href');\"><img src='$board_skin_path/img/btn_scrap.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($copy_href) { echo "<a href=\"$copy_href\"><img src='$board_skin_path/img/btn_copy.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($move_href) { echo "<a href=\"$move_href\"><img src='$board_skin_path/img/btn_move.gif' border='0' align='absmiddle'></a> "; } ?>
<?
ob_start();
?>
<table width='100%' cellpadding=0 cellspacing=0>
<tr height=35>
<td width=30%>
<? if ($prev_href) { echo "<a href=\"$prev_href\" title=\"$prev_wr_subject\"><img src='$board_skin_path/img/btn_prev.gif' border='0' align='absmiddle'></a>"; } ?>
<? if ($search_href) { echo "<a href=\"$search_href\"><img src='$board_skin_path/img/btn_search_list.gif' border='0' align='absmiddle'></a> "; } ?>
<? echo "<a href=\"$list_href\"><img src='$board_skin_path/img/btn_list.gif' border='0' align='absmiddle'></a> "; ?>
<? if ($next_href) { echo "<a href=\"$next_href\" title=\"$next_wr_subject\"><img src='$board_skin_path/img/btn_next.gif' border='0' align='absmiddle'></a>"; } ?>
</td>
<td width=70% align=right>
<? if ($scrap_href) { echo "<a href=\"javascript:;\" onclick=\"win_scrap('$scrap_href');\"><img src='$board_skin_path/img/btn_scrap.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($copy_href) { echo "<a href=\"$copy_href\"><img src='$board_skin_path/img/btn_copy.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($move_href) { echo "<a href=\"$move_href\"><img src='$board_skin_path/img/btn_move.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($update_href) { echo "<a href=\"$update_href\"><img src='$board_skin_path/img/btn_update.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($delete_href) { echo "<a href=\"$delete_href\"><img src='$board_skin_path/img/btn_delete.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($delete_href) { echo "<a href=\"$delete_href\"><img src='$board_skin_path/img/btn_delete.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($good_href) { echo "<a href=\"$good_href\" target='hiddenframe'><img src='$board_skin_path/img/btn_good.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($nogood_href) { echo "<a href=\"$nogood_href\" target='hiddenframe'><img src='$board_skin_path/img/btn_nogood.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($nogood_href) { echo "<a href=\"$nogood_href\" target='hiddenframe'><img src='$board_skin_path/img/btn_nogood.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($reply_href) { echo "<a href=\"$reply_href\"><img src='$board_skin_path/img/btn_reply.gif' border='0' align='absmiddle'></a> "; } ?>
<? if ($write_href) { echo "<a href=\"$write_href\"><img src='$board_skin_path/img/btn_write.gif' border='0' align='absmiddle'></a> "; } ?>
</td>
</tr>
</table>
<?
$link_buttons = ob_get_contents();
ob_end_flush();
?>
<!-- 제목, 글쓴이, 날짜, 조회, 추천, 비추천 -->
<table width="100%" cellspacing="0" cellpadding="0">
<tr><td height=2 bgcolor=#242424></td></tr>
<tr></tr>
<tr>
<td height=30 style='padding:5 9 5 9;'>
<table width="100%" cellspacing="0" cellpadding="0">
<tr><td height=2 bgcolor=#242424></td></tr>
<tr></tr>
<tr>
<td height=30 style='padding:5 9 5 9;'>
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td><font color=#FF50AA>글쓴이</font> : <?=$view[name]?><? if ($is_ip_view) { echo " ($ip)"; } ?></td>
<td height=30 style="padding:5px 9 5px 9;"><table width=100% cellpadding=0 cellspacing=0>
<tr>
<td ><strong><span id="writeSubject"><? if ($is_category) { echo ($category_name ? "[$view[ca_name]] " : ""); } ?><?=cut_hangul_last(get_text($view[wr_subject]))?></span></strong></td>
<!--<td width=50><a href="javascript:scaleFont(+1);"><img src='<?=$board_skin_path?>/img/icon_zoomin.gif' border=0 title='글자 확대'></a>
<a href="javascript:scaleFont(-1);"><img src='<?=$board_skin_path?>/img/icon_zoomout.gif' border=0 title='글자 축소'></a></td>-->
</tr>
</table></td>
<td><font color=#FF50AA>날짜</font> : <?=substr($view[wr_datetime],2,14)?></td>
<td><font color=#FF50AA>조회</font> : <?=$view[wr_hit]?></td>
<td align=right><? if ($is_good) { ?><font color=#7A8FDB>추천</font> : <?=$view[wr_good]?><?}?>
<? if ($is_nogood) { ?><font color=#7A8FDB>비추천</font> : <?=$view[wr_nogood]?><?}?></td>
</tr>
</table>
<tr>
<td><font color=#FF50AA>글쓴이</font> : <?=$view[name]?><? if ($is_ip_view) { echo " ($ip)"; } ?></td>
<td height=30 style="padding:5px 9 5px 9;"><table width=100% cellpadding=0 cellspacing=0>
<tr>
<td ><strong><span id="writeSubject"><? if ($is_category) { echo ($category_name ? "[$view[ca_name]] " : ""); } ?><?=cut_hangul_last(get_text($view[wr_subject]))?></span></strong></td>
<!--<td width=50><a href="javascript:scaleFont(+1);"><img src='<?=$board_skin_path?>/img/icon_zoomin.gif' border=0 title='글자 확대'></a>
<a href="javascript:scaleFont(-1);"><img src='<?=$board_skin_path?>/img/icon_zoomout.gif' border=0 title='글자 축소'></a></td>-->
</tr>
</table></td>
<td><font color=#FF50AA>날짜</font> : <?=substr($view[wr_datetime],2,14)?></td>
<td><font color=#FF50AA>조회</font> : <?=$view[wr_hit]?></td>
<td align=right><? if ($is_good) { ?><font color=#7A8FDB>추천</font> : <?=$view[wr_good]?><?}?>
<? if ($is_nogood) { ?><font color=#7A8FDB>비추천</font> : <?=$view[wr_nogood]?><?}?></td>
</tr>
</table>
</td></tr>
<tr><td height=1 bgcolor=#242424></td></tr>
<?
// 가변 파일
$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=22 class=ta7 style='padding:0 9 0 9;'>File : <a href=\"javascript:file_download('{$view[file][$i][href]}', '{$view[file][$i][source]}');\" title='{$view[file][$i][content]}'>{$view[file][$i][source]} ({$view[file][$i][size]}), Down : {$view[file][$i][download]}, {$view[file][$i][datetime]}</a></td></tr>";
}
}
// 가변 파일
$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=22 class=ta7 style='padding:0 9 0 9;'>File : <a href=\"javascript:file_download('{$view[file][$i][href]}', '{$view[file][$i][source]}');\" title='{$view[file][$i][content]}'>{$view[file][$i][source]} ({$view[file][$i][size]}), Down : {$view[file][$i][download]}, {$view[file][$i][datetime]}</a></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=22 class=ta7 style='padding:0 9 0 9;'>Link : <a href='{$view[link_href][$i]}' target=_blank>{$link} ({$view[link_hit][$i]})</a></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=22 class=ta7 style='padding:0 9 0 9;'>Link : <a href='{$view[link_href][$i]}' target=_blank>{$link} ({$view[link_hit][$i]})</a></td></tr>";
}
}
?>
<tr><td height=1 bgcolor=#242424></td></tr>
<tr>
<td height="100%" align="center" style='word-break:break-all;padding:9 9 9 9;'>
<span id="writeContents">
<?
// 파일 출력
for ($i=0; $i<=count($view[file]); $i++) {
if ($view[file][$i][view])
echo $view[file][$i][view] . "<p>";
}
?>
<tr>
<td height="100%" align="center" style='word-break:break-all;padding:9 9 9 9;'>
<span id="writeContents">
<?
// 파일 출력
for ($i=0; $i<=count($view[file]); $i++) {
if ($view[file][$i][view])
echo $view[file][$i][view] . "<p>";
}
?>
<!-- 내용 출력 -->
<?=$view[content];?></span>
<?//echo $view[rich_content]; // 과 같은 코드를 사용할 경우?>
<!-- 테러 태그 방지용 --></xml></xmp><a href=""></a><a href=''></a>
<? if ($is_signature) { echo "<br>$signature<br><br>"; } // 서명 출력 ?></td>
</tr>
</table><br>
<?=$view[content];?></span>
<?//echo $view[rich_content]; // 과 같은 코드를 사용할 경우?>
<!-- 테러 태그 방지용 --></xml></xmp><a href=""></a><a href=''></a>
<? if ($is_signature) { echo "<br>$signature<br><br>"; } // 서명 출력 ?></td>
</tr>
</table><br>
<?
// 코멘트 입출력
include_once("./view_comment.php");
?>
// 코멘트 입출력
include_once("./view_comment.php");
?>
<?=$link_buttons?>
</td></tr></table><br>
<script language="JavaScript">
function file_download(link, file) {
<? if ($board[bo_download_point] < 0) { ?>if (confirm("'"+file+"' 파일을 다운로드 하시면 포인트가 차감(<?=number_format($board[bo_download_point])?>점)됩니다.\n\n포인트는 게시물당 한번만 차감되며 다음에 다시 다운로드 하셔도 중복하여 차감하지 않습니다.\n\n그래도 다운로드 하시겠습니까?"))<?}?>
document.location.href=link;
}
</script>
function file_download(link, file) {
<? if ($board[bo_download_point] < 0) { ?>if (confirm("'"+file+"' 파일을 다운로드 하시면 포인트가 차감(<?=number_format($board[bo_download_point])?>점)됩니다.\n\n포인트는 게시물당 한번만 차감되며 다음에 다시 다운로드 하셔도 중복하여 차감하지 않습니다.\n\n그래도 다운로드 하시겠습니까?"))<?}?>
document.location.href=link;
}
</script>
<script language="JavaScript" src="<?="$g4[path]/js/board.js"?>"></script>
<script language="JavaScript">
window.onload=function() {
resizeBoardImage(<?=(int)$board[bo_image_width]?>);
drawFont();
}
</script>
<!-- 게시글 보기 끝 -->
<script language="JavaScript">
window.onload=function() {
resizeBoardImage(<?=(int)$board[bo_image_width]?>);
drawFont();
}
</script>
<!-- 게시글 보기 끝 -->
댓글 전체
팝업형식으로 새창이 뜨는거라면 이 소스에는 없습니다. list.skin.php 살펴보시고
window.open 을 찾아서 관련된 부분을 주석처리하시거나 삭제해보세요
window.open 을 찾아서 관련된 부분을 주석처리하시거나 삭제해보세요
list.skin.php 를 에서 주석 처리를 해서 해봤는데도 않돼네요..
스킨파일 자체를 올려드릴테니 좀도와주세요.
저의 짧은 지식으로는 도저히 않돼네요..
지금 다시 확인하바로는 팝업 형식이 아닌거 같아서요 ...ㅠ_ㅠ;
http://www.1stphoto.co.kr/black_photo.zip
스킨파일 자체를 올려드릴테니 좀도와주세요.
저의 짧은 지식으로는 도저히 않돼네요..
지금 다시 확인하바로는 팝업 형식이 아닌거 같아서요 ...ㅠ_ㅠ;
http://www.1stphoto.co.kr/black_photo.zip
이미지파일을 첨부할경우 내용부분에 이미지가 나오고 클릭시 원본이미지가 팝업으로 뜨는걸 말씀하시는건가요?
그건 for ($i=0; $i<=count($view[file]); $i++) {
if ($view[file][$i][view])
echo $view[file][$i][view] . "<p>";
}
에서 나오는건데 $view[file][$i][view] 로만 되어있어서 여기서 수정은 안되구요 전체적으로 모든거에 적용시키실거면 저걸 만드는 lib/common.lib.php파일 899라인(버젼에 따라 약간 차이날수 있음)에 있는
return "<img src='$g4[path]/data/file/$board[bo_table]/".urlencode($file)."' name='target_resize_image[]' onclick='image_window(this);' style='cursor:pointer;' title='$content'>";
에서 onclick='image_window(this);' 부분만 지우셔도 될거 같네요 .... 해당 스킨에서만 그렇게 하실거라면 위에 for문에서 나오는것을 고쳐서 새로 짜셔야 할거 같네요
그건 for ($i=0; $i<=count($view[file]); $i++) {
if ($view[file][$i][view])
echo $view[file][$i][view] . "<p>";
}
에서 나오는건데 $view[file][$i][view] 로만 되어있어서 여기서 수정은 안되구요 전체적으로 모든거에 적용시키실거면 저걸 만드는 lib/common.lib.php파일 899라인(버젼에 따라 약간 차이날수 있음)에 있는
return "<img src='$g4[path]/data/file/$board[bo_table]/".urlencode($file)."' name='target_resize_image[]' onclick='image_window(this);' style='cursor:pointer;' title='$content'>";
에서 onclick='image_window(this);' 부분만 지우셔도 될거 같네요 .... 해당 스킨에서만 그렇게 하실거라면 위에 for문에서 나오는것을 고쳐서 새로 짜셔야 할거 같네요
아 도저히 않되겠습니다 다른 방법을 생각중입니다
js/common.js 파일을 수정해서 오른쪽클릭을 못하게 해야겠네요
그런데 common.js 파일의 어느위치에 마우스 우클릭 금지 스크립트를 넣는거죠?
js/common.js 파일을 수정해서 오른쪽클릭을 못하게 해야겠네요
그런데 common.js 파일의 어느위치에 마우스 우클릭 금지 스크립트를 넣는거죠?
아 됬다 ㅡ0-...
ㅎ 이런 ㅡㅡ;;; 굉장히 간단한 방법을 생각을 못하다니 ㅎ
해결됬어요 ... ^^
ㅎ 이런 ㅡㅡ;;; 굉장히 간단한 방법을 생각을 못하다니 ㅎ
해결됬어요 ... ^^