|
Title: A problem with the thumbnail view in SVN 662 Post by: Siberiantiger on March 30, 2007, 03:55:20 pm Hi!
I am not sure this is related to the SVN, but since SVN is what i use, i report this bug here. I have a gallery with sub galleries in it. When i click on the thumbnails in one of these subgalleries, the wrong picture shows up. Lets say i got 6 pictures in a album and named them with numbers from 1 - 6. When i click on the thumbnail with filename 1, i actually get to see picture 6 instead. the thumbnail it self shows the correct image.. but when clicking on it i get the wrong one.. This happens for every album i have created so far (test gallery) How can i fix this problem? By the way, there is a // down to the left when viewing pictures. should these be there? Title: Re: A problem with the thumbnail view in SVN 662 Post by: Jonah on March 30, 2007, 09:18:45 pm this should be fixed in the latest svn.
By the way, there is a // down to the left when viewing pictures. should these be there? is it still there? Title: Re: A problem with the thumbnail view in SVN 662 Post by: osva on April 11, 2007, 02:50:41 am After I upgraded to the latest svn there is this problem when clicking thumbnails dont appear the correct photo.
If I click the first I get the last If I click the second I get the second last.. I think the problem is ordering.. Title: Re: A problem with the thumbnail view in SVN 662 Post by: Margo on April 11, 2007, 09:16:28 am Found that ordering was set to DESC in display.class.php in the tables template. changed to this
Code: if ($picsThisPage) { $database->setQuery("SELECT * FROM #__rsgallery2_files". " WHERE gallery_id='$gid'". " AND published ='1'". " ORDER BY ordering ASC". " LIMIT $limitstart, $PageSize"); and the thumbnails now link to the correct picture. Title: Re: A problem with the thumbnail view in SVN 662 Post by: Jonah on April 12, 2007, 01:44:41 pm lol! good eye Margo.
when the templating system is finished there shouldn't be any sql statements in there at all. in the mean time i have applied your fix so it should be correctly ordered. Title: Re: A problem with the thumbnail view in SVN 662 Post by: Margo on April 12, 2007, 11:21:46 pm Glad to be of help :D
|