Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   Will pay for this.... (http://www.mysidiaadoptables.com/forum/showthread.php?t=3527)

!Alive 03-22-2012 10:42 PM

Alright, if I think of anything I'll let you know. X3

As for your question I get what you mean, but I am not sure how I would be able to accomplish that.

SilverDragonTears 03-22-2012 10:46 PM

Cool :) I'm so happy with this so it's totally cool! :bucktard::catfish::usedusedused:

SilverDragonTears 03-22-2012 10:58 PM

Ok one more thing :) I think this may require a cron job or something... I think I'm more new to this than you.... but how can I only have the adopts available at certain times? Maybe a few minutes every hour?

!Alive 03-22-2012 10:58 PM

I'm happy I was able to help. :smile::jay:

SilverDragonTears 03-22-2012 11:02 PM

Added one more question in for you :) Sorry, lol

!Alive 03-22-2012 11:04 PM

So you want the adoptables to only show/be available for a certain period of time? I'd have to see if I can come up with any simple ways. But in theory(in my head) it doesn't seem so hard. Though i have never done something like that.

SilverDragonTears 03-22-2012 11:09 PM

I'm thinking I could just use something like I use for an adopt on my fox site. They are called twilight foxes and the sprite changes during twilight hours. So I could do something like...

Code:


        $current_time = date(G);
        if ($current_time >= 17 && $current_time < 19){
show the adopts here
}else{
There are no dragons here.
}

Something like that? That's a little of the code from my twilight foxes so those are twilight hours...

!Alive 03-22-2012 11:15 PM

Yeah, something like that should work. With the times changed to when you want dragons to be available.

SilverDragonTears 03-23-2012 12:11 AM

Not sure how to say like >=5 && <= 5:30 lol... Ideas?

!Alive 03-23-2012 02:29 PM

I played with it for a while and finally figured out a way to make it work. X3

$current_time = date('Gi');
if ($current_time >= 500 && $current_time < 530){
show adopts here
}else{
There are no dragons here.
}


All times are GMT -5. The time now is 07:18 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.