Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   Organizing Adopts (that is compaitable with Mys 1.3.1?) (http://www.mysidiaadoptables.com/forum/showthread.php?t=3777)

quirkii 07-07-2012 08:35 AM

Organizing Adopts (that is compaitable with Mys 1.3.1?)
 
Hi again, this is my third question I guess. I've looked around and chanced upon what Nemesis mentioned with organizing the adopts based on their type/generation etc. I'm also hoping to be able to do that, maybe based on their class or other factors (better if it's possible to organize them based on other factors, since if It's organized by class only there can't be interspecies breeding (unless items are used)

It'll be great if I can categorize them under a table and fit them in accordingly based on their adoptable ID for instance, that way I can customize their order however I want. But if it's too complicated then never mind^^;

But if there's a script like that (even if it's categorized by class) compatible with Mys 1.3.1, can anyone share it with me?^^

Nemesis 07-07-2012 01:43 PM

open your adopts.php and make a copy of it. maybe call it class.php depending on what class you want it to be. then find the code that access the sql database and edit it. your looking for SELECT * which tells the database to select all hence the *. Then it will say FROM which should follow your database name or the variable for it. Then it will say WHERE which is very import this is the condition statement. it will only select the rows that match that statement so simply make it WHERE class = w/e class you want.

its a poor explanation but thats how you do it.

Hall of Famer 07-08-2012 02:52 AM

I think it should be compatible with Mys v1.3.1, since the old syntax of $adopts->prepare(), $adopts->query() are still valid. We just dont use them anymore since a better syntax is designed for Mys v1.3.1.


All times are GMT -5. The time now is 01:44 PM.

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