Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 06-21-2013, 12:58 PM
Infernette Infernette is offline
CODE CODE CODE CODE CODE
 
Join Date: Jan 2013
Location: Where I live? I live home.
Posts: 164
Gender: Female
Credits: 23,879
Infernette is on a distinguished road
Default 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. :)
__________________
No, I have no idea what I'm doing. But it works. Barely.
Reply With Quote
  #2  
Old 06-21-2013, 07:35 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 335,375
Hall of Famer is on a distinguished road
Default

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.
Reply With Quote
  #3  
Old 06-24-2013, 09:09 PM
Infernette Infernette is offline
CODE CODE CODE CODE CODE
 
Join Date: Jan 2013
Location: Where I live? I live home.
Posts: 164
Gender: Female
Credits: 23,879
Infernette is on a distinguished road
Default

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.
__________________
No, I have no idea what I'm doing. But it works. Barely.
Reply With Quote
  #4  
Old 06-25-2013, 01:04 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 335,375
Hall of Famer is on a distinguished road
Default

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.
Reply With Quote
  #5  
Old 06-25-2013, 01:56 PM
Infernette Infernette is offline
CODE CODE CODE CODE CODE
 
Join Date: Jan 2013
Location: Where I live? I live home.
Posts: 164
Gender: Female
Credits: 23,879
Infernette is on a distinguished road
Default

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.
__________________
No, I have no idea what I'm doing. But it works. Barely.
Reply With Quote
  #6  
Old 06-30-2013, 10:56 PM
Infernette Infernette is offline
CODE CODE CODE CODE CODE
 
Join Date: Jan 2013
Location: Where I live? I live home.
Posts: 164
Gender: Female
Credits: 23,879
Infernette is on a distinguished road
Default

Still need help with updating data in the adopts :)
__________________
No, I have no idea what I'm doing. But it works. Barely.
Reply With Quote
  #7  
Old 07-01-2013, 01:39 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 335,375
Hall of Famer is on a distinguished road
Default

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.
Reply With Quote
  #8  
Old 07-01-2013, 08:04 PM
Infernette Infernette is offline
CODE CODE CODE CODE CODE
 
Join Date: Jan 2013
Location: Where I live? I live home.
Posts: 164
Gender: Female
Credits: 23,879
Infernette is on a distinguished road
Default

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, I have no idea what I'm doing. But it works. Barely.
Reply With Quote
  #9  
Old 07-02-2013, 12:12 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 335,375
Hall of Famer is on a distinguished road
Default

No problem, whats important is that you got it to work.^^
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -5. The time now is 06:31 PM.

Currently Active Users: 9843 (0 members and 9843 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636