(왕초보) baic게시판의 폰트색상변경 > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

(왕초보) baic게시판의 폰트색상변경 정보

(왕초보) baic게시판의 폰트색상변경

본문

기본basic게시판의 폰트색상을 변경하고싶습니다
제목의 테스트1 의 색상(남색?)을 블랙으로 변경하려면 list.skin.php 의 어느부분을 수정하면 될까요
도움부탁드립니다

------------------------------------------------------------------------------------------------
<style>
.board_top { clear:both; }

.board_list { clear:both; width:100%; table-layout:fixed; margin:5px 0 0 0; }
.board_list th { font-weight:bold; font-size:12px; }
.board_list th { background:url(<?=$board_skin_path?>/img/title_bg.gif) repeat-x; }
.board_list th { white-space:nowrap; height:34px; overflow:hidden; text-align:center; }
.board_list th { border-top:1px solid #ddd; border-bottom:1px solid #ddd; }

.board_list tr.bg0 { background-color:#fafafa; }
.board_list tr.bg1 { background-color:#ffffff; }

.board_list td { padding:.5em; }
.board_list td { border-bottom:1px solid #ddd; }
.board_list td.num { color:#999999; text-align:center; }
.board_list td.checkbox { text-align:center; }
.board_list td.subject { overflow:hidden; }
.board_list td.name { padding:0 0 0 10px; }
.board_list td.datetime { font:normal 11px tahoma; color:#BABABA; text-align:center; }
.board_list td.hit { font:normal 11px tahoma; color:#BABABA; text-align:center; }
.board_list td.good { font:normal 11px tahoma; color:#BABABA; text-align:center; }
.board_list td.nogood { font:normal 11px tahoma; color:#BABABA; text-align:center; }

.board_list .notice { font-weight:normal; }
.board_list .current { font:bold 11px tahoma; color:#E15916; }
.board_list .comment { font-family:Tahoma; font-size:10px; color:#EE5A00; }

.board_button { clear:both; margin:10px 0 0 0; }

.board_page { clear:both; text-align:center; margin:3px 0 0 0; }
.board_page a:link { color:#777; }

.board_search { text-align:center; margin:10px 0 0 0; }
.board_search .stx { height:21px; border:1px solid #9A9A9A; border-right:1px solid #D8D8D8; border-bottom:1px solid #D8D8D8; }

댓글 전체

그누보드 설치 폴더루트에 보시면
style.css라는 파일이 있습니다.
이 파일의 상단 7행 정도에 보시면 다음과 같은 부분이 있습니다.

a:link, a:visited, a:active { text-decoration:none; color:#466C8A; }

이 부분의 color:#466C8A; 을 원하는 색상으로 변경해 주세요.
단 이곳에서 수정하시면 홈페이지 전체의 링크가 다 변경된 색으로 바뀝니다.
.board_list td.subject { overflow:hidden; } 

밑에다

.board_list td.subject a { color:#000000; }

이거 한줄 더 넣으면 되지 않나요..

/style.css 를 손대면 홈페이지 전체에 다 적용되어 버립니다.
이렇게 css 에서 조절하는 경우는 단순히 속성으로 조절하는 거구요..

회원 레벨에 따라서 색상을 바꾸고 싶으시면

$list[$i][mb_id] 로  $list[$i][mb_level] 을 불러들인 다음

조건문으로

if($list[$i][mb_level] < 2){ // 비회원

비회원일때 스타일

}elseif($list[$i][mb_level] > 9){// 관리자

관리자일떄 스타일

}else {

일반회원일때 스타일

}

뭐이런식으로 맹글어서 출력부분에 넣어주시고 해당 스타일 각각 지정해주시면
회원등급에 따라서 다른색상을 지정할 수 있겠네요..
전체 66,558 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT