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

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

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