Overriding functions.inc.php in theme.php Overriding functions.inc.php in theme.php
 

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]

Main Menu

Overriding functions.inc.php in theme.php

Started by Gizmo, September 30, 2006, 08:11:37 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Gizmo

OK... I'm at the end of my coding abilities so I'm seeking professional help. I'd like to force the number of thumbnail columns and rows for a theme that I'm creating to be what's best for the theme. This will likely not correspond to what users may have set in their configurations so I was hoping there was a way I could set them in theme.php (or some other file with the theme folder). So for example a user has set in their configuration #rows for thumbnails=4 and #columns for thumbnails=6 but I want to force them to be 3 & 3 for my theme. Is this possible?

Thanks,

Gizmo
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

Just add what you want to override in your theme.php.


$CONFIG['thumbcols'] = 3;
$CONFIG['thumbrows'] = 3;

Gizmo

Of course it's that easy, what the hell was I thinking???

Thanks Nibbler
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