![]() |
Home Community Mys-Script Creative Off-Topic |
|
![]() |
|
Thread Tools | Display Modes |
#61
|
||||
|
||||
![]()
I have to put back the good code now, though, I am opening my sites in a few days and I am crunched for time to get this all ready :)
I am really hoping HOF can possibly swing in here and help, I think this would be a really great mod !! |
#62
|
||||
|
||||
![]()
^Okay, I still have to wrap up the v.1.3.3 tutorial and my own site. XP
|
#63
|
||||
|
||||
![]()
The error is probably because in the file it's supposed to throw an exception if the adoptable has already been clicked. In 1.3.4 all pages are separated into two files: One manages the controller (database accesses and verifications) and the other (in the folder view) manages what is shown to the user. The exchange of variables between these files is done through a hashmap. What's happening is that, when the user has already clicked an adoptable, this should throw an exception:
elseif($this->adopt->hasVoter($mysidia->user, $date)){ $message = ($mysidia->user instanceof Member)?"already_leveled_member":"already_leveled_ guest"; throw new LevelupException($message); } And it stops the levelupview.php page from generating text. If you don't throw an exception there, the view file will try to access two variables called Reward and Adopt, which are set by the controller only in the case they pass all conditions: (from levelup.php) else{ //stuff $this->setField("adopt", $this->adopt); $this->setField("reward", new Integer($reward)); } So it's basically trying to use two variables it can't find in the hashmap: (from levelupview.php) $adopt = $this->getField("adopt"); $reward = $this->getField("reward")->getValue(); ----- Maybe try setting both variables at the beginning instead of being inside the else clause?
__________________
![]() ![]() ![]() asp.net stole my soul. Last edited by IntoRain; 06-30-2014 at 03:21 PM. |
#64
|
||||
|
||||
![]()
^Hmmm... which code would be best to try this with?
|
#65
|
||||
|
||||
![]()
The guide is now fully updated! :D
|
#66
|
||||
|
||||
![]()
That's wonderful!! :)
|
#67
|
||||
|
||||
![]()
I'm going to try and figure out how to do this with v.1.3.4 now... :L
|
#68
|
||||
|
||||
![]()
This is really great! Please do get it working with the latest version, I love what I'm seeing here!
|
#69
|
||||
|
||||
![]()
^Oh thank you! Actually, I think everything is compaticle with v.1.3.4(at least the assigning stats to new adopts part). The only part I'm stuck on is displaying information on the levelup page... :3
|
#70
|
||||
|
||||
![]()
I updated the guide! Promocode adopts can now be assigned stats!(Sorry for forgetting!) Just go to step 4 of the "assigning stats" post and update your code. :3
|
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Trade System | Kyttias | Questions and Supports | 4 | 05-29-2016 12:29 AM |
Making v.1.3.3 Stat Mod Compatible with V.1.3.4 | Hwona | Questions and Supports | 0 | 07-08-2014 01:37 PM |
Stat Inheritance Mod * thanks to Wallie! * | Missy Master | Mys v1.3.x Mods | 0 | 06-30-2014 02:23 PM |
Anyone Want to Have a Stat System | Hwona | Feedback and Suggestions | 12 | 06-30-2014 09:30 AM |
Basic Stat System | Hedgen | Questions and Supports | 3 | 03-10-2013 02:47 PM |
What's New? |
What's Hot? |
What's Popular? |