View Single Post
  #1  
Old 02-15-2009, 08:02 PM
rosepose rosepose is offline
Member
 
Join Date: Jan 2009
Posts: 127
Credits: 10,633
rosepose
Default No Clicks at all?

I'm trying to teach myself PHP, and I was wondering which bits of the script contain parts that determine when the adoptable levels up, and how hard that would be to change to no clicks? I'm trying to get it to change after a certain amount of time, you see, like this:
PHP Code:
if ($date XX) {

  foreach (
$variation->age as $age) {
         if (
$age['date'] == "a") {
              
$pickedAge=$age;
         }
    }
}

  else if (
$date XX && $date >= XX) {

  foreach (
$variation->age as $age) {
         if (
$age['date'] == "b") {
              
$pickedAge=$age;
         }
    }
}

  else if (
$date >= XX) {

  foreach (
$variation->age as $age) {
         if (
$age['date'] == "c") {
              
$pickedAge=$age;
         }
    }
}

else {
echo 
"Cannot find that age";

Rather than with clicks, because the main thing that appeals to me about this script is that you can put your adoptables on an account. Even as the admin of my site, I'm still finding it hard to get mine to level up.
Reply With Quote