1、打开foumdisplay.php
找到:
$colorarray
=
array
(
''
,
'
red
'
,
'
orange
'
,
'
yellow
'
,
'
green
'
,
'
cyan
'
,
'
blue
'
,
'
purple
'
,
'
gray
'
);
修改成:
$colorarray
=
array
(
''
,
'
orange
'
,
'
#B454E8
'
,
'
#21E41B
'
,
'
#E28D1D
'
,
'
#0099ff
'
,
'
#00ccff
'
,
'
purple,
'
#
EA2ED8');
即把喜欢的颜色改成#21E41B这样的形式,不变的就不要动。
2、打开include/misc.func.php ,修改办法同1 。
3、打开templates/default/topicadmin_moderate.htm
找到
<
td
>
<
input
class
="radio"
type
="radio"
name
="highlight_color"
value
="1"
$colorcheck[1]
></
td
><
td
width
="20"
bgcolor
="red"
>
</
td
>
< td > < input class ="radio" type ="radio" name ="highlight_color" value ="2" $colorcheck[2] ></ td >< td width ="20" bgcolor ="orange" > </ td >
< td > < input class ="radio" type ="radio" name ="highlight_color" value ="3" $colorcheck[3] ></ td >< td width ="20" bgcolor ="yellow" > </ td >
< td > < input class ="radio" type ="radio" name ="highlight_color" value ="4" $colorcheck[4] ></ td >< td width ="20" bgcolor ="green" > </ td >
< td > < input class ="radio" type ="radio" name ="highlight_color" value ="5" $colorcheck[5] ></ td >< td width ="20" bgcolor ="cyan" > </ td >
< td > < input class ="radio" type ="radio" name ="highlight_color" value ="6" $colorcheck[6] ></ td >< td width ="20" bgcolor ="blue" > </ td >
< td > < input class ="radio" type ="radio" name ="highlight_color" value ="7" $colorcheck[7] ></ td >< td width ="20" bgcolor ="purple" > </ td >
< td > < input class ="radio" type ="radio" name ="highlight_color" value ="8" $colorcheck[8] ></ td >< td width ="20" bgcolor ="gray" > </ td >
< td > < input class ="radio" type ="radio" name ="highlight_color" value ="2" $colorcheck[2] ></ td >< td width ="20" bgcolor ="orange" > </ td >
< td > < input class ="radio" type ="radio" name ="highlight_color" value ="3" $colorcheck[3] ></ td >< td width ="20" bgcolor ="yellow" > </ td >
< td > < input class ="radio" type ="radio" name ="highlight_color" value ="4" $colorcheck[4] ></ td >< td width ="20" bgcolor ="green" > </ td >
< td > < input class ="radio" type ="radio" name ="highlight_color" value ="5" $colorcheck[5] ></ td >< td width ="20" bgcolor ="cyan" > </ td >
< td > < input class ="radio" type ="radio" name ="highlight_color" value ="6" $colorcheck[6] ></ td >< td width ="20" bgcolor ="blue" > </ td >
< td > < input class ="radio" type ="radio" name ="highlight_color" value ="7" $colorcheck[7] ></ td >< td width ="20" bgcolor ="purple" > </ td >
< td > < input class ="radio" type ="radio" name ="highlight_color" value ="8" $colorcheck[8] ></ td >< td width ="20" bgcolor ="gray" > </ td >
把修改的颜色改成对应的#21E41B这样的形式 ,注意要和前边的颜色数组一致 。
如果需要添加更多颜色,只需要在后边按照下边的格式加(注意value和$colorcheck[8]):
<
td
>
<
input
class
="radio"
type
="radio"
name
="highlight_color"
value
="7"
$colorcheck[7]
></
td
><
td
width
="20"
bgcolor
="purple"
>
</
td
>
然后修改topicadmin.php
找到:
if
(
$highlight_style
<
0
||
$highlight_style
>
7
||
$highlight_color
<
0
||
$highlight_color
>
8
) {
showmessage( ' undefined_action ' , NULL , ' HALTED ' );
}
showmessage( ' undefined_action ' , NULL , ' HALTED ' );
}
修改颜色个数,比如增加了一种颜色,修改为:
if
(
$highlight_style
<
0
||
$highlight_style
>
8
||
$highlight_color
<
0
||
$highlight_color
>
9
) {
showmessage( ' undefined_action ' , NULL , ' HALTED ' );
}
showmessage( ' undefined_action ' , NULL , ' HALTED ' );
}