coppermine-gallery.com/forum

Support => Older/other versions => cpg1.1.X Support (standalone) => Topic started by: JeffOk on September 25, 2003, 08:59:32 PM

Title: Activating Themes
Post by: JeffOk on September 25, 2003, 08:59:32 PM
Hey group.  Coppermine newbie here.

I am trying to understand how I go about activating the various themes that are installed for coppermine.

I would really like to put something similar to what SurfDude has in effect here:

http://surfdude.student.utwente.nl/fotos/

How do I go about calling out the necessary code to get this working?
Title: Activating Themes
Post by: moorey on September 26, 2003, 08:18:41 AM
Have you looked at the menu.html source code?

Basically it's a frame with a drop down menu that let's you choose the index.php appended with the theme name, ie:

...
        <OPTION value=../index.php?theme=default~mainFrame>Default</OPTION>
        <OPTION value=../index.php?theme=fruity~mainFrame>Fruity</OPTION>
        <OPTION value=../index.php?theme=eyeball~mainFrame>Eyeball</OPTION>
...


Not much to do with CPG since it's already built-in ;)
Title: Activating Themes
Post by: Joachim Müller on September 26, 2003, 08:18:51 AM
this has been on the demo of the former coppermine site (which is down and probably all code lost): if's a framed site (with all the disadvantages a framed site has); we're working on an integration into coppermine itself (but it probably won't go into the next version).
The themes are controlled by adding a var "theme" to the url with the theme name, so if you want the demo on this site to apear with the theme "hardwired", you insert the var into the url like this: http://coppermine.sourceforge.net/demo/?theme=hardwired

Just edit your template and build in a theme selector for yourself. To give you an idea:
Title: Activating Themes
Post by: JeffOk on September 27, 2003, 05:09:27 AM
Thanks for the replies gentlemen.  Very helpful.  

Hopefully in the next few weeks we should have a nice sized photo album...

 :lol:
Title: Activating Themes
Post by: SurfDude on September 28, 2003, 11:00:33 PM
Quote from: "gaugau"this has been on the demo of the former coppermine site (which is down and probably all code lost): if's a framed site (with all the disadvantages a framed site has); we're working on an integration into coppermine itself (but it probably won't go into the next version).
The themes are controlled by adding a var "theme" to the url with the theme name, so if you want the demo on this site to apear with the theme "hardwired", you insert the var into the url like this: http://coppermine.sourceforge.net/demo/?theme=hardwired
I indeed copied most of it from the demo. After that I've edit some stuff and have add some things. The disadvantage is that when you want to link directly to a page in the gallery, you loose the frame. A good thing is that you can easilly add some buttons and other stuff that will allways stay in the window.
Title: Activating Themes
Post by: kegobeer on September 29, 2003, 01:04:06 AM
QuoteThe disadvantage is that when you want to link directly to a page in the gallery, you loose the frame.
Just add target="frame name" to the url, ie: <a href="whatever" target="frame name">
Title: Activating Themes
Post by: BoneFish on September 29, 2003, 08:51:18 AM
any reason why inserting the var into the url does not work for the themes

but it does work for the language ?
Title: Activating Themes
Post by: Joachim Müller on September 29, 2003, 09:18:54 AM
cpg 1.1.0 didn't come with the option to choose the theme by url - you'll have to use CPG 1.1.1 (or better, hehe) or apply the hack described in http://coppermine.sourceforge.net/faq.php?q=letUserSelectTheme#letUserSelectTheme

GauGau