Theme Config File Theme Config File
 

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

Theme Config File

Started by Gizmo, September 15, 2006, 12:58:23 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Gizmo

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!
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

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.

Gizmo

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!
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