The MU forums have moved to WordPress.org

Jason Customciser (Jason_Customciser-doc) with .js visual colour picker (4 posts)

  1. mvkozyrev
    Member
    Posted 16 years ago #

    I'm using Jason Customciser (version Jason_Customciser-doc) to let users customise themes. And I want to "visualise" Colour-input.

    I found nice .js-colourpicker, but I can't to include it to Jason_Customciser.php correctly (.js working, but don't give anything to php).

    Anibody can help me?

    Here is the .js code:

    <script language="JavaScript">d=document;
    gen6=function(p){b='FFCC99663300'.match(/../g);
    s='';j=0;
    while(j<216)
    s+=(j%36?'':'<tr>')+'<td bgColor='
    +b[(j-j%36)/36]+b[(j-j%6)/6%6]+b[j%6]
    +' style="font-size:4px" width=6 height=6></td>'
    +(++j%36?'':'</tr>');
    d.body.innerHTML+=
    '<table bgColor=black cellpadding=0 cellspacing=1 id=t'
    +p+'>'+s+'</table><input id=it'+p+'>';
    }</script>
    <script language="JavaScript"> clicked=0; d.onmouseover=function(e){ t=d.all?event.srcElement:e.target;
    if(clicked||t.tagName!='TD')return;
    if(t.bgColor)
    d.getElementById('i'+t.offsetParent.id).value=t.bgColor;
    }
    d.onclick=function(e){ t=d.all?event.srcElement:e.target;
    if(t.tagName!='TD'&&t.tagName!='TABLE')return;
    clicked=1-clicked;
    }</script>
    <script language="JavaScript">onload=gen6;</script>

  2. Mattz
    Member
    Posted 16 years ago #

    Did you got this plugin running on the latest MU version ? I get errors in my PHP error log and the script exists simply after 30 times...

  3. mvkozyrev
    Member
    Posted 16 years ago #

    There are two versions of this plugin: for PHP4 and PHP5 - Jason_Customciser and Jason_Customciser-doc.
    I use it for WPMU 1.3.

    But it is question for me. Not answer for my question :(.

    Now I only insert .js like pop-up windov, and user must copy-and-paste color code (not good).

  4. Mattz
    Member
    Posted 16 years ago #

    But does the PHP5 version work on your 1.3 install ?

    I get a white page and an error in my phplogs that seems to be a loop.

About this Topic