-
AuthorPosts
-
August 21, 2009 at 12:47 pm #143618
Using Joomla ver 1.5.12
Template Ja_Zinc
—–Hi everyone,
Please help. I am starting the template without sample data and I am trying to set up a menu item “6 Styles” where the webuser can choose/switch their style of theme at any time between grass, graffiti, game etc.. just like in the live demo. But… I’m having no luck.
This is what I’m doing…
a) In Menus and under Main menu I’ve created a menu item “Choose Your Style”
b) I create a sub menu item “Style Graffiti” and in this I’ve chosen it to be an External Link – then in the external link box I put the code ?ja_color=graffiti
c) save
d) I then test out the menu item and it doesn’t change to graffiti theme.What am I missing or doing wrong?
Thanks in advance for your help and looking forward to hearing the solution.
Paula
bennitos Friendbennitos
- Join date:
- May 2008
- Posts:
- 1717
- Downloads:
- 0
- Uploads:
- 39
- Thanks:
- 39
- Thanked:
- 474 times in 407 posts
August 21, 2009 at 1:27 pm #314991That is because the “?ja_color=” only works on JA demo site’s, and does not work on the quickstarts you download.
They only use it to show the different style in the demo’s.
<em>@ptemple 141589 wrote:</em><blockquote>Using Joomla ver 1.5.12
Template Ja_Zinc
—–Hi everyone,
Please help. I am starting the template without sample data and I am trying to set up a menu item “6 Styles” where the webuser can choose/switch their style of theme at any time between grass, graffiti, game etc.. just like in the live demo. But… I’m having no luck.
This is what I’m doing…
a) In Menus and under Main menu I’ve created a menu item “Choose Your Style”
b) I create a sub menu item “Style Graffiti” and in this I’ve chosen it to be an External Link – then in the external link box I put the code ?ja_color=graffiti
c) save
d) I then test out the menu item and it doesn’t change to graffiti theme.What am I missing or doing wrong?
Thanks in advance for your help and looking forward to hearing the solution.
Paula</blockquote>
August 21, 2009 at 1:48 pm #314994Hi bennitos,
thanks for the reply.
mmmm… this was the reason why I bought the template, for this very feature. And I wanted this because the website will be used by kids of all ages and the different backgrounds makes the site feel more personalised. I’m gutted if this is the case. Not wanting to moan, but it is quite a misrepresentation of the template features.
Is there any way I can set up this feature? It’s so crucial. Or another way round it so the kids can still choose their favourite background? It must exist if it can be done in the demo.
Do let me know as I have my fingers crossed,
kind regards
Paula
bennitos Friendbennitos
- Join date:
- May 2008
- Posts:
- 1717
- Downloads:
- 0
- Uploads:
- 39
- Thanks:
- 39
- Thanked:
- 474 times in 407 posts
August 21, 2009 at 1:52 pm #314995I think there’s a module thas can do this it has been posted on this forum a couple times but i couldnt find it 1.2.3 will have a look for it later.
Its also possible to add those functions manually but im not sure if there would be concequenses for other parts of your site.
But there have been more people who have tried to do the same on here.
bennitos Friendbennitos
- Join date:
- May 2008
- Posts:
- 1717
- Downloads:
- 0
- Uploads:
- 39
- Thanks:
- 39
- Thanked:
- 474 times in 407 posts
August 21, 2009 at 1:58 pm #314997I also seen some users that just installed the same template a couple times but renamed it.
Set a different theme standard for everyone one of them.
Then used the template switcher (wich is standard in joomla) to make users select one of them.
August 21, 2009 at 2:17 pm #314998Hi Bennitos,
Thanks for offering to look in to this based on what other users have done. I think setting up multiple templates each with a different theme is not an option, as that sounds like we will need 6 mySQL databases instead of 1 (if we’re wanting 6 themes), and we only have 1. But if there is a way to set it up manually or using a kind of style switcher extension that would be brilliant. How does Joomlart do it? It looks so straight forward on the outside 🙂
Thanks again
Paula
bennitos Friendbennitos
- Join date:
- May 2008
- Posts:
- 1717
- Downloads:
- 0
- Uploads:
- 39
- Thanks:
- 39
- Thanked:
- 474 times in 407 posts
August 21, 2009 at 2:52 pm #315000no you wouldnt need 6 sql databases, you can just install like (or how much you want) 6 templates in one joomla installation. Its just like adding an article basicly all in the same db.
bennitos Friendbennitos
- Join date:
- May 2008
- Posts:
- 1717
- Downloads:
- 0
- Uploads:
- 39
- Thanks:
- 39
- Thanked:
- 474 times in 407 posts
August 21, 2009 at 3:16 pm #315002ok found it to use your menu put your site in demo mode and you will be able to use your menu to change the colours.
Open your configuration.php at the bottom you will see:
}
?>
add:
}
define ('_DEMO_MODE_', 1);
?>
IMPORTANT
If you do anything from your admin page that changes the configuration.php then this value will be gone again and you will have to add it again. So best you can add this when you are done making changes to your configuration.php
Now you can create menu’s like below depending on wich style’s you have.
Go to admin >> menus >> mainmenu –> create menu items with type is url with links below :
?ja_color=default
?ja_color=movie
?ja_color=xmas
?ja_color=grass
?ja_color=graffiti
?ja_color=gameAlternative
You can also add the functionality on the fly with any URL on your JA site.Simply append “&ja_color=(insert style as seen above)” to any url to change the color of the site.
EXAMPLE:
http://www.mysite.com/index.php?option=com_templates&client=0&ja_color=red
The site will begin using the red style and remain in that styling until it sees another ja_color call.This should do exactly what you want. Make sure you make backups first!
1 user says Thank You to bennitos for this useful post
August 21, 2009 at 4:24 pm #315011OMG
I love you.
🙂
Okay seriously bennitos, you have been brilliant – what you have come up with works, I’m very happy, and I thank you for being so quick and extremely helpful.
Thank you!!
bennitos Friendbennitos
- Join date:
- May 2008
- Posts:
- 1717
- Downloads:
- 0
- Uploads:
- 39
- Thanks:
- 39
- Thanked:
- 474 times in 407 posts
August 21, 2009 at 6:40 pm #315022Glad it worked out 🙂 just keep in mind the value will go away if you make changes and you should be good.
1 user says Thank You to bennitos for this useful post
-
AuthorPosts
This topic contains 10 replies, has 2 voices, and was last updated by bennitos 15 years, 3 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum