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

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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