News:

CPG Release 1.6.29
During HTML5 upload, keep pseudo blank code 200 messages from triggering error condition
added Russian language
correct failure to use theme menu icons in album manager
minor vulnerabilities mitigation

Main Menu

Activating Themes

Started by JeffOk, September 25, 2003, 08:59:32 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JeffOk

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?

moorey

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 ;)

Joachim Müller

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:

JeffOk

Thanks for the replies gentlemen.  Very helpful.  

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

 :lol:

SurfDude

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.
Frans AKA SurfDude || My Gallery

kegobeer

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">
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

BoneFish

any reason why inserting the var into the url does not work for the themes

but it does work for the language ?

Joachim Müller

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