JoomlaGear Template Changer Module

Template Changer allows changing site templates on the fly from the frontend via a drop down selection list.

NEW version 1.2.0

Features:

* NEW! Displayed template names now able to be individually set to any name via Admin parameter.
* Styled to suit virtually all templates.
* Hidden overflow to preserve template layout.
* Template selection module parameter (Select which templates to include in the frontend drop down selection list).
* Show template preview image module parameter (Choose whether to show the template preview image in the frontend).
* Preview image precaching for instantaneous change (If show template preview image is enabled).
* Preview image width module parameter (Adjust the width of template preview image if necessary to suit templates).
* Maximum template name length module parameter (Adjust the maximum number of characters in template names if necessary to suit templates).
* Email Enquiry Button with various module parameters
* Enable cookie module parameter (If enabled, holds a template selection in a cookie for either all sessions or current session only).
* Template selection viewable without cookie (In case cookie module parameter enabled but cookie refused by the client or cookies disabled on the client).
* No modification of Joomla core files.
* English language file included.
* Valid XHTML 1.0 Transitional.
* Valid CSS.

Changelog:

v1.2.0
Displayed template names now able to be individually set to any custom value via Admin parameter.
Templates to display in the frontend drop down selection list now individually set via Admin parameter.
JavaScript functionality added to template selections Admin parameter for ease of use.
Admin parameter elements moved to one file.
XML file updated to reflect changes.
Added first-run set certain parameter values to database if not set.
Changed email enquiry subject to reflect currently selected template rather than current template viewed.
Email enquiry subject now includes displayed template name with trailing bracketed template name (if different).
JavaScript checking of page load status now included to prevent DOM traversal errors.
JavaScript info message if page load incomplete and DOM traversal attempted;
Language file updated to reflect changes.

v1.1.0
Added admin selectable frontend Email Enquiry button for active template with various email parameters in admin.
Set max name length limit to 100.
Set image width limit to 300.
Added to language file translations.
Reordered language file translations in alphabetical order.

v1.0.1
Changed cookie handling from session or disabled only to cookie can now be permanent, session only or disabled. Reflected in updated module parameter.

v1.0.0
Initial release.

Report

bygazzax on December 10, 2009
Top module, with even better support!! had a problem with my templates, and got a quick response with a solution.

Quick heads up for those using Artisteer templates:

Artisteer generated templates are use artisteer generated javascript to style the buttons, which really is poor practice, as they should be css styled. Mouseover button effects can be easily achieved using css, and is much simpler and more reliable than javascript doing the same thing. Javascript should not be used where it is not necessary, as it can be very slow if lots of javascript to load.

Anyways, the solution to your problem should be this if you use artisteer, but I have not tested it, so see how you go.

For an example, I'll use a default template. In the template's index.php file (in joomla root/templates/default/), if you go a bit down the code, you should come to this line:



This is the template's javascript, and if you open this file (again, should be path joomla root/templates/default/script.js), and go right to the bottom, you should find this code:

artLoadEvent.add(function() { artButtonsSetupJsHover("art-button"); });
/* end Button */
artLoadEvent.add(function() {
artButtonsSetupJsHover("button");
artButtonsSetupJsHover("readon");
});

The problem should be solved by commenting out this line, like this:

FROM:
artButtonsSetupJsHover("button");
TO:
//artButtonsSetupJsHover("button");

This should have the effect of losing styling only on button elements.

If that does not work, try commenting out that whole section of code, like this:

FROM:
artLoadEvent.add(function() { artButtonsSetupJsHover("art-button"); });
/* end Button */
artLoadEvent.add(function() {
artButtonsSetupJsHover("button");
artButtonsSetupJsHover("readon");
});
TO:
//artLoadEvent.add(function() { artButtonsSetupJsHover("art-button"); });
/* end Button */
//artLoadEvent.add(function() {
// artButtonsSetupJsHover("button");
// artButtonsSetupJsHover("readon");
//});

This should have the effect of all the buttons losing their styling, but, at least your buttons will be there.
Arrtisteer button code is a whole load of wrapping elements and modifying classnames etc, and really will break most attempts at styling via normal css etc.

The best way, is don't style buttons in artisteer if that is possible.
byCoreyBstn on November 20, 2009
I am working on a site that allows users to have a customized storefront. What I needed was a module that would change the template on the fly to demonstrate the changes of our current customer base for our potential customers.
After toying with some code via suggestions here and there, I was pointed via a post, to this module.

Works like an absolute charm!! But wait, it gets better. This is a free extension and as such I anticipated a fairly long wait to a support question I had concerning IE and Artisteer created templates.

Within several hours I received a reply and instructions for the workaround. Now I am dually impressed!! Thanks JoomlaGear Team...truly appreciated your product and timely response (which, by the way, worked like a charm as well!!)
bycspgsl on November 15, 2009
I needed a template changer that I could rename my demo templates with and this hit the mark right on.
When I had a question I emailed support and got an answer within 20 minutes... on a Sunday morning.
Two thumbs up here!!!
Worked first try, no issues, no need to ask for support. I dropped 1.2.0 into my new site to allow for a Mobile / Lite version for phones, and it did the trick with no fuss. I've contacted the developers to ask if they can make a default template based on browser (so it can default based on IE, FF, or a Mobile Browser), and hopefully they will add this in the future.
byallyson on October 19, 2009
I had an issue with this extension working with Artisteer templates, so I contacted the JoomlaGear support team and they were very responsive.

They responded quickly with detailed instructions for a work around and were very helpful.

Unfortunately the extension simply wouldn't work for me, as there seems to be a javascript conflict, but I am hopeful that future versions of this module will work for me.
byniekshas on October 2, 2009
Great mod, super support :) five stars from me.
Looking forward for a new extensions from JoomlaGear team.
byioo on September 13, 2009
The support is great and the module works perfectly. This enabled me to make my site more friendly to blind people by allowing me to use the beez template for those that need it, and still show off it's good looks to those that don't

Thanks!
byBlackRainNinja on September 9, 2009
Template Changer works great for the most part it is just what you are looking for.

It has a small compatibility issue when used on Artisteer templates because they use Java Script for button styling, The select button will disappear when people pick a template from the list while using IE and Safari it seems to not be an issue if they are in FireFox.

Support was good they provided a work around code change that would disable the JS. styling on buttons in the template.

Support for this issue will probably be added in a new release until then if you use Artisteer for your templates you may want to hold off on using this or make sure you post a notice that it is not fully compatible with some browsers.

That was the only real issue I had with it other then that it worked great and did just what I wanted gave me the ability to make more then one look to my site so people could use the one they like best.
byplangdon on September 7, 2009
Does exactly what it's supposed to with very little hassle. Had a slight technical problem (actually caused more by a dodgy template than this software), and I got a detailed response back quickly. A great example of what's best about the Joomla community!
byterrymatz on June 28, 2009
This is a wonderful tool. I'm using it so that the client can review different templates for her site. But it's also been great for me to compare the different designs and changes I make. It installs quickly, is easily configured, and works perfectly. I'm looking forward to hearing more from JoomlaGear.
bybali on April 10, 2009
Working like a charm...and the support team is fantastic. Use it!
byegrueda on February 18, 2009
Finally! This should have been in the core! why do they decided to remove it?
Thanks for this usefull extension
The title says all you need to know. The extension works perfectly and the support staff is just fantastic: it gives accurate and quick answers.
Thank you for the work done guys!
bytophery on November 21, 2008
The template changer was simple and easy to install. No problems or issues whatsoever. Works just like it said it would, actually better than I thought it would.
bylickity40 on September 25, 2008
I've experienced a number of sites that sell templates and find the feature of previewing them with a template changer is fantastic! I'm not sure if they use this particular extension to make that happen, but I do know that I use this one and it works as well as the others I've seen.

Great job!!!
bymicran on September 8, 2008
A very usefull module, easy to install and configure, and with adequate and quick support by the developer when a question arises.
It is good to know that this module works fine with all templates that are installed using the Joomla!-installer.
Thank you very much.
byarathra on August 27, 2008
Version 1 worked fine but didn't allow the template choice to be retained between user sessions. I wrote to the developers and the next day they sent along v1.01 whereby template choices were retained as cookies on the client's computer thus keeping the template choice.

It's now precisely what I need and is working without a hitch on IE, FF and Opera.

Impressive tech support as well!
byTehNoodles on August 24, 2008
Does exactly what is says. Its menu item is very smooth and very clean. Makes a great addition to your site if you have multiple templates you wish to make available to your users.

Great module!