list.skin.php를 사용안하고 바로 view.skin.php를 보게할수있는 방법은없나요? +소스 채택완료
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=97882&sca=&sfl=wr_subject||wr_content&stx=misshong 이분의 스킨을쓰고있는데요
사진이 한장밖에없어서 목록부분이 되게 빈티가 나보이더라구요.
그래서 상단바에있는 갤러리누르면 갤러리 썸네일리스트가아닌 바로 목록으로 나오게 하고싶은데
category.data.php 나 skin.lib.php에서 뭘 빼야할거같은데..;; 어느 부분을 수정해야할까요..?
=========================skin.lib.php=======================================================
function get_size($filename, $max="120")
{
$size = Array();
list($width, $height, $type, $attr) = getimagesize($filename);
if ($width <= $max && $height <= $max) {
$size[w] = $width;
$size[h] = $height;
} else {
if ($width >= $height) {
$size[w] = $max;
$size[h] = round(($size[w] * $height) / $width);
}
if ($width < $height) {
$size[h] = $max;
$size[w] = round(($width * $size[h]) / $height);
}
}
$size[0] = $width;
$size[1] = $height;
$size[t] = $type;
return $size;
}
function get_nc_category_option($bo_table, $sca="")
{
global $g4, $board;
$arr = explode("|", $board[bo_category_list]);
$arr1 = explode("|", $board[bo_10]);
$key = array_search($sca, $arr);
$cate = explode("^", $arr1[$key]);
for ($i=0; $i
if (trim($cate[$i])) {
$str .= "\n";
}
}
return $str;
}
?>
============================================================
=========================category.data.php=======================================================
$arr = explode("|", $board[bo_category_list]);
$arr1 = explode("|", $board[bo_10]);
echo "function category_data(str, target) { \n";
foreach ($arr as $key => $sca) {
$cate = explode("^", $arr1[$key]);
$i = 1;
echo "if (str == '$sca') { \n";
echo "discard(document.fwrite.wr_10); \n";
echo "document.forms[\"fwrite\"].wr_10.options[0] = new Option('선택하세요', ''); \n";
foreach ($cate as $value) {
if (trim($value)) {
echo "document.forms[\"fwrite\"].wr_10.options[$i] = new Option('$value', '$value'); \n";
$i++;
}
}
echo "} \n\n";
}
echo "}";
?>
// 옵션을 초기화 시키는 함수
function discard(form)
{
for ( i = form.length-1 ; i > -1 ; i--)
{
form.options[i].value = null;
form.options[i] = null;
}
}
댓글을 작성하려면 로그인이 필요합니다.
답변 1개
채택된 답변
+20 포인트
겸손1935
11년 전
상단바 링크 위치에다 wr_id 값을 주면 바로 뷰페이지로 이동합니다.
bbs/board.php?bo_table="게시판"&wr_id="이동할 wr_id 값"
로그인 후 평가할 수 있습니다
답변에 대한 댓글 1개
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인전체 질문 목록
답변대기
답변대기
답변대기
답변대기
답변대기
답변대기
답변대기
답변대기
채택
답변대기
답변대기
답변대기
답변대기
채택
채택
답변대기
답변대기
답변대기
채택