View Full Version : Is this possible?
gloryKAT
06-16-2014, 09:26 PM
Is it possible to code in a lineage feature for adoptables? If so, is there a code I can use to do so?
Hwona
06-16-2014, 09:56 PM
Umm I think this will only show an adoptable's mother and father, but you could try adding 2 columns to the owned_adoptables table that are titled something like "mother" and "father". When an adoptable is bred, you can try getting the parents' ids and then placing thme into the columns. Then you can go to the levelup page and get the adoptable's parent columns' values which you could put into variables. Then, try puting a link to 2 adoptables on the page and instead of putting an adoptable id, replace the id with the variables that contain the parents' ids. Do I even make any sense? I'm sure there's a better way to do this, but this is what worked for me on something similar. :3
gloryKAT
06-16-2014, 10:03 PM
That might work. I'll have to try that .w.
Hwona
06-16-2014, 10:06 PM
Oh, you can actually go several generations back... you'll just need to get the parents of the mother and father and add more columns... but I'm not sure how to display this on another page. :L
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.