Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Suggestions and Feature Requests (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=21)
-   -   Pagination/ My Adopts Page (http://www.mysidiaadoptables.com/forum/showthread.php?t=1786)

Hall of Famer 01-23-2011 02:13 PM

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. ^^

Bloodrun 01-23-2011 06:00 PM

These are all useful suggestions lol
Back at RA coding suggestions were barely coming in, and now theres like an overflow o.0
Lol, I have a lot of work to do...

Hall of Famer 01-23-2011 06:17 PM

Well I also added a new feature that enables users to manually set the trade status of their pets. By default, all pets are 'fortrade', but the trade status can be changed from 'fortrade' and 'notfortrade' at anytime. I am trying to add pagination for user's profile pets too, and if works I may as well release Mys v1.1.3 prior to the next major release.

Screenshot1:
http://oi55.tinypic.com/34pjt4x.jpg


Screenshot2:
http://oi52.tinypic.com/10r5xy0.jpg


Screenshot3:
http://oi54.tinypic.com/2s7jt3a.jpg


Screenshot4:
http://oi56.tinypic.com/2801p9u.jpg

fadillzzz 01-23-2011 08:37 PM

Quote:

Originally Posted by Hall of Famer (Post 13378)
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!)


All times are GMT -5. The time now is 08:31 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.