Phoca Guestbook 3.0.2 pagination doesn't work

Phoca Guestbook - creating guestbooks in Joomla! CMS
mmh
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 03 Oct 2014, 12:19

Phoca Guestbook 3.0.2 pagination doesn't work

Post by mmh »

Hello,
I use Phoca Guestbook 3.0.2 on Joomla 3.3.3.
I created menu item "guestbook" and in that page I can view pagination but it doesn't work: when I click on page number, it only add "limitstart=[number]" to page url and refresh the same page.
See this screenshot: http://www.mmhermes.net/sharing/pagination.png
As you can see page 3 has a link in this format: [...]index.php?option=com_phocaguestbook&view=guestbook&cid=118&Itemid=151&limitstart=10
I think it would be [...]index.php?option=com_phocaguestbook&view=guestbook&cid=118&Itemid=151&limit=5&start=10
I tested it and in this way it works, but I don't know where to edit it.
Can you help me?

More info:
in other components, with same url format, pagination works correctly.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Guestbook 3.0.2 pagination doesn't work

Post by Jan »

Hi, I see, the problem is that the pagination is made by Joomla! there :idea:

But if I test it with SEF enabled, it works like expected :idea:

Image

:idea:

And testing Phoca Gallery, which gets the same limitstart but it works ok without any problem there, I will do more tests :idea:

Jan
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Guestbook 3.0.2 pagination doesn't work

Post by Jan »

Please try to test the following.

Open the file:
components\com_phocaguestbook\models\guestbook.php

end edit (line cca 284) FROM:

Code: Select all

$start  = JRequest::getInt('start', $this->getState('list.start', 0));
		$limit  = JRequest::getInt('limit', $this->getState('list.limit', $params->get('default_pagination')));
		$this->setState('list.start', $start);
		$this->setState('list.limit', $limit);
TO:

Code: Select all

$start  = JRequest::getInt('limitstart', $this->getState('list.limitstart', 0));
		$limit  = JRequest::getInt('limit', $this->getState('list.limit', $params->get('default_pagination')));
		$this->setState('list.start', $start);
		$this->setState('list.limit', $limit);
And let me know if it works for you.

Thank you, Jan
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Guestbook 3.0.2 pagination doesn't work

Post by Jan »

Hi,

fixed in 3.0.3

Thank you, Jan
If you find Phoca extensions useful, please support the project
Post Reply