PDA

View Full Version : Pages on myadopts not working?


Infernette
07-26-2013, 06:37 AM
One of my users is a bit of a hoarder, and I originally removed the pages option because I found it bothersome. I put it back in and.... nothing.

It limits the adopts and everything- just for some reason when clicked the page does not pull up the adopts for the next page- it keeps them the same. :catfish:

I even took code from a fresh file and it didn't work.

Infernette
07-27-2013, 12:30 PM
Figured it out- In classes_pagination in the function showpage it has this:
elseif($this->getLastPage() >= 9){
if($page < 4) {
for ($counter = 1; $counter < 6; $counter++){
if ($counter == $page)
$pagination .= "<span class='current'>{$counter}</span>";
else
$pagination .= "<a href='{$this->website}{$this->symbol}page-{$counter}'>{$counter}/</a>";

You do not need the slash at the end. :) (It messed me up D:)
elseif($this->getLastPage() >= 9){
if($page < 4) {
for ($counter = 1; $counter < 6; $counter++){
if ($counter == $page)
$pagination .= "<span class='current'>{$counter}</span>";
else
$pagination .= "<a href='{$this->website}{$this->symbol}page-{$counter}'>{$counter}</a>";