Fork me on GitHub

Theme Change/Preview Block  Bottom

  • This might be a simple question, but I'm unsure how its been done. On a few of the sites out there, I've seen on the main page a drop down menu block that lets the user quickly change or preview themes.

    Can someone tell me if that a block hack or how its done? I'd like to let my users be able to change the theme quickly like that.
  • Really all you have to do to preview a theme is append theme=THEMENAME to the end of the URL. So to build a block like that just use some links like THEMENAME You can make it more functional, but that's a start.

    This won't change the theme permanently though. That's a little more involved.

    -Shawn

    --
    Get the Revolutionary AutoTheme HTML Theme System! Currently for Zikula, PHP-Nuke, CRE Loaded, osCommerce and Wordpress!
  • Theme Changer

    Can't remember where I originally got this from, and theres no URL in the readme, so I'll just host it for a bit. Credits go to nicklas@johansson.tk

    Abra is right though, all you need to do is change the index.php line. This block may create more work than you wish to do, b/c you'll have to take a snap shot of each theme you wish to add to the block. (If you dont care, just add the same image over and over and just rename it based on the theme.)
  • Thanks for the help and tips guys. I'm going to take a look at that file tonight.

    But I knew I had seen something before, and its on the http://imagicweb.com/ambient/index.php website. Theres a block there, that lets you change the theme rather easily.

    I know I registered there once before, but can't remember my dumb password at the moment. It might even be in their downloads. But thats what I'm looking for.
  • Well, I regestired over there, and unfortantely its not show avaiable over there, and the boards appear to be locked down, letting only the admin post a question over there. Has anyone see that, or know how to put it together?
  • Hi,

    What would be involved with changing the theme for an entire user session?

    We have a site for a very popular sports celebrity that we have designed. We want to give the user the option of choosing which theme they want the site to appear in (a theme for each team) when they first enter the site. How would we do this?

    Thank you.

This list is based on users active over the last 60 minutes.