Make your own PHP adoptables system

Need help with the site/forum/pets? Ask questions and get help from other members here.

Re: Make your own PHP adoptables system

Postby The Hunger Games » Fri Apr 25, 2014 1:54 am

Thanks nick!
I can't wait to get some pets on my site.
So excited!


-Cece
Image
WIP.
User avatar
The Hunger Games
 
Posts: 5100
Joined: Wed Oct 30, 2013 9:20 am
My pets
My items
My wishlist
My gallery
My scenes
My dressups
Trade with me

Re: Make your own PHP adoptables system

Postby germanshepardlover » Wed Jul 23, 2014 7:48 am

Starting to use it for my site!
Looking for more will pay rares and very rares for a bulk of them
Image
    http://Epic-Rewards.com/?ref=1562711 Please click that link it will be a great help :3
    User avatar
    germanshepardlover
     
    Posts: 1351
    Joined: Tue Dec 24, 2013 8:39 am
    My pets
    My items
    My wishlist
    My gallery
    My scenes
    My dressups
    Trade with me

    Re: Make your own PHP adoptables system

    Postby King of Crows » Fri Jul 25, 2014 8:55 am

    Sooo does anyone have any idea what this is telling me?
    ‰PNG  IHDR D¤ŠÆtEXtSoftwareAdobe ImageReadyqÉe<�0PLTEMÒ‹8%* )pJ HÄ‚C¶xT8.~S3Œ]>¨oF.$bA8šføÕFÎIDATxÚÔ“É’Ã CÕ+›±ÿÿo§ÉÔÄCH|L%ºQ¼BB À·H(d€ P¨^PFf¢}°T(/€8DpÕ8‹i[÷³ª' ›—JH뻇59rYSM“”þ`%ìÖ†ˆdóXûð fjØ5Z;’s£Üÿ[xL{’ÄYÑ“[Ò6±Ù0¯~fÔÆ;h1¤,ºeïHÊgt-·LnÚ˜GH ϏjU„ºR!Ïóë~™j"œŸ´IEND®B`‚

    I am uncertain, but perhaps it is conflicting with my HTML and CSS..?
    Reality is subjective.
    User avatar
    King of Crows
     
    Posts: 8178
    Joined: Fri Aug 22, 2008 2:33 am
    My pets
    My items
    My wishlist
    My gallery
    My scenes
    My dressups
    Trade with me

    Re: Make your own PHP adoptables system

    Postby løwkey lawnmøwer. » Tue Jul 29, 2014 7:37 pm

    Awesome.
    Image
    we're twenty øne piløts
    .──────── are yøu


    ████████████████████

    .Image
    she/them | sig made by noiv
    ━━━━━━━━━━━━━━━━━━━━━━
    hi im løwkey lawnmøwer. i mainly like tøp, as you can tell.
    other interests include; other females (cause im gay) and memes.
    feel free to pm me about tøp because i like to fangirl.
    you can also pm about other stuff, im very cool

    ━━━━━━━━━━━━━━━━━━━━━━
    |-/xxxx •|i|•xxxx Øxxxx i+!xxxx ].[

    ████████████████████
    ImageImageImage
    Image
    ██
    ██
    ██
    ██
    ██
    ██
    ██
    ██
    ██
    ██
    ██

    ██
    ██
    User avatar
    løwkey lawnmøwer.
     
    Posts: 2650
    Joined: Wed Jul 09, 2014 6:04 pm
    My pets
    My items
    My wishlist
    My gallery
    My scenes
    My dressups
    Trade with me

    Re: Make your own PHP adoptables system

    Postby Rolly-chan » Thu Jul 31, 2014 2:02 am

    Perocore wrote:
    Sooo does anyone have any idea what this is telling me?
    ‰PNG  IHDR D¤ŠÆtEXtSoftwareAdobe ImageReadyqÉe<�0PLTEMÒ‹8%* )pJ HÄ‚C¶xT8.~S3Œ]>¨oF.$bA8šføÕFÎIDATxÚÔ“É’Ã CÕ+›±ÿÿo§ÉÔÄCH|L%ºQ¼BB À·H(d€ P¨^PFf¢}°T(/€8DpÕ8‹i[÷³ª' ›—JH뻇59rYSM“”þ`%ìÖ†ˆdóXûð fjØ5Z;’s£Üÿ[xL{’ÄYÑ“[Ò6±Ù0¯~fÔÆ;h1¤,ºeïHÊgt-·LnÚ˜GH ϏjU„ºR!Ïóë~™j"œŸ´IEND®B`‚

    I am uncertain, but perhaps it is conflicting with my HTML and CSS..?

    That should be some of the code of your picture (the one you create with simple.php).
    Is this the whole code you get on the site? If not, can you post the whole code? If there are passwords, don't forget to change them up so we don't see.

    ---

    I have a question myself. I'm currently at it again (yeah, after years XD). And I have, so far, successfully integrated the script with phpBB (and it took me hours, lol, because of the template structure of phpBB).

    The weird thing is, when I first adopt a pet, the picture is broken. But when I display it again or click on the image and click "display image", it's working.
    And sometimes, it's working just fine. I really don't understand what's wrong. It's working just fine for the version not integrated into phpBB.

    Which codes from which files should I show you? I'm really not sure where something could be wrong...

    It's also my changed code so the adoptables grow after a set amount of days instead of certain dates. The one where I've changed it to

    Code: Select all
    foreach ($variation->age as $age) {
       
       if (!isset($age['date']) || time()-$row[0] > $age['date']) {
       
          $pickedAge=$age;
          
       }
    }

    Where $row is an array from my database where I've stored the date, pet id, etc. $row[0] is the UNIX_TIMESTAMP of the adoption date. And I have saved the amount of days as seconds in the adoptables.xml file.

    I'm making all this on my computer with XAMPP, so for the time being I don't have any accessible website I could show you.


    Nevermind. I think I found the culprit. For whatever reason, I had a "date" for the baby picture in one variation, but not the others. So I guess that's why it sometimes worked.
    User avatar
    Rolly-chan
     
    Posts: 2790
    Joined: Tue Nov 18, 2008 8:09 am
    My pets
    My items
    My wishlist
    My gallery
    My scenes
    My dressups
    Trade with me

    Re: Make your own PHP adoptables system

    Postby The Dreamy Coder » Sun Jan 04, 2015 11:54 am

    Hello Nick!

    I was told that http://www.000webhost.com is a site that contains malicious malware. So I recommend not to register on that site before anything harms your computer. I'd rather use a much more better, secured, and safe web host.

    Just wanted to let others know!
    The Dreamy Coder
    The Dreamy Coder
     
    Posts: 15
    Joined: Sun Jan 04, 2015 11:05 am
    My pets
    My items
    My wishlist
    My gallery
    My scenes
    My dressups
    Trade with me

    Re: Make your own PHP adoptables system

    Postby Architeuthid » Mon Mar 16, 2015 11:50 pm

    I've created one, but it's on hiatus and isn't getting updated, so you get an error message when adopting, unfortunately. Well, here's the site link, anyway.
    User avatar
    Architeuthid
     
    Posts: 1386
    Joined: Tue Dec 23, 2014 10:13 am
    My pets
    My items
    My wishlist
    My gallery
    My scenes
    My dressups
    Trade with me

    Re: Make your own PHP adoptables system

    Postby kittlethekitten » Mon May 04, 2015 11:58 am

    [url=http://www.chickensmoothie.com/pet/170296865.html]
    kittlethekitten
     
    Posts: 1
    Joined: Mon May 04, 2015 11:50 am
    My pets
    My items
    My wishlist
    My gallery
    My scenes
    My dressups
    Trade with me

    Re: Make your own PHP adoptables system

    Postby SGTC123 » Mon May 04, 2015 12:29 pm

    Thanks for this!
    SGTC123
     
    Posts: 1
    Joined: Fri Jun 21, 2013 3:32 pm
    My pets
    My items
    My wishlist
    My gallery
    My scenes
    My dressups
    Trade with me

    Re: Make your own PHP adoptables system

    Postby TwiWoo » Wed Jun 03, 2015 2:47 pm

    No offense but this is like very very very very very very very very very very very very very very very very very very very very very very confusing!
    NICK, HOW DO YOU DO IT?!?
    ImageImage
    User avatar
    TwiWoo
     
    Posts: 689
    Joined: Sat May 02, 2015 10:27 am
    My pets
    My items
    My wishlist
    My gallery
    My scenes
    My dressups
    Trade with me

    Who is online

    Users browsing this forum: No registered users and 13 guests