default columns and rows for custom theme

merwetta

Joined: 2008-10-28
Posts: 1
Posted: Tue, 2008-10-28 19:43

I created a custom theme, and my theme.inc file has StandardSettings like this:

$this->setStandardSettings(
array('rows' => 20, 'columns' => 1,
'showImageOwner' => 0, 'showAlbumOwner' => 0,
'albumFrame' => '', 'itemFrame' => '', 'photoFrame' => '',
'colorpack' => '', 'showMicroThumbs' => 0, 'dynamicLinks' => 'browse',
'sidebarBlocks' => serialize(array(
array('search.SearchBlock', array('showAdvancedLink' => true)),
array('core.ItemLinks', array('useDropdown' => false)),
array('core.PeerList', array()),
array('imageblock.ImageBlock', array()))),
'albumBlocks' => serialize(array(
array('comment.ViewComments', array()))),
'photoBlocks' => serialize(array(
array('exif.ExifInfo', array()),
array('comment.ViewComments', array())))));
}

It is not the default theme, if that matters. When I create a new album at the top level of the gallery, then go to the theme tab and change the theme to my custom theme, it shows the global settings for the theme are 3 rows and 3 columns instead of the 20 rows and 1 column set in the StandardSettings.

I can't figure out why my StandardSettings are being ignored. I already tried deleting the template cache. Any advice?


Gallery version = 2.2.5 core 1.2.0.7
PHP version = 4.3.11 apache2handler
Webserver = Apache/2.0.51 (Fedora)
Database = mysqlt 4.0.18-standard, lock.system=flock
Toolkits = ArchiveUpload, LinkItemToolkit, NetPBM, Gd, Thumbnail
Acceleration = none, none
Operating system = Linux web1.greatbasin.net 2.4.22-1.2199.8.legacy.nptlsmp #1 SMP Fri Mar 3 22:19:01 EST 2006 i686
Locale = en_US
Browser = Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_5_5; en-us) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.2 Safari/525.20.1