Horisontal og vertikal centrering

WordPress plugin: NextGen gallery style (css) fra linje 116

.ngg-galleryoverview { overflow: hidden; padding: 4px; width: 100%; border-top: 2px solid #bfdbe2; clear: both; display: block !important;}
.ngg-gallery-thumbnail-box { float: left; width: 124px; height: 124px; margin: 5px;}
.ngg-gallery-thumbnail { width: 124px; height: 124px; display: table-cell; vertical-align: middle; border: 2px solid #cdcdcd; background-color: #efefef;}
a:hover .ngg-gallery-thumbnail { border: 2px solid #dedede; background-color: #ababab;}
.ngg-gallery-thumbnail img { display: block; margin-left: auto; margin-right: auto; padding: 2px; position: relative;}
.ngg-clear { clear: both;}

gallery.php

<!-- Thumbnails --> <?php foreach ( $images as $image ) : ?> <div id="ngg-image-<?php echo $image->pid ?>" class="ngg-gallery-thumbnail-box" <?php echo $image->style ?> > <a href="<?php echo $image->imageURL ?>" title="<?php echo $image->description ?>" <?php echo $image->thumbcode ?> > <div class="ngg-gallery-thumbnail" > <?php if ( !$image->hidden ) { ?> <img title="<?php echo $image->alttext ?>" alt="<?php echo $image->alttext ?>" src="<?php echo $image->thumbnailURL ?>" <?php echo $image->size ?> /> <?php } ?> </div> </a> </div>

Album rækkefølge efter titel

Linie 324 (lib/ngg-db.php).

Ændre fra:

$album->sortorder  =  serialize( $wpdb->get_col("SELECT gid FROM $wpdb->nggallery") );

til:

$album->sortorder  =  serialize( $wpdb->get_col("SELECT gid FROM $wpdb->nggallery ORDER BY name ASC") );

Husk at albums nu sorteres efter alfanumerisk i feltet titel.

Album rækkefølge efter beskrivelse

I version 1.6.2 ændre du den rækkefølge som albums vises i i linie 324 (lib/ngg-db.php).

Ændre fra:

$album->sortorder  =  serialize( $wpdb->get_col("SELECT gid FROM $wpdb->nggallery") );

til:

$album->sortorder  =  serialize( $wpdb->get_col("SELECT gid FROM $wpdb->nggallery ORDER BY gid DESC") );

Husk at albums nu sorteres efter alfanumerisk i feltet beskrivelse.

NextGEN Gallery: unable to update thumbnail

You get the “Error updating thumbnail” when you crop and NextGEN Gallery tries to save the thumbnail.

The solution is to set your permission to write (/over write) on file level.

If you are using DreamWeaver:
1) Connect via ftp to your site
2) On your server navigation down to your thumbnails (default in wp-content/gallery/galleryname/thumbs)
3) Select all your thumbnails
4) Right click and select Set Permissions…
5) Set values to 666

File Access Properties in Adobe Dreamweaver