coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: Gizmo on September 30, 2006, 08:11:37 PM

Title: Overriding functions.inc.php in theme.php
Post by: Gizmo on September 30, 2006, 08:11:37 PM
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
Title: Re: Overriding functions.inc.php in theme.php
Post by: Nibbler on September 30, 2006, 08:17:06 PM
Just add what you want to override in your theme.php.


$CONFIG['thumbcols'] = 3;
$CONFIG['thumbrows'] = 3;
Title: Re: Overriding functions.inc.php in theme.php
Post by: Gizmo on September 30, 2006, 09:26:15 PM
Of course it's that easy, what the hell was I thinking???

Thanks Nibbler