연혁에 사용되어질 게시판
받아가기만 해서 올려도 봅니다.
list.skin.php에 최종분류명을 적어두었습니다. 알맞게 수정해주세요.
list.skin.php에 최종분류명을 적어두었습니다. 알맞게 수정해주세요.
|
댓글을 작성하시려면 로그인이 필요합니다.
댓글 62개
근데 설치는 어떻게?
<meta http-equiv="refresh" content="0;url=<?=$g4[path]?>/bbs/board.php?bo_table=<?=$bo_table?>">
에서 5는 카데고리를 5가지 적었다면 마지막 5번째 카테고리 뒤에는 "|"를 붙치지 말라는 거네요
자기 카테고리 수에 따라 수정하심되겟어요^^
헌데 해당 글 삭제는 없는데..
어떻게 삭제해야하나요?
링크는 원하는 분류로 직접 걸어주세요.
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<!-- 상단 카테고리 시작 -->
<table width="<?=$width?>" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="110"><img src="<?=$board_skin_path?>/img/cate_list.gif" width="110" height="39"></td>
<td background="<?=$board_skin_path?>/img/search_bg.gif">
<table border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="490">
<? if ($is_category) { ?>
<?
$cnt = 1;
$sql = " SELECT bo_category_list FROM $g4[board_table] WHERE bo_table = '$bo_table' ";
$row = sql_fetch($sql);
$arr = explode("|", $row[bo_category_list]); // 구분자가 | 로 되어 있음
$str = "";
$str .= "";
for ($i=0; $i<count($arr); $i++)
if (trim($arr[$i])) {
$sql1 = " SELECT count(*) as cCount FROM $write_table WHERE ca_name = '$arr[$i]' and wr_comment >= 0 ";
$row1 = sql_fetch($sql1);
$str .= " <a href='./board.php?bo_table=$bo_table&page=$page&mode=$mode&mpage=$mpage&spage=$spage&sca=$arr[$i]'><font color='blue' >";
if ($sca == $arr[$i]) { $str .= "<img src=$board[bo_10] height=20 align=absmiddle> <b>$arr[$i]</b>"; }
else { $str .= $arr[$i]; }
if ($cnt != count($arr)) { $str .="</a> <font color='#838383'>|</font> "; }
if ($cnt == 5) { $cnt = 1; $str .= ""; }
$cnt++;
}
$sql2 = " SELECT count(*) as cCount FROM $write_table WHERE wr_comment >= 0 ";
$row2 = sql_fetch($sql2);
$Total_Cat = $row2[cCount];
?>
<?=$str?>
<?}?>
</td>
</tr>
</table></td>
<td width="24"><img src="<?=$board_skin_path?>/img/cate_right.gif" width="24" height="39" border=0 align=absmiddle></td>
</tr>
</table>
<table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="10"></td>
</tr>
</table>
<? $lists = array();
for ($i=0; $i<count($list); $i++) {
$lists[$i] = $list[$i];
}
?>
<table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="10"></td>
</tr>
</table>
<? for ($ii=0; $ii < count($lists); $ii++) { ?>
<table width="<?=$width?>" border="0" cellspacing="0" cellpadding="5" align="center" class=box_all>
<tr height="25">
<td bgcolor=beige width=100> <nobr style='overflow:hidden; width:80;'><span >
<?
$date1 = substr($lists[$ii][wr_subject],0,4);
$date2 = substr($lists[$ii][wr_subject],4,2);
$date3 = substr($lists[$ii][wr_subject],6,2);
?>
<?=$date1?>. <?=$date2?>. <?=$date3?>
</span></nobr>
</td>
<td width=5 align=center><font color=green>:</font></td>
<td bgcolor=beige >
<?=nl2br($lists[$ii][wr_content])?>
<?
$image = $lists[$ii][file][0][file]; //원본
echo " <a href=\"javascript:;\" OnClick=\"popupImage('$g4[path]/data/file/$bo_table/$image')\" onFocus=\"this.blur();\" title=\"{$lists[$ii][subject]}\">";
echo $lists[$ii][icon_file];
?>
</td>
<? if ($member[mb_level] == "10" || $is_admin) { ?>
<td width=30><a href="<?=$write_href?>&w=u&wr_id=<?=$lists[$ii][wr_id]?>&page=<?=$page?>">E</a>
<a href="javascript:del('./delete.php?bo_table=<?=$bo_table?>&wr_id=<?=$lists[$ii][wr_id]?>&page=<?=$page?>');">d</a></td>
<? } ?>
</tr>
</table>
<table><tr><td height=2></td></tr></table>
<?}?>
<br>
<? if ($write_href) { ?>
<a href="<?=$write_href?>"><img src="<?=$board_skin_path?>/img/btn_write.gif" hspace="2" vspace="5" border="0" align="absmiddle"></a>
<? } ?>
<? if ($admin_href) { ?><a href="<?=$admin_href?>"><img src="<?=$board_skin_path?>/img/btn_admin.gif" title="관리자" border="0" align="absmiddle"></a><?}?>
<script language="javascript">
function popupImage(imageURL){
imageHandle=open("","popupForImage","toolbar=no,location=no,status=no,manubar=no,scrollbars=no,resizable=no,width=100,height=100,top=0,left=0");
imageHandle.document.write("<title> </title>");
imageHandle.document.write("<style>");
imageHandle.document.write("*{margin:0;padding:0;border:0;}");
imageHandle.document.write("</style>");
imageHandle.document.write("<img src=\""+imageURL+"\" onload=\"window.resizeTo(this.width+6,this.height+55);\" onclick=\"self.close();\" style=\"cursor:hand;\" title=\"클릭하면 닫힙니다.\">");
}
</script>
왜그런지, 고수님들의 조언을 부탁드립니다.
위와같이 게시판에 적용한 뒤에 게시판에서 2007년|2008년|2009년 의 연도를 클릭하면
|액박 2009년 와 같이 액박이 뜨는데 그림 속성을 찿아 수정하려해도 경로가 http://www.fieldflower.pe.kr/bbs/height=20 식으로 나오는데 어떻게 해야 하나요?
2. 사진을 첨부했을 경우 팝업으로 뜨는데 icon_file.gif 가 링크가 되어 있어서 border값을 =0 으로 주고 싶은데 어딜 수정해야 하는지 (제가 아는 지식은 이것밖에 없어서)
제발 좀 알려 주셨으면 합니다. 하루종일 씨름해봐도 모르니깐 정말 힘드네요
제발좀 알려주세요
28번째 라인을
if ($sca == $arr[$i]) { $str .= "<img src=$board[bo_10] height=20 align=absmiddle> <b>$arr[$i]</b>"; }
에서
if ($sca == $arr[$i]) { $str .= "<height=20 align=absmiddle> <b>$arr[$i]</b>"; }
으로 수정해서 사용하시면 됩니다.
자알 쓰세요!
이스킨은 목록수 초과되면 게시물이 사라지는데.. 어떻게 해결하죠 ㅡ?
105번째 줄에 넣으시면 될듯합니다.
이미지않나오는것은 기본게시판에서 이미지 찾아서 보드 img폴더에 복사해서 넣으시면 되요..
<div style="text-align:center; line-height:30px; clear:both; margin:5px 0 10px 0; padding:5px 0; font-family:gulim;">
<? 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>/", "<b><span style=\"color:#B3B3B3; font-size:12px;\">$1</span></b>", $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>
x박스 문제는 bo_10 인가에 아이콘 주소를 넣어주면 됩니다.(소스에 있음)
밑의 관리자 이미지가 X표시로 나오는데 어디를 수정해야 할까요?
그리고 수정이 안데네요. 수정하고 쓰기를 클릭하면 전혀 꿈쩍하지 않습니다.
도와주세요