Gallery

From Alessandro's Wiki
Jump to: navigation, search

general

  • my first selection

http://codex.gallery2.org/Gallery3:Themes:monochrome

http://codex.gallery2.org/Gallery3:Themes:default_carbonized

http://codex.gallery2.org/Gallery3:Themes:dark_canvas_wide

+ git clone https://github.com/gallery/gallery3-contrib.git

Tricks

  • How to set/use Gallery in debug mode?

edit config.php and change:

$gallery->setDebug(false);

to

$gallery->setDebug('buffered');


  • sending mail through Gmail (activating ssl):

( from http://blog.bonetree.net/2008/10/configuring-gallery2-to-send-email-using-gmail/ )

change line 68 in <gallery directory>/lib/smtp/smtp.php looks like this:

list ($config['smtp.host'], $port) = array_merge(explode(':', $config['smtp.host']), array(25));

to

$url_info = parse_url($config['smtp.host']);
$config['smtp.host'] = '';
if( isset($url_info['scheme']) ) {
   $config['smtp.host'] = $url_info['scheme'].'://';
}
$config['smtp.host'] .= $url_info['host'];
$port = ( isset($url_info['port']) ) ? $url_info['port'] : 25;

gallery3

database

  • to force rebuilding af all resizes and thumbnails
UPDATE items
SET resize_dirty = 1, thumb_dirty = 1
WHERE type = "photo"

Bugs

  • puzzle plugin can generate thi error en brake the "Save Album" action.
Error (ERROR_BAD_PARAMETER) : Controller results are missing status, error, (redirect, delegate, return)