Please login or register.
Login with username, password and session length
May 25, 2013, 08:47:24 AM
News: We're back! And here to stay!
collapse

* User Info

 
 
Welcome, Guest. Please login or register.
Did you miss your activation email?

* Recent Posts

you must provide a description by kasix
[Yesterday at 11:48:59 PM]


Fatal error: by mailtobala04
[May 17, 2013, 04:36:20 PM]


Backend Items (Images) don't work by bauchinj
[May 15, 2013, 04:18:55 PM]


Permissions issue: a user can upload images in other user galleries by guidocx84
[May 11, 2013, 05:17:44 PM]


Payment after loggin by mirjam
[May 11, 2013, 03:02:56 PM]


image titles without dashes by mirjam
[May 11, 2013, 02:57:48 PM]


Batch Upload Fails by mirjam
[May 11, 2013, 02:52:08 PM]


Slow Gallery with many Photos by mirjam
[May 11, 2013, 02:49:36 PM]

Advertisement


Pages: [1]   Go Down

Author Topic: Start, Next, Prev, End button not working  (Read 226 times)

Offline hedkandi1

  • Newbie
  • *
  • Posts: 16

Start, Next, Prev, End button not working
« on: July 20, 2012, 04:43:53 PM »
For a huge website i added RSGallery2.

All you devellopers, thanks for creating this.

I have gallerys woth over 300 pictures but have problems with the start, next, prev and end button.
If i am on picture one and push the next button the page landed on page number 274 of 275 pictures insetad of page number 2.

Could you tell me how to change this problem.

Thanks

Offline mirjam

  • Dev Team
  • Hero Member
  • *****
  • Posts: 558

Re: Start, Next, Prev, End button not working
« Reply #1 on: July 21, 2012, 11:29:41 AM »
I'm assuming you're using RSGallery2 3.1.0 on Joomla 2.5.6 (if not, please update).
What is the rest of your System Information? (Backend > Site > System Information > System Information)

Are you using Joomla SEF? Or any third party SEF component?
What is your "Advanced SEF" setting? (Backend > Components > RSGallery2 > Control Panel > Configuration > tab: General)

There is a bug when the item pagination is incorrect when there are unpublished items in a gallery (will be fixed in next release), do you have many unpublished items in the gallery where you experience this problem?
Suddenly on maternity leave: our baby boy was born a few weeks early, he's doing well now.
For the next couple of weeks I won't available, for true emergences pm locutusweb please.

I hope that RSGallery2 users will help each other out in the mean time.

Offline hedkandi1

  • Newbie
  • *
  • Posts: 16

Re: Start, Next, Prev, End button not working
« Reply #2 on: July 21, 2012, 04:03:08 PM »
I turned of SEF in (Backend > Components > RSGallery2 > Control Panel > Configuration > tab: General) and the problem is solved.

Waiting for your next release to turn on SEF.

Thanks Mirjam

Offline mirjam

  • Dev Team
  • Hero Member
  • *****
  • Posts: 558

Re: Start, Next, Prev, End button not working
« Reply #3 on: July 24, 2012, 12:45:53 PM »
You can try this (I've picked one change from a number of committed changes from a while ago, I hope (and think) I have the correct one for you): find the file /JOOMLAROOT/components/com_rsgallery2/router.php and find lines 434-436:
Code: [Select]
$query = 'SELECT id FROM #__rsgallery2_files'
.' WHERE `gallery_id`='. (int) $gid
.' ORDER BY `ordering`';
where the second line needs to be changed:
Code: [Select]
$query = 'SELECT id FROM #__rsgallery2_files'
.' WHERE `gallery_id`='. (int) $gid .' AND `published` = 1' //published items!
.' ORDER BY `ordering`';

If this doesn't work, I'll take a better look :-)
Suddenly on maternity leave: our baby boy was born a few weeks early, he's doing well now.
For the next couple of weeks I won't available, for true emergences pm locutusweb please.

I hope that RSGallery2 users will help each other out in the mean time.
Pages: [1]   Go Up
 

anything