https://www.icyphoenix.com/viewtopic.php?f=36&t=6008
-----------------------------------
OwnageWorld
Mon 22 Jun, 2009 14:24

1 Theme, Multiple Styles
-----------------------------------
[b]I will tell you a bit what I want, and hope I make my point clear!
I would like to use one template, namely prosilver_ip.
But I would like to have multiple styles for this one: How can I create this the easy way?[/b]

I tried the following: 
1. I installed theme prosilver_ip, deleted all other templates. This worked.
2. I use the following style: style_blue and changed whatever I wanted to change. It uses the image submap (in template file) 
3. I would like to add the 3 styles: style_blue1, style_blue2 and style_blue3. The only thing that would be different is the *.css file. 
Step 3 did not work for me. I tried to copy the css files and renaming them, I tried cloning the original style_blue style. All did not work. They do show up and you can choose them, but they do not use the correct style_blue1.css file I set up, but instead they use the original.

What did I do wrong? Thanks in advance!


-----------------------------------
DWho
Mon 22 Jun, 2009 21:12

Re: 1 Theme, Multiple Styles
-----------------------------------
ok I will try and explain this and hopefully you will understand what I mean... :lol: 

in you prosilver folder you have a file called theme_info.cfg open this file and you should see something similar to this..

[code linenumbers=false]

$styles_array = array(
	'blue' => array('template_name' => 'prosilver_ip', 'style_name' => 'proSilver IP Blue')
);
[/code]

to make more themes using the same template.... add to this as follows

[code linenumbers=false]

$styles_array = array(
	'blue' => array('template_name' => 'prosilver_ip', 'style_name' => 'proSilver IP Blue'),
	'green' => array('template_name' => 'prosilver_ip', 'style_name' => 'proSilver IP Green'),
	'red' => array('template_name' => 'prosilver_ip', 'style_name' => 'proSilver IP red'),
	'yellow' => array('template_name' => 'prosilver_ip', 'style_name' => 'proSilver IP yellow')
);
[/code]

Obviously change the names to the names of your themes...

then you need to make a css file for all the themes...

for example  

[list][*]style_blue.css[*]style_green.css[*]style_red.css[*]style_yellow.css[/list]

and finally you need to make the image folders...

open images in your template ... blue should already be there...

make new folders called green, red, yellow....

now go to acp install templates and your new templates should be there once installed you can then change anything you need to on each one.... as the files are all the same...

I hope that helps... I know it is different to what you asked but I thought I would give you the way I know as that's the only way I know lol

if you need more info please let me know..

 :mrgreen:  :mrgreen:


-----------------------------------
OwnageWorld
Mon 22 Jun, 2009 22:38

Re: 1 Theme, Multiple Styles
-----------------------------------
[quote user="DWho" post="40678"]ok I will try and explain this and hopefully you will understand what I mean... :lol: 

in you prosilver folder you have a file called theme_info.cfg open this file and you should see something similar to this..

[code linenumbers=false]

$styles_array = array(
	'blue' => array('template_name' => 'prosilver_ip', 'style_name' => 'proSilver IP Blue')
);
[/code]

to make more themes using the same template.... add to this as follows

[code linenumbers=false]

$styles_array = array(
	'blue' => array('template_name' => 'prosilver_ip', 'style_name' => 'proSilver IP Blue'),
	'green' => array('template_name' => 'prosilver_ip', 'style_name' => 'proSilver IP Green'),
	'red' => array('template_name' => 'prosilver_ip', 'style_name' => 'proSilver IP red'),
	'yellow' => array('template_name' => 'prosilver_ip', 'style_name' => 'proSilver IP yellow')
);
[/code]

Obviously change the names to the names of your themes...

then you need to make a css file for all the themes...

for example  

[list][*]style_blue.css[*]style_green.css[*]style_red.css[*]style_yellow.css[/list]

and finally you need to make the image folders...

open images in your template ... blue should already be there...

make new folders called green, red, yellow....

now go to acp install templates and your new templates should be there once installed you can then change anything you need to on each one.... as the files are all the same...

I hope that helps... I know it is different to what you asked but I thought I would give you the way I know as that's the only way I know lol

if you need more info please let me know..

 :mrgreen:  :mrgreen:[/quote]
Well... it seems I got it working! I could not find this (very clear!) explanation on this forum, so thanks for that!
This might help several other IP members too.

Is it also possible all styles use the same images? As for my website, I only need 1 folder with images (f.e. "blue). Maybe I will change them per style, but that is too much work for now haha!

Thanks again DWho!


-----------------------------------
DWho
Mon 22 Jun, 2009 23:09

Re: 1 Theme, Multiple Styles
-----------------------------------
No problem I hoped I explained it ok...

I have not tried using the same image folder but might have a play a around to see if it can be done...

 :mrgreen:  :mrgreen:


-----------------------------------
Mighty Gorgon
Wed 08 Jul, 2009 11:57

Re: 1 Theme, Multiple Styles
-----------------------------------
Mike, can you duplicate these instructions (maybe with some small adjustments if needed) into the Docs section?

I think other users could benefit.

Thanks!


-----------------------------------
DWho
Wed 08 Jul, 2009 14:20

Re: 1 Theme, Multiple Styles
-----------------------------------
[quote user="Mighty Gorgon" post="41058"]Mike, can you duplicate these instructions (maybe with some small adjustments if needed) into the Docs section?

I think other users could benefit.

Thanks![/quote]

No problem will sort it out sometime this week...

 :mrgreen:  :mrgreen:


