Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Projects > The Bug Tracker > Bug

Notices

Bug with Multiple adopt pages Issue Tools
issueid=54 12-18-2015 08:16 PM
Member
Bug with Multiple adopt pages
Weird bug when there are many pages on the myadoptables page.

One of my members reported that once their My Adopts pages reached 9 or 10, they started getting a weird bug where if they tried clicking one of the pages (page 2 or 3 for example) it brings them to the first page instead of the page they wanted.

The "Next" and "Previous" buttons work fine.

I've also noticed this seems to be an issue for the Memberlist pages as well (on a different site that uses the script).
Issue Details
Project The Bug Tracker
Category Unknown
Status Fixed
Priority 8
Affected Version Mys v1.3.4
Fixed Version Mys v1.3.5
Users able to reproduce bug 0
Users unable to reproduce bug 0
Assigned Users (none)
Tags (none)

12-27-2015 03:54 AM
Member
 
Found the fix.

Go to the classes folder, and find class_pagination.php. Open it up and starting on line 71, replace this code:

PHP Code:
            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>";                    
                    } 
with this code:

PHP Code:
            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>";                    
                    } 
There was simply a slash added where it shouldn't have been, since $symbol takes care of that already.
Reply
12-27-2015 12:38 PM
A Headache Embodied
 
Ah, I was actually just about to post the fix for this, haha! I'm glad you found it :)
Reply
Reply

All times are GMT -5. The time now is 12:42 AM.

Currently Active Users: 727 (0 members and 727 guests)
Threads: 4,081, Posts: 32,032, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636