Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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. :) |
#2
|
||||
|
||||
Umm did you just copy the rename method and change its name? What error message did you get exactly?
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#3
|
|||
|
|||
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.
|
#4
|
||||
|
||||
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?
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#5
|
|||
|
|||
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.
|
#6
|
|||
|
|||
Still need help with updating data in the adopts :)
|
#7
|
||||
|
||||
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).
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#8
|
|||
|
|||
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 :)
|
#9
|
||||
|
||||
No problem, whats important is that you got it to work.^^
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calling a function in a function from the same class page | Hwona | Questions and Supports | 2 | 04-25-2015 08:41 AM |
Fatal Error with Myadopts page | Abronsyth | Questions and Supports | 2 | 12-29-2014 03:54 PM |
How to Restyle Myadopts Page? | AlexC | Questions and Supports | 3 | 04-04-2013 10:34 AM |
MyAdopts page? | Aasixx | Questions and Supports | 4 | 04-15-2012 06:37 PM |
Change the MyAdopts.php page! | Blue Icebox | Addons/Mods Graveyard | 4 | 05-03-2009 03:04 PM |
What's New? |
What's Hot? |
What's Popular? |