![]() |
#1
|
||||
|
||||
![]()
Hi,
I would like to change the script, for example : don't show gender until level 2 ... and others. But where have I put the text inside the script ? I've tried it like this (in myadopts .... public function index) PHP Code:
Please help, how can I solve this ? thank you... |
#2
|
||||
|
||||
![]()
Does it throw an error or anything. Why are you writing code like currentLevel()? There's no such function defined in PHP or Mysidia. Also it's a syntax error to enclose an if statement inside parenthesis, use curly braces instead.
__________________
![]() Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#3
|
||||
|
||||
![]() Quote:
1) The if works like this: PHP Code:
3) "0" is a string, you probably want an integer, which is just 0. 4) $currentlevel even as a variable won't work, it's an empty variable. You must have meant $adopt->getCurrentLevel() which is a function that returns the current level of the object $adopt. 5) And this: PHP Code:
PHP Code:
PHP Code:
Then go to the function PHP Code:
PHP Code:
(this in 1.3.3, not sure how if the newest version changed a lot...)
__________________
![]() ![]() ![]() asp.net stole my soul. Last edited by IntoRain; 11-26-2013 at 06:11 AM. |
#4
|
||||
|
||||
![]()
@ HoF
I've modified the Mys 1.3.1 alike. (looks like Quote:
@ Into Rain aaaaaaaaaaaaaaah, yes. it was such a stupid fault ..."0" But you helped me very much. thank you so much. ![]() I needed just a big thought-provoking impulse ![]() Last edited by draugluin; 11-26-2013 at 12:51 PM. |
#5
|
||||
|
||||
![]()
Well Mys v1.3.3 is much more object oriented than Mys v1.3.1, so the old techniques may not work on the newer versions. In fact, Mys v1.4.0 and the future versions will pretty much require you to use objects all the time, its a good thing I believe.
__________________
![]() Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#6
|
||||
|
||||
![]()
@ Hof
I'm looking foreward to Mys 1.4.0. to conform the new script is not such a big problem, I've needed just a tip. And I will be glad, if you can help with another "problem": I want the alternate image for the females. So ... If the randomgenerator create a adoptable female, is it possible to insert automatically "yes" into the field "usealternates" ? and if so ... where ? and how ? ![]() Last edited by draugluin; 11-27-2013 at 09:14 AM. |
#7
|
||||
|
||||
![]() Quote:
__________________
![]() ![]() ![]() asp.net stole my soul. |
#8
|
||||
|
||||
![]()
@ IntoRain
update- that's an idea. I try it... thank you ![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|
What's New? |
What's Hot? |
What's Popular? |