PDA

View Full Version : Last days pictures don't display


marit
December 6th, 2005, 12:50 PM
I'm not sure how long this may have been an issue, but in my gallery, when you click on Last day's pictures, all the ones uploaded into the member galleries doesn't show up when you click on the thumbnails. All the ones uploaded into a specific category (i.e baby, Christmas etc as I run a scrapbook site) come up fine, but the ones uploaded directly into the member galleries just show up as a blank page when you click on the thumbnail.

Here is my gallery:
http://scrapbookexpress.no/galleri/index.php

Here is an example going through Last day's pictures:
http://scrapbookexpress.no/galleri/showphoto.php?photo=12116&sort=1&cat=last1&page=1

Here is the link going through the newest pics on the index page:
http://scrapbookexpress.no/galleri/showphoto.php?photo=12116

The ones uploaded into a category displays just fine in Last day's pictures, so is it because the member galleries isn't a specific category it's doing this?

TIA!

~Marit

Chuck S
December 6th, 2005, 02:24 PM
well if you upgraded it would be solved but if I remember my bugs from a year ago view your searchbox.tmpl and make the change in bold


<?php

echo<<<PPPRINT
<!-- BEGIN TEMPLATE: searchbox.tmpl -->
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="right" class="{$Style['menubarnb']}"><span class="{$Style['small']}">
{$Globals['pp_lang']['search']} <input type="text" name="si" style="font-size: 8pt;" size="15" value="$htmlsi" />
<input type="image" align="bottom" src="{$Globals['idir']}/go.gif" /></span>
</td>
</tr>
PPPRINT;

if ( $cat != 500 ) {
echo<<<PPPRINT
<tr>
<td colspan="6" align="right" class="{$Style['menubarnb']}">
<span class="{$Style['small']}">{$Globals['pp_lang']['recent']} <a href="{$Globals['maindir']}/showgallery.php?limit=last1&amp;cat=$cat">{$Globals['pp_lang']['lastday']}</a>
&nbsp;<a href="{$Globals['maindir']}/showgallery.php?limit=last7&amp;cat=$cat">{$Globals['pp_lang']['last7']}</a>
&nbsp;<a href="{$Globals['maindir']}/showgallery.php?limit=last14&amp;cat=$cat">{$Globals['pp_lang']['last14']}</a>
&nbsp;<a href="{$Globals['maindir']}/showgallery.php?limit=all&amp;cat=$cat">{$Globals['pp_lang']['allimages']}</a>
<input type="hidden" name="limit" value="$limit" /></span>
</td>
</tr>
PPPRINT;
}

echo<<<PPPRINT
</table>
<!-- END TEMPLATE: searchbox.tmpl -->
PPPRINT;

?>

marit
December 6th, 2005, 04:13 PM
Thank you! After I uploaded the changed file, every single image that has been posted in the gallery came up in the Last day's images and Last 7 days images (I didn't try the 14 day one), so I changed it back.

I think I need to upgrade... can you please tell me how I can do that? I'm on a new computer since I downloaded and installed the software on my website, so I don't have the documentation easily at hand.

Thanks again! :D

Chuck S
December 6th, 2005, 04:57 PM
well I posted a new searchbox template the one we use now you can try that one

To upgrade the instructions are included in the download. Basically you upload every file except the config file and run upgrade.php and select every upgrade from your version forward. Do not run any step more than once.