Change the header when I change css-file. Change the header when I change css-file.
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Change the header when I change css-file.

Started by hadj, March 06, 2006, 02:23:05 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

hadj

I made it possible for the user to change css-file in my gallery. But how can I make the header change to?

Tranz

Not sure what you mean. Post a link and point out examples.

hadj

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.

Tranz

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.

hadj

OK. thank you  :). But is there any way to set cookies or something, so the users automaticly uses the page they used last time?

Nibbler

That would be handled automagically by the theme system.

hadj

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.

Nibbler

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>

hadj

Oh. Thank you so much. Exactly what I wanted. Solved! :)