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 Jetti » Mon Aug 20, 2012 7:34 am

This is great Nick! Thank you!! :D
Image
User avatar
Jetti
 
Posts: 12750
Joined: Sun Oct 02, 2011 3:36 am
My pets
My items
My wishlist
My gallery
My scenes
My dressups
Trade with me

Re: Make your own PHP adoptables system

Postby AsheDD » Tue Sep 18, 2012 5:35 am

I have been using this script but I'm wondering about the time function when it levels: It's set on specific dates. So that means I have to keep updating every single date? (for example: if I set the pet to level on (03/07/12) but someone adopts it the next day on (03/8/12) then how is this suppose to work unless i keep changing the dates everyday lool. I read there's other time functions like:

Code: Select all
<?php
$nextWeek = time() + (7 * 24 * 60 * 60);
                   // 7 days; 24 hours; 60 mins; 60secs
echo 'Now:       '. date('Y-m-d') ."\n";
echo 'Next Week: '. date('Y-m-d', $nextWeek) ."\n";
// or using strtotime():
echo 'Next Week: '. date('Y-m-d', strtotime('+1 week')) ."\n";
?>


but how do I translate this into the .xml file?
AsheDD
 
Posts: 1
Joined: Tue Sep 18, 2012 5:30 am
My pets
My items
My wishlist
My gallery
My scenes
My dressups
Trade with me

Re: Make your own PHP adoptables system

Postby Mint Chip » Thu Oct 04, 2012 5:51 am

I know this isn't particularly to do with .php, but I do have a question for you Nick.
How do you get your border to work on your CSS?
I know it's a section of border and then repeated around the entire thing. However I don't know how you get it to stay as a border.
Everytime I try something like that it ends up in the middle or not exactly where I need it.
If I could get a little help with that I'd greatly appreciate it. c:

Also Needing help with these codes/error
I know you might not know a whole lot about Mysidia's codes or anything, but I've received this error on my site when trying to put in need adopts.
Fatal error: Uncaught exception 'Exception' with message 'Database error 1054 - Unknown column 'description' in 'field list'' in /home/chibifur/public_html/classes/class_database.php:161 Stack trace: #0 /home/chibifur/public_html/classes/class_database.php(54): Database->_query('adoptables', Array, 'insert') #1 /home/chibifur/public_html/admincp/adoptpost.php(92): Database->insert('adoptables', Array) #2 {main} thrown in /home/chibifur/public_html/classes/class_database.php on line 161


These are the following lines listed:
Line 54: return $this->​_query($tableName​, $data, 'insert');
Line 92: "alternates" => $alternates, "altoutlevel" => $altoutlevel, "altchance" => $altchance, "cost" => $cost));
Line 161: throw new Exception('Database error ' . $error[1] . ' - ' . $error[2]);
ImageImage | Image | ImageImage

.
.

ImageImage
You can call me, Mint or Minty.
I usually type in green.

╔═════════════════════╗

╚═════════════════════╝
Image

.
.
.

Image
Dark Cocoa is owned by my Husband & Mint Chip is owned by me
Art created by me



My PMs are disabled, if you have a Viscet related question,
please see this FAQ.
User avatar
Mint Chip
 
Posts: 10043
Joined: Thu Apr 21, 2011 1:23 am
My pets
My items
My wishlist
My gallery
My scenes
My dressups
Trade with me

Re: Make your own PHP adoptables system

Postby Riverspell » Sun Jan 06, 2013 6:04 pm

I don't know if this is the right place to post this but I'm trying to help another member out here.

She's using this PHP code and as far as I can tell, it's correct.

She's using Webhost, the one recommended in the tutorial, but it's not recognizing the PHP. It either ignores it or, if you modify the code, turns it into HTML. The site says it supports PHP on free but we can't get it to work.

Anyone help?
User avatar
Riverspell
 
Posts: 704
Joined: Wed Aug 20, 2008 12:31 pm
My pets
My items
My wishlist
My gallery
My scenes
My dressups
Trade with me

Re: Make your own PHP adoptables system

Postby MarasiMara » Sat Jan 19, 2013 11:08 am

Would this program work for it? https://www.phpbb.com/ It's PHPBB.
Image
User avatar
MarasiMara
 
Posts: 41
Joined: Sun Dec 30, 2012 7:34 am
My pets
My items
My wishlist
My gallery
My scenes
My dressups
Trade with me

Re: Make your own PHP adoptables system

Postby .P e a c h e s. » Wed Feb 06, 2013 11:42 pm

I use Linux Ubuntu as my OS, and I typically use the program SeaMonkey for creating web pages. Can I use SeaMonkey to create PHP documents, or do I need Notepad++?
Image
Image
Image* Image
User avatar
.P e a c h e s.
 
Posts: 2069
Joined: Tue Nov 13, 2012 8:21 pm
My pets
My items
My wishlist
My gallery
My scenes
My dressups
Trade with me

Re: Make your own PHP adoptables system

Postby Dreamfly » Thu Feb 07, 2013 1:42 pm

Riverspell wrote:She's using Webhost, the one recommended in the tutorial, but it's not recognizing the PHP. It either ignores it or, if you modify the code, turns it into HTML. The site says it supports PHP on free but we can't get it to work.
Anyone help?

Does the page end with ".php" or ".html"? It needs to be .php to support php code.
Current: online a bit more now
Image

Image

Image
User avatar
Dreamfly
 
Posts: 1414
Joined: Thu Dec 18, 2008 5:29 pm
My pets
My items
My wishlist
My gallery
My scenes
My dressups
Trade with me

Re: Make your own PHP adoptables system

Postby Patrick Stump » Mon Jul 15, 2013 10:16 am

How do you make the inventory's or accounts to store the pets?
Image
User avatar
Patrick Stump
 
Posts: 1694
Joined: Mon Apr 02, 2012 9:10 am
My pets
My items
My wishlist
My gallery
My scenes
My dressups
Trade with me

Re: Make your own PHP adoptables system

Postby RoGuE_ » Mon Aug 19, 2013 11:03 am

Wow confsuing but im gonna try my best my sis and i trying to do something simlar to cs. Shes the artist guess that leaves me with coding,forum, and alot other stuff
•Long time member of CS
•Steven Universe Fangirl
•Gamer
•Slightly stuck in the 90’s
•Proud Geek and Nerd!
User avatar
RoGuE_
 
Posts: 47
Joined: Wed Jan 30, 2013 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 Darkest Night » Sun Aug 25, 2013 1:43 am

Thanks! It'll help me someday! :3
Image
The crow knows the stars are his discarded eyes. Everyday when he awakens he opens new eyes. And every night his old eyes are flung, far out into the skies. The crow knows the starlight, starlight comes from his own voice, which trapped the sun. Of Course he shines brighter stars: his discarded eyes. ~Sujata Bhatt

Wanna RP with me? PM me I don't bite! We'll work something out!
Image
User avatar
Darkest Night
 
Posts: 531
Joined: Sat Aug 24, 2013 1:43 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 33 guests