changing theme across pages (displayimage) changing theme across pages (displayimage)
 

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

Main Menu

changing theme across pages (displayimage)

Started by alessandro, November 26, 2004, 04:32:27 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

alessandro

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

Nibbler

#1
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

if (defined('DISPLAYIMAGE_PHP')) $CONFIG['theme'] = 'eyeball';

just prior to

// Load theme file

should do the trick.

alessandro

Quote from: Nibbler 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.
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

alessandro

Quote from: alessandro on November 26, 2004, 04:52:41 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).