SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Hybrid View

  1. #1
    SitePoint Mentor silver trophybronze trophy

    Join Date
    Feb 2008
    Location
    Preston, Lancashire
    Posts
    1,376
    Mentioned
    71 Post(s)
    Tagged
    1 Thread(s)

    Theme Selector, jQuery Color Picker

    Hi guys,

    I've recently got into template production (now at the early stages), and I am finalizing my first theme. I want to by able to choose different styles on the page like so http://invent-themes.pl/demo/clear-theme/?page_id=46. I've tried doing a search but I found nothing which gives the complete set. I've noticed more than one template (maybe even 100s) have this kind of selector. Can anybody guide me to a proper selector.

    Kind regards,
    Sega
    follow me on ayyelo, Easy WordPress; specializing in setting up themes!

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,526
    Mentioned
    83 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by Sega View Post
    I've tried doing a search but I found nothing which gives the complete set. I've noticed more than one template (maybe even 100s) have this kind of selector. Can anybody guide me to a proper selector.
    What normally happens is that the querystring is read by the server-code code (typically PHP) which then gathers together what is needed.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  3. #3
    SitePoint Mentor silver trophybronze trophy

    Join Date
    Feb 2008
    Location
    Preston, Lancashire
    Posts
    1,376
    Mentioned
    71 Post(s)
    Tagged
    1 Thread(s)
    @paul_wilkins ;

    Do I have to create my own jQuery to do this. Maybe I can find some ready made scripts online. Would save me an enormous amount of time.
    follow me on ayyelo, Easy WordPress; specializing in setting up themes!

  4. #4
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,526
    Mentioned
    83 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by Sega View Post
    Do I have to create my own jQuery to do this. Maybe I can find some ready made scripts online. Would save me an enormous amount of time.
    Oddz is right. Client-side solutions such as jQuery are just not suitable for this type of behavior.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  5. #5
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2006
    Location
    Augusta, Georgia, United States
    Posts
    4,048
    Mentioned
    16 Post(s)
    Tagged
    3 Thread(s)
    The only reliable way to offer a theme which offers configurable styles would be to use a server-side language in front of the style sheet so that placeholders in the style sheet can be replaced with the appropriate, configured values.
    The only code I hate more than my own is everyone else's.

  6. #6
    SitePoint Mentor silver trophybronze trophy

    Join Date
    Feb 2008
    Location
    Preston, Lancashire
    Posts
    1,376
    Mentioned
    71 Post(s)
    Tagged
    1 Thread(s)
    This will be used on a template, for the purpose of selecting different themes. It will not be put on a CMS or need to communicate in any way with a database.
    follow me on ayyelo, Easy WordPress; specializing in setting up themes!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •