Jason’s Customciser :: Customise your themes!

I wrote this plugin for my Wordpress MU site and am releasing it as GPL with the hope that some might find it useful. It allows your users to customise any theme on your site, changing images and colours in the CSS. It's still pretty raw but I do have plans to make it much prettier in the future.

Downloads:

Installation:

  • Download and unzip package, copy Jason_Customciser.php into your plugins directory (/wp-inst/wp-content/plugins).

Requirements:

  • Plugins need to be enabled for your site.

Screenshot:

Jason_Customciser_ss_tn.jpg

Notes:

  • If you are able to install Pear's HTML_CSS 1.0.0RC2 package, you can look for the line that says //Everything below this line may be deleted if you are able to install PEAR's HTML_CSS and delete everything below it.

Q&A

Q: If someone customises a theme, will everyone else using the theme be affected?
A: No. Each user’s customisation will affect only his/her own theme. In future versions, we might allow users to ‘share’ their customisations.

Q: How does it work?
A: Briefly: When the plugin is run, it scans through the currently used theme and parses the CSS. It identifies images and colours and stores them as options that the user can change. It then injects these changes back into the theme.

37 Responses to “Jason’s Customciser :: Customise your themes!”

  1. Aferraz says:

    I have this error:
    URL file-access is disabled in the server configuration

    How can I change the code to bypass the URL file-access restrictions ?

    Thanks

  2. jason says:

    Updated it, should work now.

  3. LadeeM says:

    I receive this error:
    Parse error: parse error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /home/**/public_html/**/wp-inst/wp-content/plugins/Jason_Customciser.php on line 39

    I don’t have shell access to make sure I have the HTML_CSS - do you think that is the problem?

  4. Aferraz says:

    I have more errors:
    Line 235:
    URL file-access is disabled in the server configuration
    and
    ailed to open stream: no suitable wrapper could be found

    Line 257:
    failed to open stream: No such file or directory
    and
    Failed opening required ‘HTML/CSS.php’ (include_path=’.:/usr/local/php5/lib/php’)

  5. jason says:

    ok, updated it again, hopefully you guys will be able to get it to work now :)

  6. Aferraz says:

    OK. Now work fine. Thanks for all.

  7. Grenache says:

    Why that don’t works for me?

    Parse error: parse error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /home2/uz2507/public_html/wp-inst/wp-content/plugins/Jason_Customciser.php on line 39

  8. LadeeM says:

    I still get the same error. :( I think it may be because I don’t have shell access to activate the HTML_CSS. Oh well - it’s a cool concept regardless!

  9. Grenache says:

    is there a way to bypass this html_css or some alternatives to this for who don’t have shell access?

  10. jason says:

    HTML_CSS is no longer required.

    It seems it might be because you guys are not using PHP5. However, it is unlikely I will be modifying the plugin to work with PHP4.

  11. LadeeM says:

    You are correct. I don’t have php5. Well, hopefully I will get upgraded soon. ;) I’ll keep an eye on this!

  12. skipper says:

    Any luck getting this to work with a lower version of PHP?

  13. Ste says:

    yes, i receive the same error and i use php4 too ….you can update the plugin for php4? thanks bye Ste ;)

  14. Eric says:

    Yes please make this compatible with PHP4!!

  15. Blips says:

    Wooooow this is a great plugin, works as a charm on my MU

    Also have some wishes/requests;

    1. Can it detect and display the picture dimensions …x… pixels?
    2. Can you write “colors” instead of “colours” (I looked strange first then i got it, its French)
    3. Is there a cheatcheet , sort of map where the colors are used?
    (I know some themes use different places)
    4. Can you make the entry box using a color picker / sheet aswell as color code?
    5. Can you make a preview button. (Thats a difficult one I know)

    Keep up the great work this plugin is going to be great.!!

  16. soylopeor says:

    wow! this’s great! :)

    if i put in the mu-plugins it will work too? (i want to make this activated for all users)

  17. matrixmonkey says:

    hiya the download url isnt’ working :((

  18. mylove says:

    where is the download url for php4 compatible version?

  19. ovidiu says:

    hello,

    the php4 download link ist dead, can somebody put it up again please?

  20. ovidiu says:

    hello,

    can you tell me which is the last line to be cut out? I installed HTML_CSS but I am not sure exactly what to cut out, maybe you can tell me which is the last line to cut out?

    thx

  21. ovidiu says:

    I just noticed, that if my theme loads a style.css and later on a plugin loads another style.ccs your plugin only parses the second style.css, meaning I am actually unable to change any style belonging to my theme, just those styles belonging to my plugins… any fix for this?

  22. gerald says:

    Hi Jason,
    I am glad to come across your informative blog.
    By the way, I am the author of a Rocky book and I am currently lauching my website at http://www.therealrockychallenge.com. (please take a look)
    My objective is to get as many inspiring real life Rocky stories as possible from around the world and the only way to do that is by installing Wordpress MU. However I have no experience whatsoever in installing it, and with so many reported bugs i am afraid my project would be delayed. Can I request your help to set up a WPMU blogsite for me, so I can continue with real rocky campaign - to serve a noble deed in inspiring people from around the world. And i would like to invite you to post your inspiring story as well.
    Greatly appreciate your help.
    To the real rocky in all of us,
    Thank you.
    Gerald (my e-mail is gchuah@gmail.com)

  23. des says:

    HI. Great plugin but i have a few concerns about the possibilities to parse javascript. How secure is the plugin and does it strip out javascript from any input boxes ?

    Also do you plan on updating to add a color picker ?

  24. des says:

    I guess the plugin is no longer supported ? What a real shame :9 Its not compatible with 2.1 either ..

  25. Excuse me, I heard about this more and more …so plsss provide new informations in this category…

    Don Lapre Jeffery
    webmaster@nanoosenativeplants.org
    http://www.nanoosenativeplants.org

  26. Lisa says:

    Hi Jason.

    Customsicer is not working with my theme. It seems that the code is in the header, but does not surround anything. Can you tell me if there are known problems with the Tranquility White theme?

    THANKS!

  27. Dus says:

    When i try to enable Plugin in wordpress MU version 2.2.1 i get the error: “could not be activated because it triggered a fatal error.”

    Please help, I would really like to use this plugin.

  28. irina zaks says:

    Hi, I just installed wordpress mu, installed your plugin in mu-plugins directory, but I cannot find where I can activate it in the admin panel. Please help, the plugin is great, but I cannot use it!!

    thanks, irina

  29. mvkozyrev says:

    Is there a way to make a visual panel not to impose CSS manually and choose colors from the table, like header color changing? I think it will be more useful.

  30. secret says:

    hi jason,

    please email me… I need a very big favour regarding one of my blogs at lah.cc. Will appreciate it immensely!! (please don’t reveal this comment)

    I’m quite bad at googling la. I couldn’t find your email address. So had to come to this. =)

  31. Mattz says:

    Hi Jason,

    I don’t see this plugin not at all in my Plugins menu or at Presentations.

    I run PHP5 and use the PHP5 version.

    Any idea ?

  32. Brett says:

    There should be some way to only show certain veriables

  33. Brett says:

    There should be some way to only show certain options.

    so things like
    input#author, input#email, input#url, textarea#comment: color

    can be removed

  34. Tonya says:

    Have HTML_CSS installed, now getting this error when I try and activate it:

    Fatal error: Cannot redeclare class Jason_Customciser in /home/xxx/public_html/blogs/wp-content/plugins/Jason_Customciser.php on line 38

    Link 38 is:

    class Jason_Customciser {

    Any suggestions?

    Thanks

  35. csb says:

    Absolutely Imperative! This was a #1 Problem… your program/plugin is essential since we who are hosted can’t get into the code! I do hope some of these people get there heads out of their ‘codes’ and start thanking you a bit!

    This area should just be about thanking you!

    Again, Well Done!

Leave a Reply