G2-Sites.com is a showcase of Gallery 1 and Gallery 2 powered websites. Sites are categorized by embedded environment and language. If your site is powered by Gallery we want to see it!
if "show view counts" is turned off and gallery debugging is turned on then every thumbnail has below it an error like the following:
Notice: Undefined index: showViewCount in /home/content/foo/bar/html/gallery2/data.directory/smarty/templates_c/%%1132922061/%%53^530^53053313%%album.tpl.php on line 85
This seems to be caused by showViewCount not being set in this case. My attempt at a fix, as a handwritten diff, is as follows:
--- themes/nzdi/templates/album.tpl
+++ themes/nzdi/templates/album.tpl
@@ -110,6 +110,8 @@
{else}
{assign var="showViewCount" value=true}
{/if}
+ {else}
+ {assign var="showViewCount" value=false}
{/if}
{g->block type="core.ItemInfo"