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.
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- mazdev responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 24. May
- nestormateo responded to »Fillters in Clip« 24. May
- damon responded to »Can the Updated Version Check be Turned Off (Z 1.3)« 24. May
- frw responded to »Bug in the SMTP mail transfer protocol - Port 25 - Zikula 1.2.9« 22. May
- mdee responded to »Short URL questions« 22. May
- mesteele101 responded to »Problem in Database Connection« 21. May
- Herr.Vorragend responded to »Clip Documentation and Doubt« 19. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Theme Change/Preview Block
-
- Rank: Expert
- Registered: Aug 20, 2002
- Last visit: Jan 12, 2010
- Posts: 1219
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! -
**unknown user**
- Rank: Freshman
- Registered: Mar 16, 2002
- Last visit: Oct 14, 2004
- Posts: 99
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.) -
**unknown user**
- Rank: Freshman
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 90
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. -
**unknown user**
- Rank: Freshman
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 90
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? -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Jul 09, 2004
- Posts: 5
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.
- Moderated by:
- Support
