Lady wrote:Okay, I have to ask.. How do you make the adoptables grow after a certain amount of days instead of on a certain date? I like the idea of people being able to grab the adopts the entire time they're up until they are taken down, rather than when I have to remove them because they're about to grow.
It's basically how they work on here, where it doesn't matter when you adopt them but after a certain amount of time (or sometimes on a date, though I know how that works already) they will grow on their own--like after ten days or so.
PM Rolly-chan. I did, and now I have the codes for all that =D
thenickdude wrote:The code gets run step by step from top to bottom. So you're loading an image, before you allocate a new colour to use with that image, before you use that colour to draw text, before you call imagepng to send the completed picture to the user, before you call imagedestroy to get rid of your image. If you wanted to, for example, draw a filled rectangle of colour behind the text, that would have to happen before the text gets drawn. imagefilledrectangle() could be useful here:
http://nz.php.net/manual/en/function.im ... tangle.php
I'll add those codes in later, it looks pretty easy to figure out XD
thenickdude wrote:"Where you put the codes" is where you want them to be executed, relative to the other instructions you've already got.
I still don't really get it >.<
I could put the codes where the image is displayed on adopt.php, but then when the adopt codes are pasted it won't show, because there's nothing in adopttools.php or simple.php (wherever it should go) that says the writing on it should be displayed. I'm terrible when it comes to these things >.< Always comes up with errors D:
If I put it somewhere in simple.php (or whatever) would it still be the same codes as I have now? Or would I have to change it to something else for it to understand it? D: