View Single Post
  #14  
Old 01-23-2011, 08:37 PM
fadillzzz fadillzzz is offline
Dev Staff
 
Join Date: Jan 2010
Posts: 501
Gender: Male
Credits: 41,148
fadillzzz is an unknown quantity at this point
Default

Quote:
Originally Posted by Hall of Famer View Post
Oh interesting, you have an evolution system already? Nice! ^^

Edit: I fixed a glitch in this script, which caused big problem for users running Mysidia Adoptables on a subdirectory. To do this, find the following codes below:

PHP Code:
$article_content $article_content."<div style='text-align:center;'>";
if(
$currentpage 1) {
$newpage $currentpage 1;
$article_content $article_content."<a href='/myadopts.php?page=".$newpage."'><img src='/templates/icons/prev.gif' border=0> Previous Page</a> ";
}
else{
$article_content $article_content."<img src='/templates/icons/prev.gif' border=0> Previouse Page ";
}
if(
$currentpage $totalpages) {
$newpage $currentpage 1;
$article_content $article_content." ::  <a href='/myadopts.php?page=".$newpage."'>Next Page <img src='/templates/icons/next.gif' border=0></a> ";
}
else{
$article_content $article_content." ::  Next Page <img src='/templates/icons/next.gif' border=0>";
}
$article_content $article_content."</div>";

Replace with:

PHP Code:
$article_content $article_content."<div style='text-align:center;'>";
if(
$currentpage 1) {
$newpage $currentpage 1;
$article_content $article_content."<a href='myadopts.php?page=".$newpage."'><img src='/templates/icons/prev.gif' border=0> Previous Page</a> ";
}
else{
$article_content $article_content."<img src='/templates/icons/prev.gif' border=0> Previouse Page ";
}
if(
$currentpage $totalpages) {
$newpage $currentpage 1;
$article_content $article_content." ::  <a href='myadopts.php?page=".$newpage."'>Next Page <img src='/templates/icons/next.gif' border=0></a> ";
}
else{
$article_content $article_content." ::  Next Page <img src='/templates/icons/next.gif' border=0>";
}
$article_content $article_content."</div>";

Now this should work for both users running Mys on their root directory or subdirectory. Enjoy. ^^
Yeah I forgot to remove the forward slash, I added them because I'm trying to make friendly urls. Thanks HoF!
I've also edited the code on the first page and I'll try to make pagination work for your create/edit/delete user's pet from admin cp mod (that's a long name!)

Last edited by fadillzzz; 01-23-2011 at 08:56 PM.
Reply With Quote