Hi Simon,
I made a directory in my Theme dir called "nggallery"
within this dir I made a file called "gallery-trouwshoot.php"
NG GAllery will check the theme dir if it finds a NGGALLERY dir and uses the templates from there. This way you will be able to update NG without removing the template files.
This is my code of the template:
<?php
/**
Template Page for the gallery overview
Follow variables are useable :
$gallery : Contain all about the gallery
$images : Contain all images, path, title
$pagination : Contain the pagination content
You can check the content when you insert the tag <?php var_dump($variable) ?>
If you would like to show the timestamp of the image ,you can use <?php echo $exif['created_timestamp'] ?>
**/
?>
<?php if (!defined ('ABSPATH')) die ('No direct access allowed'); ?><?php if (!empty ($gallery)) : ?>
<?php if ($prev) : ?>
<a class="prev" href="<?php echo $prev ?>"><<<</a>
<?php endif; ?>
<?php $nggpage = get_query_var('nggpage');
if (!empty($nggpage)) {
$ngg_options = nggGallery::get_option('ngg_options');
$img_counter = ($nggpage - 1) * (int) $ngg_options['galImages'];
} else {
$img_counter = 0;
}
foreach ( $images as $image ) : ++$img_counter; ?>
<a href="javascript:void(0)"><?php echo $img_counter; ?><img title="<?php echo $image->meta_data['keywords'] ?>" alt="<?php echo $image->alttext ?>,<?php echo $image->description ?>" src="<?php echo $image->url ?>" /></a>
<?php if ( $image->hidden ) continue; ?>
<?php $imgCounter++;?>
<?php endforeach; ?>
<?php if ($next) : ?>
<a class="next" href="<?php echo $next ?>">>>></a>
<?php endif; ?>
</div>
<?php endif; ?>
But over here I have problems again :( it's not working anymore.
Also the second page won't appear. So my first 20 files will appear and the next page button does work, but goes back to the first page.