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 07-28-2011, 10:51 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 82,377
SilverDragonTears is on a distinguished road
Default Soft Delete Problem

I did this option:


Soft Delete (Adoptable Retirement) - This option will do a soft delete of this adoptable from your system. Selecting this option will remove the egg image level for this adoptable from your system. Any users who have this type of adoptable as an egg will have them automatically leveled up to Level 1 for this adoptable type. This option closes the adoptable to new adoptions, but will not affect users who already adopted this creature. Note that once you do a soft delete you will no longer be able to edit the levels associated with that adoptable, so think about this carefully.

And now even though it says those adoptables should still be on the users list.... they aren't. And now I have a lot of very unhappy members.
__________________

Check out SilvaTales
Reply With Quote
  #2  
Old 07-28-2011, 11:27 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 82,377
SilverDragonTears is on a distinguished road
Default

Ok pretty sure this is why.....



PHP Code:
// See if the adoptable actually exists...

$query "SELECT * FROM ".$prefix."owned_adoptables as o LEFT JOIN ".$prefix."adoptables as a on a.type=o.type WHERE owner='$loggedinname' and aid='$id'";
$result runquery($query);
$num mysql_numrows($result); 
because it's looking in the adoptables table and they aren't there. How can I make it so that they show up?

ETA:

or this? oy.

PHP Code:
    // We need to get all of the user's adoptables from the database and display them...
    
$query "SELECT * FROM ".$prefix."owned_adoptables, ".$prefix."adoptables, ".$prefix."levels WHERE ".$prefix."owned_adoptables.owner = '{$loggedinname}'"
    
." AND ".$prefix."adoptables.type = ".$prefix."owned_adoptables.type AND ".$prefix."levels.thisislevel = ".$prefix."owned_adoptables.currentlevel AND ".$prefix."levels.adoptiename = "
    
.$prefix."adoptables.type  ORDER BY ".$prefix."owned_adoptables.sort, ".$prefix."owned_adoptables.totalclicks";
    
$result runquery($query);
    
$num mysql_numrows($result); 
__________________

Check out SilvaTales

Last edited by SilverDragonTears; 07-28-2011 at 11:30 PM.
Reply With Quote
  #3  
Old 07-29-2011, 01:44 AM
Nemesis's Avatar
Nemesis Nemesis is offline
Member
 
Join Date: Mar 2011
Location: Ohio, United States
Posts: 641
Gender: Male
Credits: 49,010
Nemesis is on a distinguished road
Default

dang that kinda sucks. hope you have a backup?
__________________
https://gemnode.com
Free Hosting for Mysidia Adopt Sites
Just join our forum and request your free hosting account
Reply With Quote
  #4  
Old 07-29-2011, 02:15 PM
Chibi_Chicken Chibi_Chicken is offline
Niwatori Kami
 
Join Date: Jun 2011
Posts: 63
Gender: Unknown/Other
Credits: 5,041
Chibi_Chicken is on a distinguished road
Default

Quote:
Originally Posted by SilverDragonTears View Post
Ok pretty sure this is why.....



PHP Code:
// See if the adoptable actually exists...

$query "SELECT * FROM ".$prefix."owned_adoptables as o LEFT JOIN ".$prefix."adoptables as a on a.type=o.type WHERE owner='$loggedinname' and aid='$id'";
$result runquery($query);
$num mysql_numrows($result); 
because it's looking in the adoptables table and they aren't there. How can I make it so that they show up?

ETA:

or this? oy.

PHP Code:
    // We need to get all of the user's adoptables from the database and display them...
    
$query "SELECT * FROM ".$prefix."owned_adoptables, ".$prefix."adoptables, ".$prefix."levels WHERE ".$prefix."owned_adoptables.owner = '{$loggedinname}'"
    
." AND ".$prefix."adoptables.type = ".$prefix."owned_adoptables.type AND ".$prefix."levels.thisislevel = ".$prefix."owned_adoptables.currentlevel AND ".$prefix."levels.adoptiename = "
    
.$prefix."adoptables.type  ORDER BY ".$prefix."owned_adoptables.sort, ".$prefix."owned_adoptables.totalclicks";
    
$result runquery($query);
    
$num mysql_numrows($result); 
So i am not sure where that first set of code is at however you are right that the second query is causing the problem, specifically
$prefix."adoptables.type = ".$prefix."owned_adoptables.type
and
$prefix."levels.adoptiename = ".$prefix."adoptables.type
with a "soft delete" it removes this entry from the DB. So when the query is ran it will return false. leaving sad faces.

My suggested fix is replace that query with this one (no longer using the adoptables table)
PHP Code:
    $query "SELECT * FROM ".$prefix."owned_adoptables, ".$prefix."levels WHERE ".$prefix."owned_adoptables.owner = '{$loggedinname}'"
    
." AND ".$prefix."owned_adoptables.type = ".$prefix."owned_adoptables.type AND ".$prefix."levels.thisislevel = ".$prefix."owned_adoptables.currentlevel AND ".$prefix."levels.adoptiename = "
    
.$prefix."owned_adoptables.type ORDER BY ".$prefix."owned_adoptables.totalclicks"
yay for data redundancy, hope that helps, and brings more happy faces.
Reply With Quote
  #5  
Old 07-29-2011, 02:28 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 82,377
SilverDragonTears is on a distinguished road
Default

You're my hero!!!!!!!

Thank you =)
__________________

Check out SilvaTales
Reply With Quote
  #6  
Old 07-29-2011, 02:38 PM
Chibi_Chicken Chibi_Chicken is offline
Niwatori Kami
 
Join Date: Jun 2011
Posts: 63
Gender: Unknown/Other
Credits: 5,041
Chibi_Chicken is on a distinguished road
Default

I'm no hero, the real hero here is fans. Lots of big fans running really high.
It's too freaking hot >.<
Reply With Quote
  #7  
Old 07-29-2011, 02:43 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 82,377
SilverDragonTears is on a distinguished road
Default

You are telling me.... it's 101 here. I'm dying =( (NC)
__________________

Check out SilvaTales
Reply With Quote
  #8  
Old 07-29-2011, 02:52 PM
Chibi_Chicken Chibi_Chicken is offline
Niwatori Kami
 
Join Date: Jun 2011
Posts: 63
Gender: Unknown/Other
Credits: 5,041
Chibi_Chicken is on a distinguished road
Default

I dont mind the heat too much but when I got to sleep I NEED it cold; I even crack open the window in the wintertime. The room has got to be cold so I can be warm and snugly in my blankets :)
Reply With Quote
  #9  
Old 07-29-2011, 03:16 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 82,377
SilverDragonTears is on a distinguished road
Default

that's the exact way i am!!! i can not stand to be hot though... it makes me depressed LOL!
__________________

Check out SilvaTales
Reply With Quote
  #10  
Old 07-29-2011, 04:18 PM
Nemesis's Avatar
Nemesis Nemesis is offline
Member
 
Join Date: Mar 2011
Location: Ohio, United States
Posts: 641
Gender: Male
Credits: 49,010
Nemesis is on a distinguished road
Default

since this thread is already de-railed lol I am sitting in the comfort of my cold basement
__________________
https://gemnode.com
Free Hosting for Mysidia Adopt Sites
Just join our forum and request your free hosting account
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
Soft Delete and Purge Not working GuardiansWish Questions and Supports 20 05-30-2013 07:20 PM
Not able to delete a pet species Cremuex Levier Questions and Supports 4 04-03-2013 10:07 AM
Can I delete a level? dulop Questions and Supports 3 05-31-2012 10:39 AM
Help? How do you delete... KaceKuma Feedback and Suggestions 2 09-26-2011 12:37 AM
can't delete adoptable RoconzaArt Questions and Supports 12 03-14-2011 12:32 AM


All times are GMT -5. The time now is 09:20 AM.

Currently Active Users: 9664 (0 members and 9664 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