Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#1
|
||||
|
||||
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?^^ |
#2
|
||||
|
||||
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.
__________________
https://gemnode.com Free Hosting for Mysidia Adopt Sites Just join our forum and request your free hosting account |
#3
|
||||
|
||||
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.
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
Tags |
adoptables, categorize, class, organizing, sorting |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OMG MY ADOPTS IS GONE!?!?! | Nemesis | Other Chat | 48 | 11-21-2018 01:20 PM |
Female Adopts can breed; male adopts only have 1. | Phoeniix | Questions and Supports | 2 | 11-09-2013 02:56 AM |
Simple adopts | superdude44 | Adoptables Buzz | 2 | 06-03-2013 06:09 PM |
organizing adopts | Nemesis | Questions and Supports | 5 | 06-30-2012 04:03 PM |
Nom Nom Adopts XD | alonaria | Adoptables Buzz | 1 | 04-03-2011 09:09 PM |
What's New? |
What's Hot? |
What's Popular? |