초짜라서 ^^ 게시판문의요~ 정보
초짜라서 ^^ 게시판문의요~본문
아직 잘 몰라서 여러 소스 붙이고 작업하는데 문제가 있어서요.
갤러리 게시판인데 큰 이미지 클릭하면 내용이 보이는데
관리자만 보여요 비로그인 시에는 클릭해도
내용이 안나오네요.
관리자에서 설정은 모두 다볼수 있게 되어 있구요.
아래에 소스 첨부합니다. 스킨 소스여요.
뭔가 빠져서 그런가요???
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
//작은 이미지 사이즈
$small_width = "98";
$small_height = "70";
//큰이미지
$large_width = "650";
$large_height = "450";
// 선택옵션으로 인해 셀합치기가 가변적으로 변함
$rowspan = "5";
// 제목이 두줄로 표시되는 경우 이 코드를 사용해 보세요.
// <nobr style='display:block; overflow:hidden; width:000px;'>제목</nobr>
?>
<!-- 게시판 목록 시작 -->
<table width="<?=$width?>" align=center cellpadding=0 cellspacing=0><tr><td>
<table width="90%" cellpadding="0" cellspacing="0">
<tr>
<!-- 목록 -->
<? for ($i=0; $i<count($list); $i++) {
if(!$member[mb_id]) {
$list[$i][href] = "#";
}
$list_file = sql_fetch("select bf_file from $g4[board_file_table] where bo_table='$bo_table' and bf_no = '0' and wr_id='{$list[$i][wr_id]}'");
if($list_file[bf_file]) {
$list_file_view[$i] = "<img src='./../data/file/$bo_table/$list_file[bf_file]' style='cursor:pointer' border=0 width=$small_width height=$small_height onmouseover=\"document.getElementById('large').src='./../data/file/$bo_table/$list_file[bf_file]'; document.getElementById('view').href='{$list[$i][href]}'\">";
$list_lfile_view[$i] = "<a id=view href='#'><img id=large src='./../data/file/$bo_table/$list_file[bf_file]' border=0 width=$large_width height=$large_height></a>";
}else {
$list_file_view[$i] = "";
$list_lfile_view[$i] = "";
}
?>
<?}?>
<? if (count($list) == 0) { echo "<td colspan='$colspan' height=50 align=center>게시물이 없습니다.</td>"; } ?>
</tr>
</table>
<table width="100%" align="center" cellpadding="0" cellspacing="0">
<tr>
<td class="subject" height="30">
<?=$list[$i][name]?>
</td>
</tr>
<tr><td>
<table align=center cellpadding="0" cellspacing="0" border=1 bordercolor="#E1E1E2"><tr><td><?=$list_lfile_view[0]?></td></tr></table>
</td>
</tr>
<td><div align="center"><img src="/images/space.gif"></div></td>
</table>
<table width="83%" align="center" cellpadding="0" cellspacing="0">
<tr>
<tr><td height=1></td></tr>
<!-- 목록 -->
<? for ($i=0; $i<count($list); $i++) {
if(!$member[mb_id]) {
$list[$i][href] = "#";
}
$list_file = sql_fetch("select bf_file from $g4[board_file_table] where bo_table='$bo_table' and bf_no = '0' and wr_id='{$list[$i][wr_id]}'");
if($list_file[bf_file]) {
$list_file_view[$i] = "<img src='./../data/file/$bo_table/$list_file[bf_file]' style='cursor:pointer' border=0 width=$small_width height=$small_height onmouseover=\"document.getElementById('large').src='./../data/file/$bo_table/$list_file[bf_file]'; document.getElementById('view').href='{$list[$i][href]}'\">";
$list_lfile_view[$i] = "<a id=view href='#'><img id=large src='./../data/file/$bo_table/$list_file[bf_file]' border=0 width=$large_width height=$large_height></a>";
}else {
$list_file_view[$i] = "";
$list_lfile_view[$i] = "";
}
?>
<td width="14%">
<div align="center"></div>
<table align=center cellpadding="0" cellspacing="0" border=1 bordercolor="#E1E1E2"><tr><td><?=$list_file_view[$i]?></td></tr></table>
</td>
<?}?>
<? if (count($list) == 0) { echo "<td colspan='$colspan' height=50 align=center>게시물이 없습니다.</td>"; } ?>
</tr>
<tr><td height=10></td></tr>
</table>
<!-- 페이지 -->
<div class="board_page" align="center">
<? if ($prev_part_href) { echo "<a href='$prev_part_href'><img src='$board_skin_path/img/page_search_prev.gif' border='0' align=absmiddle title='이전검색'></a>"; } ?>
<?
// 기본으로 넘어오는 페이지를 아래와 같이 변환하여 이미지로도 출력할 수 있습니다.
//echo $write_pages;
$write_pages = str_replace("처음", "<img src='$board_skin_path/img/page_begin.gif' border='0' align='absmiddle' title='처음'>", $write_pages);
$write_pages = str_replace("이전", "<img src='$board_skin_path/img/page_prev.gif' border='0' align='absmiddle' title='이전'>", $write_pages);
$write_pages = str_replace("다음", "<img src='$board_skin_path/img/page_next.gif' border='0' align='absmiddle' title='다음'>", $write_pages);
$write_pages = str_replace("맨끝", "<img src='$board_skin_path/img/page_end.gif' border='0' align='absmiddle' title='맨끝'>", $write_pages);
//$write_pages = preg_replace("/<span>([0-9]*)<\/span>/", "$1", $write_pages);
$write_pages = preg_replace("/<b>([0-9]*)<\/b>/", "<b><span style=\"color:#4D6185; font-size:12px; text-decoration:underline;\">$1</span></b>", $write_pages);
?>
<?=$write_pages?>
<? if ($next_part_href) { echo "<a href='$next_part_href'><img src='$board_skin_path/img/page_search_next.gif' border='0' align=absmiddle title='다음검색'></a>"; } ?>
</div>
<!-- 버튼 링크 -->
<form name=fsearch method=get style="margin:0px;">
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=sca value="<?=$sca?>">
<table width=<?=$width?> cellpadding=0 cellspacing=0 align=center>
<tr>
<td width="50%" height="40">
<? if ($list_href) { ?><a href="<?=$list_href?>"><img src="<?=$board_skin_path?>/img/btn_list.gif" border="0"></a><? } ?>
<? if ($write_href) { ?><a href="<?=$write_href?>"><img src="<?=$board_skin_path?>/img/btn_write.gif" border="0"></a><? } ?>
<? if ($is_checkbox) { ?>
<a href="javascript:select_delete();"><img src="<?=$board_skin_path?>/img/btn_select_delete.gif" border="0"></a>
<a href="javascript:select_copy('copy');"><img src="<?=$board_skin_path?>/img/btn_select_copy.gif" border="0"></a>
<a href="javascript:select_copy('move');"><img src="<?=$board_skin_path?>/img/btn_select_move.gif" border="0"></a>
<? } ?>
</td>
<td width="50%" align="right">
</td>
</tr>
</table>
</form>
</td></tr></table>
갤러리 게시판인데 큰 이미지 클릭하면 내용이 보이는데
관리자만 보여요 비로그인 시에는 클릭해도
내용이 안나오네요.
관리자에서 설정은 모두 다볼수 있게 되어 있구요.
아래에 소스 첨부합니다. 스킨 소스여요.
뭔가 빠져서 그런가요???
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
//작은 이미지 사이즈
$small_width = "98";
$small_height = "70";
//큰이미지
$large_width = "650";
$large_height = "450";
// 선택옵션으로 인해 셀합치기가 가변적으로 변함
$rowspan = "5";
// 제목이 두줄로 표시되는 경우 이 코드를 사용해 보세요.
// <nobr style='display:block; overflow:hidden; width:000px;'>제목</nobr>
?>
<!-- 게시판 목록 시작 -->
<table width="<?=$width?>" align=center cellpadding=0 cellspacing=0><tr><td>
<table width="90%" cellpadding="0" cellspacing="0">
<tr>
<!-- 목록 -->
<? for ($i=0; $i<count($list); $i++) {
if(!$member[mb_id]) {
$list[$i][href] = "#";
}
$list_file = sql_fetch("select bf_file from $g4[board_file_table] where bo_table='$bo_table' and bf_no = '0' and wr_id='{$list[$i][wr_id]}'");
if($list_file[bf_file]) {
$list_file_view[$i] = "<img src='./../data/file/$bo_table/$list_file[bf_file]' style='cursor:pointer' border=0 width=$small_width height=$small_height onmouseover=\"document.getElementById('large').src='./../data/file/$bo_table/$list_file[bf_file]'; document.getElementById('view').href='{$list[$i][href]}'\">";
$list_lfile_view[$i] = "<a id=view href='#'><img id=large src='./../data/file/$bo_table/$list_file[bf_file]' border=0 width=$large_width height=$large_height></a>";
}else {
$list_file_view[$i] = "";
$list_lfile_view[$i] = "";
}
?>
<?}?>
<? if (count($list) == 0) { echo "<td colspan='$colspan' height=50 align=center>게시물이 없습니다.</td>"; } ?>
</tr>
</table>
<table width="100%" align="center" cellpadding="0" cellspacing="0">
<tr>
<td class="subject" height="30">
<?=$list[$i][name]?>
</td>
</tr>
<tr><td>
<table align=center cellpadding="0" cellspacing="0" border=1 bordercolor="#E1E1E2"><tr><td><?=$list_lfile_view[0]?></td></tr></table>
</td>
</tr>
<td><div align="center"><img src="/images/space.gif"></div></td>
</table>
<table width="83%" align="center" cellpadding="0" cellspacing="0">
<tr>
<tr><td height=1></td></tr>
<!-- 목록 -->
<? for ($i=0; $i<count($list); $i++) {
if(!$member[mb_id]) {
$list[$i][href] = "#";
}
$list_file = sql_fetch("select bf_file from $g4[board_file_table] where bo_table='$bo_table' and bf_no = '0' and wr_id='{$list[$i][wr_id]}'");
if($list_file[bf_file]) {
$list_file_view[$i] = "<img src='./../data/file/$bo_table/$list_file[bf_file]' style='cursor:pointer' border=0 width=$small_width height=$small_height onmouseover=\"document.getElementById('large').src='./../data/file/$bo_table/$list_file[bf_file]'; document.getElementById('view').href='{$list[$i][href]}'\">";
$list_lfile_view[$i] = "<a id=view href='#'><img id=large src='./../data/file/$bo_table/$list_file[bf_file]' border=0 width=$large_width height=$large_height></a>";
}else {
$list_file_view[$i] = "";
$list_lfile_view[$i] = "";
}
?>
<td width="14%">
<div align="center"></div>
<table align=center cellpadding="0" cellspacing="0" border=1 bordercolor="#E1E1E2"><tr><td><?=$list_file_view[$i]?></td></tr></table>
</td>
<?}?>
<? if (count($list) == 0) { echo "<td colspan='$colspan' height=50 align=center>게시물이 없습니다.</td>"; } ?>
</tr>
<tr><td height=10></td></tr>
</table>
<!-- 페이지 -->
<div class="board_page" align="center">
<? if ($prev_part_href) { echo "<a href='$prev_part_href'><img src='$board_skin_path/img/page_search_prev.gif' border='0' align=absmiddle title='이전검색'></a>"; } ?>
<?
// 기본으로 넘어오는 페이지를 아래와 같이 변환하여 이미지로도 출력할 수 있습니다.
//echo $write_pages;
$write_pages = str_replace("처음", "<img src='$board_skin_path/img/page_begin.gif' border='0' align='absmiddle' title='처음'>", $write_pages);
$write_pages = str_replace("이전", "<img src='$board_skin_path/img/page_prev.gif' border='0' align='absmiddle' title='이전'>", $write_pages);
$write_pages = str_replace("다음", "<img src='$board_skin_path/img/page_next.gif' border='0' align='absmiddle' title='다음'>", $write_pages);
$write_pages = str_replace("맨끝", "<img src='$board_skin_path/img/page_end.gif' border='0' align='absmiddle' title='맨끝'>", $write_pages);
//$write_pages = preg_replace("/<span>([0-9]*)<\/span>/", "$1", $write_pages);
$write_pages = preg_replace("/<b>([0-9]*)<\/b>/", "<b><span style=\"color:#4D6185; font-size:12px; text-decoration:underline;\">$1</span></b>", $write_pages);
?>
<?=$write_pages?>
<? if ($next_part_href) { echo "<a href='$next_part_href'><img src='$board_skin_path/img/page_search_next.gif' border='0' align=absmiddle title='다음검색'></a>"; } ?>
</div>
<!-- 버튼 링크 -->
<form name=fsearch method=get style="margin:0px;">
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=sca value="<?=$sca?>">
<table width=<?=$width?> cellpadding=0 cellspacing=0 align=center>
<tr>
<td width="50%" height="40">
<? if ($list_href) { ?><a href="<?=$list_href?>"><img src="<?=$board_skin_path?>/img/btn_list.gif" border="0"></a><? } ?>
<? if ($write_href) { ?><a href="<?=$write_href?>"><img src="<?=$board_skin_path?>/img/btn_write.gif" border="0"></a><? } ?>
<? if ($is_checkbox) { ?>
<a href="javascript:select_delete();"><img src="<?=$board_skin_path?>/img/btn_select_delete.gif" border="0"></a>
<a href="javascript:select_copy('copy');"><img src="<?=$board_skin_path?>/img/btn_select_copy.gif" border="0"></a>
<a href="javascript:select_copy('move');"><img src="<?=$board_skin_path?>/img/btn_select_move.gif" border="0"></a>
<? } ?>
</td>
<td width="50%" align="right">
</td>
</tr>
</table>
</form>
</td></tr></table>
댓글 전체
if(!$member[mb_id]) {
$list[$i][href] = "#";
}
이라고 되어있는 부분 찾아서 모두 지우세요...
$list[$i][href] = "#";
}
이라고 되어있는 부분 찾아서 모두 지우세요...
감사합니다~~~~~~~~~~~~~ 되네요~~