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 Luli » Thu Dec 11, 2008 4:28 am

OoOo, very nice!
Image Image
HUGE THANKS TO A CHICKEN FOR HELPING ME GET THE LAST PET TO COMPLETE MY COLLECTION!!
Offering Image AND Image for Image
User avatar
Luli
 
Posts: 5354
Joined: Wed Sep 24, 2008 4:54 pm
My pets
My items
My wishlist
My gallery
My scenes
My dressups
Trade with me

Re: Make your own PHP adoptables system

Postby qhost » Fri Dec 12, 2008 1:51 am

Hi...it's me...again :oops:

Okay, so I was having a look at that 000webhost site, and I'm really confused as to how I'm supposed to upload my site. Also, it mentioned something about public_html or something. Okay...I have no idea what that means :?
    -
    she/they | adult | australia | artist | writer
    ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

    My name is Boo & I am perpetually tired.
    I have real bad anxiety so I take a while to respond
    to msgs sometimes, sorry!
    -
User avatar
qhost
 
Posts: 4107
Joined: Wed Oct 01, 2008 6:36 pm
My pets
My items
My wishlist
My gallery
My scenes
My dressups
Trade with me

Re: Make your own PHP adoptables system

Postby Sidewind » Fri Dec 12, 2008 6:51 am

My bnest freind (nibbler56) helped me with the adoptables on my site. She must have looked on there so I thank you alot!! Ohh and heres the link http://magick.heavenforum.com/forum.htm :D
Image
Image
Image
User avatar
Sidewind
 
Posts: 522
Joined: Mon Sep 01, 2008 9:49 am
My pets
My items
My wishlist
My gallery
My scenes
My dressups
Trade with me

Re: Make your own PHP adoptables system

Postby Tekkanin » Fri Dec 12, 2008 12:03 pm

Sidewind wrote:My bnest freind (nibbler56) helped me with the adoptables on my site. She must have looked on there so I thank you alot!! Ohh and heres the link http://magick.heavenforum.com/forum.htm :D

That's a roleplay forum, not an adoptables site.
User avatar
Tekkanin
 
Posts: 193
Joined: Wed Sep 24, 2008 9:22 am
My pets
My items
My wishlist
My gallery
My scenes
My dressups
Trade with me

Re: Make your own PHP adoptables system

Postby Nick » Fri Dec 12, 2008 12:31 pm

Kiara wrote:Hi...it's me...again :oops:

Okay, so I was having a look at that 000webhost site, and I'm really confused as to how I'm supposed to upload my site. Also, it mentioned something about public_html or something. Okay...I have no idea what that means :?


If you know how to use a FTP client, that's the best option. Otherwise, go to your cPanel and click on the "File manager" button. Enter your password again and you'll see the files that are in your site, and you can upload files by clicking the "Upload" button. Put your files into the public_html folder if you want people to be able to see them.
User avatar
Nick
Admin
 
Posts: 6337
Joined: Thu Jul 03, 2008 2:40 pm
My pets
My items
My wishlist
My gallery
My scenes
My dressups
Trade with me

Re: Make your own PHP adoptables system

Postby qhost » Fri Dec 12, 2008 10:51 pm

Okay, I've made my site now! :D
Although...there's one problem..

Every time I go to adopt a pet, it comes up with this error:

Fatal error: Call to undefined function find_adoptable() in /home/a4660607/public_html/adopt.php on line 56


I've had a look, and line 56 is this:

Code: Select all
$adoptable=find_adoptable($_REQUEST['id']);


So...why is it doing that?

Sorry to bother you again!
--Kiara
    -
    she/they | adult | australia | artist | writer
    ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

    My name is Boo & I am perpetually tired.
    I have real bad anxiety so I take a while to respond
    to msgs sometimes, sorry!
    -
User avatar
qhost
 
Posts: 4107
Joined: Wed Oct 01, 2008 6:36 pm
My pets
My items
My wishlist
My gallery
My scenes
My dressups
Trade with me

Re: Make your own PHP adoptables system

Postby Nick » Fri Dec 12, 2008 10:59 pm

Check that the contents of your adopttools.php are correct, especially the find_adoptable() function.
User avatar
Nick
Admin
 
Posts: 6337
Joined: Thu Jul 03, 2008 2:40 pm
My pets
My items
My wishlist
My gallery
My scenes
My dressups
Trade with me

Re: Make your own PHP adoptables system

Postby qhost » Fri Dec 12, 2008 11:08 pm

thenickdude wrote:Check that the contents of your adopttools.php are correct, especially the find_adoptable() function.


okay...

I had a look and I think a few things were missing. I've editted it a bit...hopefully it'll work now :lol:

EDIT: Everything worked fine this time...except now whenever I adopt a pet the picture doesn't show...instead it looks like that little square with the red cross thingo. Also...I need a bit of help for actually being able to show the picture on sites/forums. Whenever I paste it it just comes up saying
Code: Select all
[img]http://etc[/img]
(on forums) without showing the image... :?
    -
    she/they | adult | australia | artist | writer
    ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

    My name is Boo & I am perpetually tired.
    I have real bad anxiety so I take a while to respond
    to msgs sometimes, sorry!
    -
User avatar
qhost
 
Posts: 4107
Joined: Wed Oct 01, 2008 6:36 pm
My pets
My items
My wishlist
My gallery
My scenes
My dressups
Trade with me

Re: Make your own PHP adoptables system

Postby Nick » Sat Dec 13, 2008 12:19 am

One of the early tutorials has a hint for getting error messages from simple.php (instead of just broken images).

You should check your code carefully against the code I provide in the zip at the end of the tutorial, or just use that code to start with (you don't have to change much, mostly just the address of your website for the adoption code)
User avatar
Nick
Admin
 
Posts: 6337
Joined: Thu Jul 03, 2008 2:40 pm
My pets
My items
My wishlist
My gallery
My scenes
My dressups
Trade with me

Re: Make your own PHP adoptables system

Postby qhost » Sat Dec 13, 2008 1:25 am

thenickdude wrote:One of the early tutorials has a hint for getting error messages from simple.php (instead of just broken images).

You should check your code carefully against the code I provide in the zip at the end of the tutorial, or just use that code to start with (you don't have to change much, mostly just the address of your website for the adoption code)


I had a look through it again and I'm still not so sure...I have a feeling it has something to do with simple.php...

Anyway, maybe this'll help...this is what the adopted pet image and html code currently looks like in adopt.php:

Code: Select all
<p><img src="http://kiarasdomain.net76.net\simple.php?a=<?php echo $_REQUEST['id'];?>&amp;v=<?php echo $v_id;?>"></p> 
<p><textarea cols="30" rows="5"><a href="http://kiarasdomain.net76.net/index.html"><img src="http://kiarasdomain.net76.net/simple.php?a=<?php echo $_REQUEST['id'];?>&amp;v=<?php echo $v_id;?>"></a><br><b>Pet's name:</b> *pet name here*<br><b>Owner's Name:</b> *your name here*</textarea></p>


I think there might be something wrong with the location of the image...
    -
    she/they | adult | australia | artist | writer
    ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

    My name is Boo & I am perpetually tired.
    I have real bad anxiety so I take a while to respond
    to msgs sometimes, sorry!
    -
User avatar
qhost
 
Posts: 4107
Joined: Wed Oct 01, 2008 6:36 pm
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 5 guests