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 12-01-2009, 03:04 AM
Blackmagic Blackmagic is offline
Member
 
Join Date: Jan 2009
Posts: 31
Credits: 4,272
Blackmagic
Angry sort adoptables

Hello together,

is it possible, to programm, that the user could sort the adoptables in their favorite order?

or alternate sort by names, levels or adoption-day?

greetings
Reply With Quote
  #2  
Old 12-01-2009, 09:05 AM
Arianna's Avatar
Arianna Arianna is offline
Dev Staff
 
Join Date: Sep 2009
Posts: 334
Gender: Female
Credits: 21,042
Arianna will become famous soon enough
Default RE: sort adoptables

Hmm - well, I sort mine by type. The favorite order might be tricky, though... When you query, just use something like this.. Mine has it on line 88.
PHP Code:
$query "SELECT * FROM ".$prefix."owned_adoptables WHERE owner='$loggedinname' ORDER BY type, totalclicks DESC"
I hope that I helped.
Reply With Quote
  #3  
Old 12-01-2009, 12:06 PM
exdiogene exdiogene is offline
Member
 
Join Date: Oct 2009
Posts: 84
Credits: 7,789
exdiogene
Default RE: sort adoptables

Do you mean sort th pets they have adopted?

if so, You could add a Text box to the pet profile called order. They then can choose to type the order number. Then that adds it to the database, so that when displaying results you just add
PHP Code:
ORDER BY order 
Reply With Quote
  #4  
Old 12-01-2009, 03:05 PM
Haylzee Haylzee is offline
Member
 
Join Date: Jun 2009
Posts: 34
Credits: 537
Haylzee
Default RE: sort adoptables

Yep, that's how I did it. They just give each adoptable a number and their profile displays the pets in order from smallest number to the largest.
Reply With Quote
Reply

Thread Tools
Display Modes

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
Mys v1.3.1 Group sort StarGirl Mys v1.3.x Mods 60 09-17-2018 04:46 AM
1.3.4 - group sort draugluin Questions and Supports 6 01-16-2017 12:02 PM
will this code work? (sort of blacksmith idea) schepers12 Questions and Supports 2 11-14-2012 04:48 PM
Allow users to drag and sort? SilverDragonTears Questions and Supports 4 08-29-2011 01:01 PM
Some sort of variable? The Codfin Keeper Questions and Supports 9 02-20-2011 11:17 AM


All times are GMT -5. The time now is 03:07 AM.

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