RE: Currency for leveling up and adoptable shop [Beta]
Im getting the same error as well, It has to be because of the 'egg' part.
|
RE: Currency for leveling up and adoptable shop [Beta]
i think a "kind" and "cost" row has to be added to the adoptables table......
|
RE: Currency for leveling up and adoptable shop [Beta]
yeah, i'll try it.
EDIT: YES! I did it! you have to add a 'kind' column to the table 'adoptables'. then when you add the adoptable, you use this query: Code:
INSERT INTO adoptables VALUES ('', 'name','level 0 image','shop','cost','kind') Code:
$query = "SELECT * FROM adoptables WHERE kind = 'egg' LIMIT 0,5"; The adoptable still appears in the adoption page, but i will look and try to fix this. NEW EDIT: Fixed that too! in the database, go to the 'adoptables' table, and in the adoptables you want in the offcial adoption place, set their kind to something like, 'adoptable'. then, in adopt.php, find this line: Code:
$query = "SELECT * FROM adoptables" Code:
$query = "SELECT * FROM adoptables WHERE kind = 'adoptable'"; :) |
RE: Currency for leveling up and adoptable shop [Beta]
Thats what i did too, and changed the "egg" to "shop" and the "full" to "shop2"
The creator of this mod must have forgotten to post the bit about adding the new rows to the adoptables table as well.... |
RE: Currency for leveling up and adoptable shop [Beta]
Erm... How exactly do you add the column?
|
RE: Currency for leveling up and adoptable shop [Beta]
@ rosepose:
Click here: http://i172.photobucket.com/albums/w...hoto/kind1.jpg Then fill it in like this: http://i172.photobucket.com/albums/w...hoto/kind2.png And click Save. Thanks mattalien, everything works perfectly now. =) |
RE: Currency for leveling up and adoptable shop [Updated] [Beta]
Ok, with the update, there is now no need to add new columns. It adds "shop" to the "memberlevel" column and the cost to the "description" table.
Also this is a more secure buying method so people cannot get them for free. |
RE: Currency for leveling up and adoptable shop [Updated] [Beta]
I still don't get how to add a pet to the shop :P Heh, i've looked over the files..but I'm not sure what to change or add...
|
RE: Currency for leveling up and adoptable shop [Updated] [Beta]
we now have the shop.. thanks
visit : fresbopet.netau.net to see |
RE: Currency for leveling up and adoptable shop [Updated] [Beta]
Quote:
Quote:
EDIT: buyconfirm doesn't work, the new shop file doesn't work (it screws up the template and when you buy something, nothing appears on the page... |
RE: Currency for leveling up and adoptable shop [Updated] [Beta]
Can i just ask, how can I add a new section to the shop?
e.g. I have the one heading that says "Gold Coin Frames", and I would like another one saying "Platinum Coin Frames" underneath. How do I do this? |
RE: Currency for leveling up and adoptable shop [Updated] [Beta]
Easy, mattalien.
First of all, insert the adoptables you want in this section using this query. Replace shop with something different like shop_platinum. PHP Code:
Then edit shop.php and find this line: PHP Code:
PHP Code:
|
RE: Currency for leveling up and adoptable shop [Updated] [Beta]
I ended up having to add a kind row anyway :P With the memberlevel one, no matter what i put the adoptable's level at, anyone could still get it. and that was the problem i was having XD but i fixed it with adding a 'kind' to it. so it's all good now :D Thank you!
|
RE: Currency for leveling up / Adoptable shop (NEW: Prevent stealing!)
Densaugeo, I've added an anti-theft code to the adopt page, so no one can adopt these shop creatures through the adopt page. :)
|
RE: Currency for leveling up / Adoptable shop (NEW: Prevent stealing!)
Quote:
:) |
RE: Currency for leveling up / Adoptable shop (NEW: Prevent stealing!)
Quote:
|
RE: Currency for leveling up / Adoptable shop (NEW: Prevent stealing!)
Is there any way i could set the adoptables in a table that would look like this:
Code:
<center><table border='2' bordercolor='#3d3d3d' cellpadding='5' cellspacing='1'> |
RE: Currency for leveling up / Adoptable shop (NEW: Prevent stealing!)
Quote:
|
RE: Currency for leveling up / Adoptable shop (NEW: Prevent stealing!)
OMG this is going to be so helpful on my site! *squeals!*
Thank you sooooooooo much for making this!!! :D |
RE: Currency for leveling up / Adoptable shop (Updated levelup.php with generic message)
Got it. You forgot to add this:
PHP Code:
|
RE: Currency for leveling up / Adoptable shop (Fixed again)
Added.
|
RE: Currency for leveling up / Adoptable shop (Fixed again)
Just went to buy an adoptable from the shop. I clicked it, it all worked fine 'till I clicked adopt. Then it wouldn't let me adopt, even when I legitimately adopted it. I had to take that part out of adopt.php for it to work. Help?
|
RE: Currency for leveling up / Adoptable shop (Fixed again)
Now that I got the one issue taken care of, I want to submit this information to see if you'd know how to help me convert from adoptables to items.
shop.php code: PHP Code:
PHP Code:
Code:
Warning: mysql_numrows(): supplied argument is not a valid MySQL result resource in /home/enddayne/public_html/shop.php on line 88 |
RE: Currency for leveling up / Adoptable shop (Fixed again)
^
Sounds like there's an error here: PHP Code:
Quote:
|
RE: Currency for leveling up / Adoptable shop (Fixed again)
When I put the anti-theft thingamajig in it gives me an error (I'm still using the Kind column)
|
RE: Currency for leveling up / Adoptable shop (Fixed again)
Don't use the kind column, rose.
Use memberlevel. You are to put shop in memberlevel and make sure all of your free adoptables do in fact say free in their memberlevel for the anti-theft to work. Quote:
|
RE: Currency for leveling up / Adoptable shop (Fixed again)
The new shop has errors. When I click buy, the page comes up completely blank. Just a white screen.
|
RE: Currency for leveling up / Adoptable shop (Fixed again)
For me, too.
|
RE: Currency for leveling up / Adoptable shop (Fixed again)
Slight issue: the money portion of the script stops working after a bit. I'll get som, then it won't show that i got some, as well as how much i currently have.
|
RE: Currency for leveling up / Adoptable shop (Fixed again)
Hi! what do you mean by "running queries"? do you mean in the mySQL text document? if so do you think you could make a mod to let me add adopts to the shop directly from the admin part? because my friend controlls the mySQL parts of the site and he's not on a lot
|
RE: Currency for leveling up / Adoptable shop (Fixed again)
^
You can't do that, you have to have access to MySQL. |
RE: Currency for leveling up / Adoptable shop (Fixed again)
Okay, dumb question time..... Are all the fixes discussed in the 8 pages of this thread included in the first post, or do I have to go through and do a bunch of edits? I know, lame question.... it's late.... brain no workee. Humour the crazy lady, 'k?
:P |
RE: Currency for leveling up / Adoptable shop (Fixed again)
you may want to see if there are any errors the creator of this forum didn't see but once you get past his last post it should be on the first page (i hope)
|
RE: Currency for leveling up / Adoptable shop (Fixed again)
Quote:
EDIT: If you re-install everything on the front page and re-run the queries, it all works fine. |
RE: Currency for leveling up / Adoptable shop (Fixed again)
Quote:
:rolleyes: ;) |
RE: Currency for leveling up / Adoptable shop (Fixed again)
^
Yum yum? =D |
RE: Currency for leveling up / Adoptable shop (Fixed again)
Oh, very yum yum!! I still haven't fully recovered.
:o9 |
RE: Currency for leveling up / Adoptable shop (Fixed again)
OK, seriously. How do I add an adoptable to the shop? And how do I make it so that it says something like this:
"You have earned 20 bucks for leveling up this pet." because it just says: You have earned (number) (currency name) for leveling up this pet. |
RE: Currency for leveling up / Adoptable shop (Fixed again)
^
Easy. 1 (Adding Adoptables to the shop). Go to MySQL and open the queries. Copy-Paste this: Code:
INSERT INTO adoptables VALUES ('', 'name','level 0 image','shop','cost') '' - Leave this blank 'name' - Replace name with the Adoptable Name but keep the ''. 'level 0 image' - Replace level 0 image with the default image for your adoptable but keep the ''. 'shop' - Leave this as it is. 'cost' - Replace cost with how much the adoptable is going to cost but keep the ''. Run that query. Now copy-paste this new query into the box: Code:
INSERT INTO adoptable_rankimages VALUES ('name','1','2','3','4','5','6','7','8') 'name' - Replace name with the same name you did in the last one. It has to be the same name or your adoptable won't evolve. Keep the ''. '1' - Replace 1 with the first adoptable image but keep the ''. and so on and so on. When that is done, run the query and check that your adoptable appears in the shop. 2 (changing Money Message). Go to levelup.php and search for Code:
$article_content=$article_content. " |
RE: Currency for leveling up / Adoptable shop (Fixed again)
Hm, well... I don't know how to change the (number) because my users get a random amount from 10-25 "Emeralds". Does the command $money work? Or does anything else so? Maybe I can add something new to the MySQL, like $Money_Get or something, and I do it like this:
$Money_Get = rand(10,25)? But I seriously don't think that will work. Can anyone here help me to get the money to show? Please? I enter the code where it should be. And I get THIS error: "Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/a8498929/public_html/index.php on line 62" Or anything similar. How do I solve this? |
All times are GMT -5. The time now is 11:50 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.