PDA

View Full Version : Random Appearance/Disappearance of Thumbnails


Digital Jedi
01-14-2008, 05:48 PM
A few months ago I asked about getting Photoplog thumbs to not show thumbs from a certain category. http://www.photoplog.com/forum/showthread.php?t=1538

The final solution worked fine for me, but when I upgraded today and made the edit to the settings.php file, something strange happened.

If you take a look at the page (http://www.cogonline.net/photoplog/index.php), you may see thumbs, you may not. Each time I refresh the page, or re-click the gallery link, it's random. Sometimes the thumbs show, sometimes they don't show at all. Any reason why that would happen?

Morgan
01-14-2008, 07:17 PM
This was by design to prevent the selection of all rows from the table, i.e., a way to optimize an ORDER BY RAND() query without grabbing all the rows. The downside, especially for small galleries, is that sometimes no random thumbnails show. As you currently have a small gallery, remove the following from the query in the PhotoPlog Forum Home Thumbs plugin, but as the gallery gets bigger, you should put it back:
Content visible to registered users only.

Digital Jedi
01-14-2008, 08:46 PM
Alrighty, thank you. So I could safely comment this line out until the Gallery grows a little larger?

Morgan
01-15-2008, 08:33 PM
Yep, you can remove that line, but bigger galleries should keep that line.