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-13-2011, 09:07 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 96,846
SilverDragonTears is on a distinguished road
Default Sort "myadopts" page

Is there a way to let users sort their adoptables into the order they want?
__________________

Check out SilvaTales
Reply With Quote
  #2  
Old 06-15-2011, 12:39 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 96,846
SilverDragonTears is on a distinguished road
Default

anyone? =( My members are requesting this and I've no idea how to implement it.
__________________

Check out SilvaTales
Reply With Quote
  #3  
Old 06-15-2011, 12:50 PM
fadillzzz fadillzzz is offline
Dev Staff
 
Join Date: Jan 2010
Posts: 501
Gender: Male
Credits: 37,719
fadillzzz is an unknown quantity at this point
Default

Could you be more specific?
In what order do they actually want? By the total clicks? levels? names? ascending or descending?
Or something more customizable like, they have full control which one is the first, second, third, and so on regardless of the adoptables' stats?
Reply With Quote
  #4  
Old 06-15-2011, 12:57 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 96,846
SilverDragonTears is on a distinguished road
Default

More customizable where they can sort which is first,second etc, regardless of the stats =p The other I could do but I don't have any idea how to make it so they can sort them and save the order.
__________________

Check out SilvaTales
Reply With Quote
  #5  
Old 06-15-2011, 01:16 PM
fadillzzz fadillzzz is offline
Dev Staff
 
Join Date: Jan 2010
Posts: 501
Gender: Male
Credits: 37,719
fadillzzz is an unknown quantity at this point
Default

You'll need to create a new table for that
I'm thinking the table would be something like this
-----------------------------------
|adoptable_id|sorting_number|
-----------------------------------
|_________1|____________2|
|_________2|____________3|
|_________7|____________1|
|_________4|____________1|
...

And then when you're fetching the adoptables from the owned_adoptables table, join it with the other table above and order the rows by the sorting_number field.
Reply With Quote
  #6  
Old 06-15-2011, 01:33 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 96,846
SilverDragonTears is on a distinguished road
Default

Ok, how would I go about allowing them to actually sort them... and how to join the tables? I've no idea where to start and can follow code but I'm not advanced by any means =p
__________________

Check out SilvaTales
Reply With Quote
  #7  
Old 06-15-2011, 01:51 PM
fadillzzz fadillzzz is offline
Dev Staff
 
Join Date: Jan 2010
Posts: 501
Gender: Male
Credits: 37,719
fadillzzz is an unknown quantity at this point
Default

To allow users to sort their adoptables, you can create a page where it lists all their own adoptables and put a textbox next to each adoptable for them to input the sorting number.

The JOIN query would probably look like this
SELECT * FROM adopts_owned_adoptables JOIN adopts_sorting_adoptables ON adoptable_id = aid ORDER BY sorting_number ASC;

I think that should do it (for the query part)
Reply With Quote
  #8  
Old 06-15-2011, 04:51 PM
Ruinily Ruinily is offline
Member
 
Join Date: Mar 2011
Location: England
Posts: 185
Gender: Female
Credits: 24,208
Ruinily is on a distinguished road
Default

This is great, I've been dying for something like this for ages! I'll be trying it out soon too after straightening out some other little things and see if it works for me. :)
__________________

Chocolate butterfly cat pudding. o.o


And since even the programming on this forum doesnt like me anymore heres my sites address. XD
http://felkyocreatures.com/index.php
Reply With Quote
  #9  
Old 06-15-2011, 07:28 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 96,846
SilverDragonTears is on a distinguished road
Default

Got it working thanks to an awesome friend. Now my next issue.

Is it possible to give my users a link for other people to see the adoptables they own?

EDIT: nm =p friend is doing that as well.. I luuuv this guy!
__________________

Check out SilvaTales
Reply With Quote
  #10  
Old 06-16-2011, 12:36 AM
Ruinily Ruinily is offline
Member
 
Join Date: Mar 2011
Location: England
Posts: 185
Gender: Female
Credits: 24,208
Ruinily is on a distinguished road
Default

o.o Where did you get this friend and can I get one? :D
__________________

Chocolate butterfly cat pudding. o.o


And since even the programming on this forum doesnt like me anymore heres my sites address. XD
http://felkyocreatures.com/index.php
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
"Fairy State" theme by Bobbybighoof (Mysidia 1.3.3) bobbybig Templates and Themes 3 07-18-2018 07:54 PM
Removing of prefix "class", "abstract", "interface" Suggestions FounderSim Suggestions and Feature Requests 3 10-05-2014 06:35 PM
Changing... or "masking" existing URLs Vaporman87 Questions and Supports 7 03-03-2014 08:10 PM
[Updated] AJAX Sortable Adoptables on "myadopts.php" Page fadillzzz Mys v1.2.x Mods 57 05-29-2012 03:16 AM
A php question about changing the "level up" section coffeeaddict Questions and Supports 6 02-26-2011 12:08 PM


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

Currently Active Users: 707 (0 members and 707 guests)
Threads: 4,081, Posts: 32,031, 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