View Full Version : Descriptions
Kamalya
02-09-2013, 06:26 AM
I want to add descriptions for each level of my dragons, I know I need to add a new field for this to my database but for the PHP how would I implement this?
Abronsyth
02-09-2013, 06:57 AM
Well, I would try looking at the admincp/adopt.php file and finding the section in there where it allows the admin to add the description for the adoptable itself. You'll also want to take a look at admincp/level.php but that's all I can figure out this early in the morning :P
I'm sure someone with a better understanding of PHP will eventually offer you better assistance XD
Kamalya
02-09-2013, 07:05 AM
I have an idea I think I need to add a prefix in the level.php to account for it adding in descriptions, I didn't think of doing the admincp/level.php because I just straight upload all my stuff via the mysql I rarely touch the admin area.
Kamalya
02-10-2013, 03:24 PM
okay I got it to work, I hate the admin CP so I did not add a field in to that but if any one wants to know how to do this you just have to make a new field in adopts_level and then when you want to add it to which ever page just do: {$level->descriptions} or w/e you called your field and it will add it in for you.
Abronsyth
02-10-2013, 03:56 PM
I might have to do something like that for the adult stage alone...mmm...thanks for sharing! I'm glad you were able to figure it out ;)
Infernette
02-10-2013, 04:09 PM
Thanks for sharing this, I totally needed it :) I might need to figure out what I'm doing but it seems awesome XD Definitely needed this :smile:
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.