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: Theme Config File  (Read 2491 times)

0 Members and 1 Guest are viewing this topic.

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Theme Config File
« on: September 15, 2006, 12:58:23 pm »

Me being more theme oriented, is it possible to have a config file located in a theme folder that could override the theme related parameters set in the admin config settings? This way, a theme could be designed for a unique layout without the user having to change the setting in their configuration. As we've seen in some of the more narrower themes such as OrangeSky, Connections, Red Train and etc., having 5 thumbnails in the filmstrip or 5 or more thumbnails in the album display or "Show first level album thumbnails in categories" can either break these themes or distract from the designers layout intention. The groups of parameters in the admin config are Language & Charset settings, Themes settings, Album list view, Thumbnail view, Image view and obviously not all of the parameters in these groups would be accessible in this config file but only the ones needed to effect change in the theme.

Also in order to prevent confusion to a user when trying to make changes to a theme that uses one of these config files in the admin config , maybe a warning message to say that this theme uses a custom config file.

Cheers!
Logged
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

Nibbler

  • Guest
Re: Theme Config File
« Reply #1 on: September 15, 2006, 01:07:13 pm »

You can already do this with the current theme system, override the default settings in $CONFIG with your own and display a message to the admin if you changed any of them. It's an interesting idea though.
Logged

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: Theme Config File
« Reply #2 on: September 15, 2006, 02:06:33 pm »

True but I prefer not to change too much of the core theme.php code in a standard theme contribution. It makes it harder to debug and modify which I'm sure will increase the number of theme questions from users. Then there's the issue of understanding what $CONFIG variables to change (and I'm not a strong code person myself....) so getting good designers to take on the challenge of producing more and/or better themes will be difficult.

Thanks for consideration!
Logged
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 19 queries.