Pagination works wrong on the category blog

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Wed Sep 18, 2013 2:21 pm
Reply with quote
Report this post
Hi, I have issue with pagination on Joomla 2.5 Category Blog view (for 1 category).

First 6 pages are shown right and after that only way to go forward or back is click on "Previous" or "Next", and after that numbers don't exist... So it is really hard to navigate.

There is no SEF component using (only Joomla's default).

I believe that for help you will need link of website and administration panel account, it is not problem, but I would like first to know which moderator will help and I send all informations via PM (I can't post it public for everyone).

Thanks in advance
User avatar
Senior Boarder

GK User
Thu Sep 19, 2013 4:31 pm
Reply with quote
Report this post
Hi,

Please send me the access details ;)
User avatar
Administrator

GK User
Fri Sep 20, 2013 10:47 pm
Reply with quote
Report this post
dziudek wrote:Hi,

Please send me the access details ;)


Sent via PM.
User avatar
Senior Boarder

GK User
Sat Sep 21, 2013 9:17 am
Reply with quote
Report this post
Regarding your question from the PM message - yes, I'll need a FTP access - I'll have to change the pagination.php file ;)
User avatar
Administrator

GK User
Mon Sep 23, 2013 2:48 pm
Reply with quote
Report this post
dziudek wrote:Regarding your question from the PM message - yes, I'll need a FTP access - I'll have to change the pagination.php file ;)


Ok, sure, sent via PM again :)
User avatar
Senior Boarder

GK User
Mon Sep 23, 2013 5:24 pm
Reply with quote
Report this post
Sorry but I cannot connect with your server.

Please open file html/pagination.php in the template directory and please change fragment:

Code: Select all
if(count($list['pages']) >= 5) {
      $founded = false;
      
      for($i = 1; $i <= count($list['pages']); $i++) {
         if($list['pages'][$i]['active'] != 1) {
            $founded = $i;
            break;
         }
      }
      
      for($i = 1; $i <= count($list['pages']); $i++) {
         if($i == 1 && $founded > $i + 2) {
            $html .= '<li><span>&hellip;</span></li>';
         }
         
         if($i == count($list['pages']) && $founded < $i - 2) {
            $html .= '<li><span>&hellip;</span></li>';
         }
         
         if($i >= $founded - 2 && $i <= $founded + 2) {
            $html .= '<li>'.$list['pages'][$i]['data'].'</li>';
         }
      }
   } else {
      for($i = 1; $i <= count($list['pages']); $i++) {
         $html .= '<li>'.$list['pages'][$i]['data'].'</li>';
      }
   }


to:

Code: Select all
      for($i = 1; $i <= count($list['pages']); $i++) {
         $html .= '<li>'.$list['pages'][$i]['data'].'</li>';
      }
User avatar
Administrator

GK User
Wed Sep 25, 2013 1:49 pm
Reply with quote
Report this post
Now I've got first 10, but after 10 again I can use only Next to move (there is no "11", "12"...), I have 36 pages for now.
User avatar
Senior Boarder

GK User
Wed Sep 25, 2013 8:53 pm
Reply with quote
Report this post
I've redirected your problem to our developer - Bartłomiej Krztuk. Most probably he will solve the problem locally and will send you the fixed pagination.php file, because your FTP server works very slowly for us.
User avatar
Administrator

GK User
Thu Sep 26, 2013 11:57 am
Reply with quote
Report this post
Please contact with me via PM, I'll send you file for test.
User avatar
Platinum Boarder

GK User
Mon Sep 30, 2013 7:58 pm
Reply with quote
Report this post
dziudek wrote:I've redirected your problem to our developer - Bartłomiej Krztuk. Most probably he will solve the problem locally and will send you the fixed pagination.php file, because your FTP server works very slowly for us.


Thank you!
User avatar
Senior Boarder

GK User
Mon Sep 30, 2013 7:58 pm
Reply with quote
Report this post
bkrztuk wrote:Please contact with me via PM, I'll send you file for test.


I contacted you via PM, thanks
User avatar
Senior Boarder

GK User
Thu Oct 03, 2013 9:15 am
Reply with quote
Report this post
Did you get the file? All is working fine ?
User avatar
Platinum Boarder


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.