Written by torinogt
SubSilver2
Be sure to backup all files prior to installin this mod.
This mod removes colour pallete from right side of posting_body.html.
Adds colour pallete and special characters scripts to posting_buttons.html.
Adds special characters and colour palette buttons inline after flash button.
Adds special characters and colour palette help in posting.php
Adds .buttonz class to stylesheet.css
1. a. Copy special_chars.js to your root directory
1. b. Copy omega.png and color.png to root/images 2. Add between the <head></head> tags in overall_header.html preferrably right after <link rel="stylesheet" href="{T_STYLESHEET_LINK}" type="text/css" />
Code: Select all
<script type="text/javascript" src="./special_chars.js"></script>
root\styles\subsilver2\template\posting_body.html
Find and remove:
Code: Select all
<!-- IF S_BBCODE_ALLOWED -->
<td width="80" align="center" valign="top">
<script type="text/javascript">
// <![CDATA[
colorPalette('v', 7, 6)
// ]]>
</script>
</td>
<!-- ENDIF -->
Find:
Code: Select all
tip: '{L_STYLES_TIP}'
Code: Select all
tip: '{L_STYLES_TIP}',
x: '{LA_BBCODE_CHARS_HELP}',
v: '{LA_BBCODE_V_HELP}'
Code: Select all
<td class="genmed" align="center">{L_FONT_COLOR}</td>
Code: Select all
<tr><td>
<!-- colour palette and special characters scripts -->
<!-- start colour palette script -->
<div id="colour_palette" align="center" style="display: none;">
<script type="text/javascript">
function change_palette()
{
dE('colour_palette');
e = document.getElementById('colour_palette');
}
colorPalette('h', 10, 6);
</script>
</div>
<script language="javascript">
function toggleDiv(colour_palette){
if(document.getElementById(colour_palette).style.display == 'none'){
document.getElementById(colour_palette).style.display = 'block';
}else{
document.getElementById(colour_palette).style.display = 'none';
}
}
</script>
<!-- end colour palette script -->
<!--start spec char script -->
<div id="chars_view" align="center" style="display: none;">
<dt>
<li id="zoom" style="text-align:center; list-style-type:none; padding-top:2px; font-size: 36px;"> </li>
</dt>
<script type="text/javascript">
// <![CDATA[
function change_chars()
{
dE('chars_view');
e = document.getElementById('chars_view');
}
specialchar();
// ]]>
</script>
</div>
<script language="javascript">
function toggleDiv(chars_view){
if(document.getElementById(chars_view).style.display == 'none'){
document.getElementById(chars_view).style.display = 'block';
}else{
document.getElementById(chars_view).style.display = 'none';
}
}
</script>
<!-- end special character script -->
<!-- end colour palette and special characters scripts -->
</td></tr>
Code: Select all
<!-- IF S_BBCODE_FLASH -->
<input type="button" class="btnbbcode" accesskey="d" name="addbbcode18" value="Flash" onclick="bbstyle(18)" onmouseover="helpline('d')" onmouseout="helpline('tip')" />
<!-- ENDIF -->
Code: Select all
<!-- start special char and colour palette buttons -->
<input type="button" class="buttonz" value="" style="background: url('./images/omega.png');" onclick="javascript:;" onmousedown="toggleDiv('chars_view');" onmouseover="helpline('x');" onmouseout="helpline('tip');"/>
<input type="button" class="buttonz" value="" style="background: url('./images/color.png');" onclick="javascript:;" onmousedown="toggleDiv('colour_palette');" onmouseover="helpline('v');" onmouseout="helpline('tip');"/>
<!-- end special char and colour palette buttons -->
Find:
Code: Select all
'BBCODE_D_HELP' => 'Flash: [flash=width,height]http://url[/flash]',
Code: Select all
// Special Chars
'BBCODE_CHARS_HELP' => 'Insert special characters',
'CHARS_HELP' => 'Special characters',
'BBCODE_V_HELP' => 'Select font colour',
Find:
Code: Select all
.username-coloured {
font-weight: bold;
}
Code: Select all
.buttonz {
width: 22px !important;
height: 22px !important;
background-position: center !important;
background-repeat: no-repeat !important;
margin: 6px 0px !important;
border: 1px solid #979797 !important;
}
.buttonz:hover {
background-color: #ebebeb !important;
border: 1px solid #120000 !important; /*BC2A4D*/
}