Mysidia Adoptables Support Forum  

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

Reply
 
Thread Tools Display Modes
  #1  
Old 04-17-2015, 03:53 AM
draugluin's Avatar
draugluin draugluin is offline
Member
 
Join Date: Oct 2011
Location: germany
Posts: 97
Gender: Unknown/Other
Credits: 3,776
draugluin is on a distinguished road
Default 1.3.4 - group sort

Hi together,

is there anyone with a great idea, how to sort the pets in groups ?

once it gave this for 1.3.1, maybe it could be re-constructed ?

http://www.mysidiaadoptables.com/for...ead.php?t=3672
Reply With Quote
  #2  
Old 04-17-2015, 03:01 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 840
Gender: Unknown/Other
Credits: 35,066
Kyttias is on a distinguished road
Default

Well I can give you this, to simplify the database stuff at the start, but read the entire post first:
Database
Create the adopts_pets_group table in the database. You can use the following SQL:
Code:
CREATE TABLE IF NOT EXISTS `adopts_pet_groups` (
  `name` varchar(15) NOT NULL,
  `user` varchar(20) NOT NULL,
  `id` int(11) NOT NULL,
  `group` varchar(15) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
Note that if your prefix is not adopts_, which it would be by default, then you need to change it in the code above to match what you set your prefix to be during installation.
HOWEVER, after this point there's not much I can say on the matter without understanding what the code did better.

I CAN say that doadopt.php does not exist anymore, but, similar lines in similar locations do exist -- however, even though they do, it is not a line that actually needs modifying. When a pet is created, the database is automatically going to already give it a group column, and, it is going to be set the default value of zero. So no worries here, moving on--

As for myadopts.php, obviously things have changed a lot, so you cannot simply replace your entire file. I don't know what in there belonged to the original myadopts.php for v1.3.1 and what was newly added by the mod, and I'd have to compare the two to find out. Further, as of v1.3.4, pages are now controlled in a model-view-controller fashion, meaning, there are "two" files for every one page. This is mostly useful in being able to bounce form data back and forth on the "same" page.

Since a form is definitely being used in this mod to create new pet groups and to manage what group you want to belong to, I'd have to study what's going and catch the data, then update the database for these form submissions.

I don't have time right now, but perhaps others can take a crack at it. For the best (simple) example of how form data is being sent and collected, I'd observe how donate.php and view/donateview.php are working together to submit forms. And for further general reading on working with the framework in v1.3.4, I recommend reading this vague guide I made while helping someone once.

Good luck!
__________________
Please do not contact me. I cannot offer tech support on any coding I've done prior to 2018.

Last edited by Kyttias; 04-19-2015 at 11:34 PM.
Reply With Quote
  #3  
Old 04-18-2015, 02:39 AM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is online now
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: Somerville
Posts: 4,388
Gender: Male
Credits: 123,948
Hall of Famer is on a distinguished road
Default

Its possible to port that mod into Mys v1.3.4 compatible version, with a little bit of coding of course.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #4  
Old 04-19-2015, 11:44 PM
draugluin's Avatar
draugluin draugluin is offline
Member
 
Join Date: Oct 2011
Location: germany
Posts: 97
Gender: Unknown/Other
Credits: 3,776
draugluin is on a distinguished road
Default

Oookay, I try it and if I fixed it, I will show you the success
I've modified my Mys 1.3.2, so I'm hopeful, I will solve this too.
Reply With Quote
  #5  
Old 01-16-2017, 10:50 AM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,090
Gender: Female
Credits: 25,500
SilverDragonTears is on a distinguished road
Default

HoF can you find time to work on this? My users are requesting this. I should have just downloaded an older Mys script because I am so lost with all the new coding :(
__________________
Reply With Quote
  #6  
Old 01-16-2017, 11:44 AM
Silver_Brick Silver_Brick is offline
Designer || Coder
 
Join Date: Oct 2016
Location: In Earth
Posts: 204
Gender: Male
Credits: 7,293
Silver_Brick is on a distinguished road
Default

i am also intrested in it but I can't find a way to implement it but i can suggest you some snippet of it
see this
Reply With Quote
  #7  
Old 01-16-2017, 01:02 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,090
Gender: Female
Credits: 25,500
SilverDragonTears is on a distinguished road
Default

Yeah I'm just totally lost with this type of coding :(
__________________
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 55 12-17-2017 04:51 PM
What age group do you belong to? Hall of Famer Other Chat 19 09-28-2017 08:37 AM
sort adoptables Blackmagic Questions and Supports 3 12-01-2009 04:05 PM
group zhiichiro Questions and Supports 7 05-30-2009 07:21 PM
Adding new user group mugwumpr Questions and Supports 2 04-19-2009 07:02 PM


All times are GMT -5. The time now is 01:59 AM.

Currently Active Users: 195 (2 members and 193 guests)
Threads: 3,931, Posts: 31,325, Members: 15,516
Welcome to our newest members, Nicholas Adam.
BER





What's New?

What's Hot?

What's Popular?


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