coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: hadj on March 06, 2006, 02:23:05 AM

Title: Change the header when I change css-file.
Post by: hadj on March 06, 2006, 02:23:05 AM
I made it possible for the user to change css-file in my gallery. But how can I make the header change to?
Title: Re: Change the header when I change css-file.
Post by: Tranz on March 06, 2006, 08:31:04 AM
Not sure what you mean. Post a link and point out examples.
Title: Re: Change the header when I change css-file.
Post by: hadj on March 06, 2006, 01:13:39 PM
http://www.folket.de/cpg144/index.php this is my gallery. On the top right you can see the writing "fargetema: Grønn Rosa". If you press the link "Rosa" , the page turn pink. But the header remains the same. I got i pink header to, but how does i make it change with the rest? Thank you for your help.
Title: Re: Change the header when I change css-file.
Post by: Tranz on March 06, 2006, 05:00:15 PM
OK, I see. Instead of switching css files, I would suggest having two themes that have different css files and a different header file. You can then change the links to http://www.folket.de/cpg144/?theme=green to see the green version.
Title: Re: Change the header when I change css-file.
Post by: hadj on March 06, 2006, 07:48:49 PM
OK. thank you  :). But is there any way to set cookies or something, so the users automaticly uses the page they used last time?
Title: Re: Change the header when I change css-file.
Post by: Nibbler on March 06, 2006, 07:49:33 PM
That would be handled automagically by the theme system.
Title: Re: Change the header when I change css-file.
Post by: hadj on March 06, 2006, 08:05:09 PM
It doesnt happend automaticly to me. If I use the pink theme, close the browser, open the browser and go to the gallery again, it uses the green theme.
Title: Re: Change the header when I change css-file.
Post by: Nibbler on March 06, 2006, 08:08:36 PM
You are changing the domain name with the links.


<a href="http://folket.de/cpg144/?theme=classic">Grønn</a>
<a href="http://folket.de/cpg144/?theme=rosa">Rosa</a>


use


<a href="index.php?theme=classic">Grønn</a>
<a href="index.php?theme=rosa">Rosa</a>
Title: Re: Change the header when I change css-file.
Post by: hadj on March 06, 2006, 08:17:09 PM
Oh. Thank you so much. Exactly what I wanted. Solved! :)