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 09-12-2016, 02:43 PM
Demonwolf37's Avatar
Demonwolf37 Demonwolf37 is offline
Trans with a plan
 
Join Date: Sep 2016
Posts: 21
Gender: Male
Credits: 5,067
Demonwolf37 is on a distinguished road
Default

I'll probably just do it by hand then. What should I change $adopt->getType() to? Assuming that I use 'levelname', would it be something like $levelname->getType(), or am I way off here?

Also, how exactly do you add additional levels? Right now I'm seeing this, and I can only add 3 levels. Do I just rewrite the level cap in one of the php files?
"This page will allow you to create new level(s) for 0_testAdoptable2. Right now there are 0 levels that exist for 0_testAdoptable2, the level cap is 3. That means that you can create up to 3 levels for 0_testAdoptable2. right now."

When adding the new field in class_adoptlevel, would it be something like this?

public function getLevelname($fetchMode = ""){
if($fetchMode == Model::MODEL) return new Adoptable($this->lvlname);
else return $this->lvlname;
}


And then add this with the others at the top?

protected $lvlname;

I'm not great at code, so I'm just kind of copying and modifying what was already there for the others...

And I'm not really sure what to do with level.php? Just add $current level = $mysidia->input->post("lvlname"); ????
__________________
I keep coming back to my dragons, even though I know there's nothing to do with them :/
Reply With Quote
  #2  
Old 09-16-2016, 04:52 PM
Demonwolf37's Avatar
Demonwolf37 Demonwolf37 is offline
Trans with a plan
 
Join Date: Sep 2016
Posts: 21
Gender: Male
Credits: 5,067
Demonwolf37 is on a distinguished road
Default

Bump, bump?
__________________
I keep coming back to my dragons, even though I know there's nothing to do with them :/
Reply With Quote
Reply

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


All times are GMT -5. The time now is 08:12 AM.

Currently Active Users: 3908 (0 members and 3908 guests)
Threads: 4,081, Posts: 32,032, 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 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636