팔공산님 주말 편히 잘 쉬고 계시죠? 날씨가 좀 추워요...
봄이 왔다가 잠시 주춤한듯... 담주는 따뜻하다니 다행이에요.
오늘은 스킨에 대해 질문 좀 드리려구요...
제로보드에 띄워져 있는 애플 기본 스킨을 칼라를 다양하게 만들어
보려구 하는데요. 칼라별 세트 제작요.(포샵은 이쁘게 할 수 있어서...ㅎㅎ)
기본 스킨에 그린칼라를 추가했는데, 그린칼라는 선택시 나오는데,
하얀색을 선택하면 나오지 않고 그린색으로만 나오네요.
애플 기본스킨 소스가 원래 단색용으로 나와서 그런가요?
작업은요, 기본스킨 list.htm에 빨간색 부분을 추가해주고요.
<!-- 설정된 컬러셋의 종류에 따라서 css파일을 import 합니다 -->
<!--@if($colorset=="green")-->
<!--%import("css/green.css")-->
<!--@elseif($colorset=="white")-->
<!--%import("css/white.css")-->
<!--@else-->
<!--%import("")-->
<!--@end-->
그리고 css와 images 폴더에 칼라별 css,images파일 올렸는데요.
그런데 그린색선택하면 나오는데, 하얀색 선택하면 그린색으로 나오네요.
왜 그런지....후~~~~ 암튼 칼라별로 만들어보는 첫 시도인데, 안되서 질문
드려요. 이번 기회에 팔공산님 붙잡고 이젠 스킨 좀 배울께요. 도와주실꺼죠?
저녁 해야겠다...ㅋㅋ 주부는 이게 문제에요... 에궁~~~
참, 제가 작업하던 파일 올려 놓을께요. 어디가 잘못 되었는지...
댓글 4
-
역시~~~ 한방에 문제를 해결해주시는 실력있고, 쎈쑤있는 답변... 최곱니다...ㅋㅋ
그런데 하얀색의 경우 제로보드 기본스킨과 latest_white 이름이 같아서인지 이미지가 겹치네요.
어떤걸 이름을 바꾸어야 하는건지... 이름을 바꾸니까 제작중인 스킨이 백지로 나오네요...
<제작중인 스킨 - 하얀색>
<제로보드 스킨 - 하얀색>
그런데 제로보드 기본스킨을 지우니 제작중인 하얀색 스킨이 제대로 나오네요...
요것도 간단한 것 같은데, 어떤 걸 고쳐야 할지요?
그리고 칼라는 기본칼라외에도 추가할 수 있죠?
그런데 제작하려는 칼라를 예를 들어 핑크색(pink)으로 하려면
pink.css를 추가할때 아래 green처럼 색이 빨간색으로 안나오고 검은색으로 나오면서
나오지 않던데... 다른 RGB칼라 조합해서 무한대로 가능한거죠? -
1번은 아무래도 지금 만들고 있는 위젯스킨의 소스을 바꾸는 것이 좋겠죠,
나중에 Zbxe업데이트해도 변경이 없어야 하니까요,
그리고 2번은 제가 무슨 말씀인지 이해가 잘 안갑니다.
pink추가하면 검은색이 나온다는 말이 editplus에서 pink단어가 검정색으로 나온다는 말인지요....
(저는 검정바탕에 흰글씨로 나옵니다.ㅎㅎ)
그거는 뭐 폴더를 지정하는 것이니 굳이 칼라색상이 아니어도 되겠죠.
1,2 이런식으로 폴더 만들고 지정해도 되겠죠. -
아~~~ 이제야 알겠어요. 제로보드와 같은 이름을 사용하면 안되니까 다른색,
또는 다른 이름으로 해야겠어요. 그리고 2번은 색상을 기본칼라(흰색,검은색,파란색,그레이 등)
외에도 추가할 수 있느냐는 건데요. 답변 보니 가능하겠어요.
제가 좋아하는 색이 파스텔 칼라거든요. 이런 파스텔이나 전통색으로 하려구 해요.
암튼 감사합니다. 위젯 스킨 만드는데 오늘 큰 도움되었어요...
이제 편안히 포토샵 작업해야겠어요. 예쁘게 만들께요.
그럼 남은 저녁시간 즐겁고 행복하시길...
혀나겅주님 주말 잘 보내고 계신지요.
이제 위젯에도 도전을 하시는군요, 조만간 먼진 위젯들이 나오겠는데요.
님의 소스를 보니 흰색이 안 나오는게 아니라 흰색만 혼자 또는 그린만 혼자 나오게 하면 나오는데 ,
두개를 동시에 나오게 할려면 나중에 선택한 색상이 나올 것입니다.
그것은 아래위의 css과 서로 상호작용을 해서 그런 것입니다.
그래서 list.html에서 최고바깥쪽 테두리의 이름을 다르게 지정합니다.
저도 처음에 위젯만들때 이것 때문에 많이 고생했습니다.
list.html에서
<div class="latest_apple"> 이 부분을
<div class="latest_{$colorset}"> 이렇게 바꾸어 주시고
css에서도
.latest_apple 이분들을 전부 찾아서
white.css일때는 .latest_white
green.css일때는 .latest_green
이런식으로 바꾸어 주어야 제대로 색상이 표현됩니다.
그리고 한가지더 만약 최근게시물위젯의 경우를 latest_{$colorset}으로 했으며
최근이미지위젯을 새로 하나 다시 만든다면 같은 이름을 사용하면 안되며 image_{$colorset} 이런식으로 바꾸어 주어야 합니다.
제가 말씀드렸죠, "모방은 창조의 어머니"라고요.
지금 사용하신 에플스킨 기본은 예전에 만들어져서 이런 버그가 있었습니다.
모방을 하셔도 최근의 소스를 가지고 하셔야 아무래도 버그가 줄어 들어있겠죠.
참고로 저의 https://moonhouse.co.kr/zbxe/154654에 있는 mh_multi.zip안에 이미지스킨이 애플스킨을 기본으로 해서 만들어진 것 입니다.
받아서 보시면 도움이 될 것입니다.