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?
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 ;)
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:
- default (http://coppermine.sourceforge.net/demo/?theme=default)
- Hardwired (http://coppermine.sourceforge.net/demo/?theme=hardwired)
- Max OS X (http://coppermine.sourceforge.net/demo/?theme=mac_ox_x)
- Rainy Day (http://coppermine.sourceforge.net/demo/?theme=rainy_day)
- Project VII (http://coppermine.sourceforge.net/demo/?theme=project_vii)
- Igames (http://coppermine.sourceforge.net/demo/?theme=igames)
- Fruity (http://coppermine.sourceforge.net/demo/?theme=fruity)[/list:u]GauGau
Thanks for the replies gentlemen. Very helpful.
Hopefully in the next few weeks we should have a nice sized photo album...
:lol:
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.
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">
any reason why inserting the var into the url does not work for the themes
but it does work for the language ?
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