Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 07-07-2012, 08:35 AM
quirkii's Avatar
quirkii quirkii is offline
Member
 
Join Date: Jul 2012
Posts: 11
Gender: Female
Credits: 3,495
quirkii is on a distinguished road
Default 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?^^
Reply With Quote
  #2  
Old 07-07-2012, 01:43 PM
Nemesis's Avatar
Nemesis Nemesis is offline
Member
 
Join Date: Mar 2011
Location: Ohio, United States
Posts: 641
Gender: Male
Credits: 48,355
Nemesis is on a distinguished road
Default

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
Reply With Quote
  #3  
Old 07-08-2012, 02:52 AM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 327,493
Hall of Famer is on a distinguished road
Default

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.
Reply With Quote
Reply

Tags
adoptables, categorize, class, organizing, sorting

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
OMG MY ADOPTS IS GONE!?!?! Nemesis Other Chat 48 11-21-2018 12:20 PM
Female Adopts can breed; male adopts only have 1. Phoeniix Questions and Supports 2 11-09-2013 01:56 AM
Simple adopts superdude44 Adoptables Buzz 2 06-03-2013 05:09 PM
organizing adopts Nemesis Questions and Supports 5 06-30-2012 03:03 PM
Nom Nom Adopts XD alonaria Adoptables Buzz 1 04-03-2011 08:09 PM


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

Currently Active Users: 435 (0 members and 435 guests)
Threads: 4,080, Posts: 32,024, 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