RSGallery2 Support Forums
Welcome, Guest. Please login or register.

Login with username, password and session length
  Home    Forum    Help    Search    Login    Register  
*
News : November 20, 2008, 11:36:40 pm
+  RSGallery2 Support Forums
|-+  Developers corner
| |-+  Nightly Builds for RSGallery2 Legacy, J1.5 or J1.0 - Now Reopened! (Moderators: Daniel Tulp, Chef Groovy)
| | |-+  A problem with the thumbnail view in SVN 662
Advanced search
  « previous next »
Pages 1
Author
Topic: A problem with the thumbnail view in SVN 662  (Read 4946 times)
« on: March 30, 2007, 03:55:20 pm »
Siberiantiger Offline
Jr. Member
**
Posts: 56

View Profile

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?
« Last Edit: March 30, 2007, 04:07:16 pm by Siberiantiger » Logged
 
Reply #1
« on: March 30, 2007, 09:18:45 pm »
Jonah Offline
Administrator
Hero Member
*****
Posts: 1411

View Profile

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?
Logged

Due to time constraints, I have taken a step back from RSGallery2.  In the event of an emergency, you will need to PM me.
 
Reply #2
« on: April 11, 2007, 02:50:41 am »
osva Offline
Newbie
*
Posts: 14

View Profile Email

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..
Logged
 
Reply #3
« on: April 11, 2007, 09:16:28 am »
Margo Offline
Jr. Member
**
Posts: 51

View Profile WWW Email

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.
Logged

 
Reply #4
« on: April 12, 2007, 01:44:41 pm »
Jonah Offline
Administrator
Hero Member
*****
Posts: 1411

View Profile

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.
Logged

Due to time constraints, I have taken a step back from RSGallery2.  In the event of an emergency, you will need to PM me.
 
Reply #5
« on: April 12, 2007, 11:21:46 pm »
Margo Offline
Jr. Member
**
Posts: 51

View Profile WWW Email

Glad to be of help Cheesy
Logged

 
Print  Pages 1
« previous next »
Jump to: