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: changing theme across pages (displayimage)  (Read 4706 times)

0 Members and 1 Guest are viewing this topic.

alessandro

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
changing theme across pages (displayimage)
« on: November 26, 2004, 04:32:27 pm »

Hi everyone,

I've seen instructions on switching templates by user or album (by modding init.inc.php).

My question is: may I load a different theme just for displayimage.php?
I'd like to change the graphics on the display page, loading a different stylesheet AND a different template.html.

If this has been covered, I beg your pardon. Searched a lot...


Cheers
Alessandro
« Last Edit: November 26, 2004, 05:35:55 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: changing theme across pages (displayimage)
« Reply #1 on: November 26, 2004, 04:40:35 pm »

I suppose you could mod init.inc.php and put a check in to see what page is being loaded and set the theme appropriately.

Placing

Code: [Select]
if (defined('DISPLAYIMAGE_PHP')) $CONFIG['theme'] = 'eyeball';
just prior to

Code: [Select]
// Load theme file
should do the trick.
« Last Edit: November 26, 2004, 04:47:01 pm by Nibbler »
Logged

alessandro

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: changing theme across pages (displayimage)
« Reply #2 on: November 26, 2004, 04:52:41 pm »

I suppose you could mod init.inc.php and put a check in to see what page is being loaded and set the theme appropriately.
You are too fast!  :)
But I feared such an answer... cause I don't know how to do it.
Just hoping that a helpful member thinks this could be a ...ahem... useful feature for many people.

Thanks

Alessandro

edit: you added it! Very kind!!! ;D
Logged

alessandro

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Sorted: changing theme across pages (displayimage)
« Reply #3 on: November 26, 2004, 05:13:27 pm »

edit: you added it! Very kind!!! ;D

AND IT WORKS!  ;D ;D ;D
(pardon my enthusiasm, but I'm a graphic designer, completely lost in php)

Many thanks!
Alessandro

p.s.
I think this is really a useful feature. I've read topics about removing the entire pageheader and such, to have a clean displayimage.
This way, I can have it exactly the way I want, without losing any functionality of the gallery (read: remove or move menus in the display page only).
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 15 queries.