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
  #11  
Old 03-26-2012, 09:37 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: 574,571
Hall of Famer is on a distinguished road
Default

I wish I could find out why the codes wont work for you, but I am no good at AJAX at this point. Sorry...
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #12  
Old 03-26-2012, 09:44 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 110,446
SilverDragonTears is on a distinguished road
Default

It's ok... but new problem with trade. In the redeem there is is_numeric but when I change that to !empty I get this

The trade either does not exist or has been revoked by the other user.
__________________

Check out SilvaTales
Reply With Quote
  #13  
Old 03-26-2012, 09:49 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: 574,571
Hall of Famer is on a distinguished road
Default

First of all, !empty() can be used to replace is_numeric(), but I am pretty sure the redeem.php has !is_numeric(). See the difference? ! means 'not', so it is the opposite to is_numeric(). Of course it wont work if you change !is_numeric() to !empty(), it should be empty() instead.

I also do not recommend you to change every is_numeric() to !empty(), unless all your table IDs are alphanumeric. If the trade id is still numeric, you are better off just leave the code the way it was.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #14  
Old 03-26-2012, 09:53 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 110,446
SilverDragonTears is on a distinguished road
Default

Ok when I left it as it was the adoptable offered wasn't showing up... so I changed this:

Code:
if($row->adoptableoffered != "" and $row->adoptableoffered != 0){
to

Code:
if($row->adoptableoffered != "" and $row->adoptableoffered != "0"){
They show up....
__________________

Check out SilvaTales
Reply With Quote
  #15  
Old 03-26-2012, 09:56 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: 574,571
Hall of Famer is on a distinguished road
Default

Yeah it is quite interesting to see how the code works. Your adoptables id is alphanumeric, so you should use "0" instead of 0. Alphanumeric ids are strings, while numeric ids are integers, they work differently.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #16  
Old 03-26-2012, 10:01 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 110,446
SilverDragonTears is on a distinguished road
Default

That is good to know... better go fix my fox scripts. Thank you HoF ;)
__________________

Check out SilvaTales
Reply With Quote
  #17  
Old 03-26-2012, 10:02 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: 574,571
Hall of Famer is on a distinguished road
Default

You are welcome, enjoy.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #18  
Old 03-26-2012, 10:08 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 110,446
SilverDragonTears is on a distinguished road
Default

One more thing :D Is it possible to add 1000 to every users money using sql?
__________________

Check out SilvaTales
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
Make pets' trade status Not For Trade by default tahbikat Questions and Supports 3 12-13-2015 10:21 PM
View Public Trade Offers not working. Pear Questions and Supports 16 03-10-2014 06:29 PM
Version 3? AlexC Feedback and Suggestions 8 09-09-2011 05:37 PM
When the new version?? SieghartZeke Suggestions and Feature Requests 4 12-02-2010 04:53 AM
Mac version? Smoggy Questions and Supports 7 08-01-2010 05:36 PM


All times are GMT -5. The time now is 05:23 AM.

Currently Active Users: 4408 (0 members and 4408 guests)
Threads: 4,081, Posts: 32,032, 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 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636