Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Change the header when I change css-file.  (Read 4621 times)

0 Members and 1 Guest are viewing this topic.

hadj

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Change the header when I change css-file.
« 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?
« Last Edit: March 06, 2006, 08:17:45 pm by Nibbler »
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Change the header when I change css-file.
« Reply #1 on: March 06, 2006, 08:31:04 am »

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

hadj

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Change the header when I change css-file.
« Reply #2 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.
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Change the header when I change css-file.
« Reply #3 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.
Logged

hadj

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Change the header when I change css-file.
« Reply #4 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?
Logged

Nibbler

  • Guest
Re: Change the header when I change css-file.
« Reply #5 on: March 06, 2006, 07:49:33 pm »

That would be handled automagically by the theme system.
Logged

hadj

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Change the header when I change css-file.
« Reply #6 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.
Logged

Nibbler

  • Guest
Re: Change the header when I change css-file.
« Reply #7 on: March 06, 2006, 08:08:36 pm »

You are changing the domain name with the links.

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

use

Code: [Select]
<a href="index.php?theme=classic">Grønn</a>
<a href="index.php?theme=rosa">Rosa</a>
Logged

hadj

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Change the header when I change css-file.
« Reply #8 on: March 06, 2006, 08:17:09 pm »

Oh. Thank you so much. Exactly what I wanted. Solved! :)
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 16 queries.