ChiMoHe wrote on Nov 22
nd, 2008 at 3:52pm:
I would like add the use of the color picker though I'm at a stubling block with how to go about it ... If anyone is feeling up to it Please and ThankYou ...
I got the color picker to work by looking how it was done in Admin Center (Admin/Setting_Main.pl). This bit of your code that changes the background color for PicRow:
$showProfile .= qq~
<tr class="windowbg">
<td align="left"><b>$lang_pcss{'pbgcolor'}: </b></td>
<td align="left"><input type="text" name="pbgPicRowcolor" size="12" value="$pbgPicRowcolor" maxlength="12" /></td>
</tr>
~;
I changed to this:
$showProfile .= qq~
<tr class="windowbg">
<td align="left"><b>$lang_pcss{'pbgcolor'}: </b></td>
<td align="left"><span style="vertical-align: middle;"><input type="text" name="pbgPicRowcolor" size="7" value="$pbgPicRowcolor" maxlength="7" /></span><img src="$imagesdir/palette1.gif" style="vertical-align: middle; cursor: pointer;" onclick="window.open('$scripturl?action=palette;task=templ', '', 'height=308,width=302,menubar=no,toolbar=no,scrollbars=no')" alt="" border="0" /></td>
<script language="JavaScript1.2" type="text/javascript">
<!--
function previewColor(color) {
document.getElementsByName("pbgPicRowcolor")[0].value = color;
}
//-->
</script>
</tr>
~;
You should be able to compare it to see how it's done and add it to the rest of the color fields.
One thing I have noticed though... After installing this Mod, BBCode doesn't work in signatures when viewing the profile page, it appears as code.