Add a new function in the myadopts page?
I wanted to edit in another function to the myadopts page (to go with the rename options and whatnot) but I noticed that simply just copying the rename function and changing the name causes an error, so what other pages/parts do I need to edit?
Also, I was wondering, how do we go about updating a part of an adopt (I see that it has "setName" and such in the rename function, but can that jut be changed to a field I want updated or do I have to find some workaround? Sometimes It can just be changed or sometimes it refuses.........) I'm using this to try to update my public selling/buying mod that I had on my old site. :) |
Umm did you just copy the rename method and change its name? What error message did you get exactly?
|
That's pretty much what I did to see if It let me after I first changed a few things. It doesn't give an error message, just a blank page.
|
A blank page indicates that you have a syntax error. There is an easy way to debug though, but mind posting the method/function you created yourself here so I can help you out?
|
Okay I figured out what was wrong! (good to know that those mean syntax now!) But I was wondering, how do you go about updating a part of an adopt. setName only works for name, and I can't use "setPrice" or just "price" to get it to update the price, so I was wondering how to go about it.
|
Still need help with updating data in the adopts :)
|
I think you should be looking at the class_ownedadoptables.php file to see what methods are available for an owned adoptable. You probably need to write a database query script to update the price, as there is no shortcut method to accomplish this like setName($name).
|
Thanks for pointing me in that direction! Just upgraded then entire selling system on my site, and without that info I never would have been able to :)
|
No problem, whats important is that you got it to work.^^
|
All times are GMT -5. The time now is 01:21 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.