Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Activating Themes  (Read 7257 times)

0 Members and 1 Guest are viewing this topic.

JeffOk

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Activating Themes
« 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?
Logged

moorey

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 404
Activating Themes
« Reply #1 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:

Code: [Select]
...
        <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 ;)
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Activating Themes
« Reply #2 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:
Logged

JeffOk

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Activating Themes
« Reply #3 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:
Logged

SurfDude

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25
    • http://surfdude.student.utwent.nl
Activating Themes
« Reply #4 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.
Logged
Frans AKA SurfDude || My Gallery

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Activating Themes
« Reply #5 on: September 29, 2003, 01:04:06 am »

Quote
The 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">
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Activating Themes
« Reply #6 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 ?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Activating Themes
« Reply #7 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
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 18 queries.