원래 비나무님의 팁을 제가 약간 변형했습니다.
1. xe/modules/board/스킨명/write_form.html 파일 45줄부터 빨간색 스크립트를 추가하고 파란색부분을 이동하면
로그인한 회원들은 제목색깔과 굵기부분을 수정할 수 있습니다.
2. xe/modules/board/board.controller.php파일 31~35째줄
1. xe/modules/board/스킨명/write_form.html 파일 45줄부터 빨간색 스크립트를 추가하고 파란색부분을 이동하면
로그인한 회원들은 제목색깔과 굵기부분을 수정할 수 있습니다.
<dl class="option">
<!--@if($logged_info->member_srl)-->
{@ $_color = array('555555','222288','226622','2266EE','8866CC','88AA66','EE2222','EE6622','EEAA22','EEEE22') }
<dd><select name="title_color" id="title_color" <!--@if($oDocument->get('title_color'))-->style="background-color:#{$oDocument->get('title_color')};"<!--@end--> onchange="this.style.backgroundColor=this.options[this.selectedIndex].style.backgroundColor;">
<option value="" style="background-color:#FFFFFF;">{$lang->title_color}</option>
<!--@foreach($_color as $_col)-->
<option value="{$_col}" style="background-color:#{$_col}" <!--@if($oDocument->get('title_color')==$_col)-->selected="selected"<!--@end-->>{$lang->title_color}</option>
<!--@endforeach-->
</select></dd>
<dd>
<input type="checkbox" name="title_bold" id="title_bold" value="Y" <!--@if($oDocument->get('title_bold')=='Y')-->checked="checked"<!--@end--> />
<label for="title_bold">{$lang->title_bold}</label>
</dd>
<!--@end-->
<!--@if($grant->manager)-->
<dd>
<input type="checkbox" name="is_notice" value="Y" <!--@if($oDocument->isNotice())-->checked="checked"<!--@end--> id="is_notice" />
<label for="is_notice">{$lang->notice}</label>
</dd>
<!--@if($logged_info->member_srl)-->
{@ $_color = array('555555','222288','226622','2266EE','8866CC','88AA66','EE2222','EE6622','EEAA22','EEEE22') }
<dd><select name="title_color" id="title_color" <!--@if($oDocument->get('title_color'))-->style="background-color:#{$oDocument->get('title_color')};"<!--@end--> onchange="this.style.backgroundColor=this.options[this.selectedIndex].style.backgroundColor;">
<option value="" style="background-color:#FFFFFF;">{$lang->title_color}</option>
<!--@foreach($_color as $_col)-->
<option value="{$_col}" style="background-color:#{$_col}" <!--@if($oDocument->get('title_color')==$_col)-->selected="selected"<!--@end-->>{$lang->title_color}</option>
<!--@endforeach-->
</select></dd>
<dd>
<input type="checkbox" name="title_bold" id="title_bold" value="Y" <!--@if($oDocument->get('title_bold')=='Y')-->checked="checked"<!--@end--> />
<label for="title_bold">{$lang->title_bold}</label>
</dd>
<!--@end-->
<!--@if($grant->manager)-->
<dd>
<input type="checkbox" name="is_notice" value="Y" <!--@if($oDocument->isNotice())-->checked="checked"<!--@end--> id="is_notice" />
<label for="is_notice">{$lang->notice}</label>
</dd>
2. xe/modules/board/board.controller.php파일 31~35째줄
// 관리자가 아니라면 게시글 색상/굵기 제거
if(!$this->grant->manager) {
unset($obj->title_color);
unset($obj->title_bold);
}
항목을 삭제하시든지, 주석처리하세요.if(!$this->grant->manager) {
unset($obj->title_color);
unset($obj->title_bold);
}