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 04-17-2015, 04:53 AM
draugluin's Avatar
draugluin draugluin is offline
Member
 
Join Date: Oct 2011
Location: germany
Posts: 120
Gender: Unknown/Other
Credits: 12,584
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, 04:01 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 111,752
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 directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it.

Last edited by Kyttias; 04-20-2015 at 12:34 AM.
Reply With Quote
  #3  
Old 04-18-2015, 03:39 AM
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: 494,211
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-20-2015, 12:44 AM
draugluin's Avatar
draugluin draugluin is offline
Member
 
Join Date: Oct 2011
Location: germany
Posts: 120
Gender: Unknown/Other
Credits: 12,584
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,113
Gender: Female
Credits: 97,628
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 :(
__________________

Check out SilvaTales
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: 205
Gender: Male
Credits: 31,380
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,113
Gender: Female
Credits: 97,628
SilverDragonTears is on a distinguished road
Default

Yeah I'm just totally lost with this type of coding :(
__________________

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
Mys v1.3.1 Group sort StarGirl Mys v1.3.x Mods 60 09-17-2018 05:46 AM
What age group do you belong to? Hall of Famer Other Chat 19 09-28-2017 09:37 AM
sort adoptables Blackmagic Questions and Supports 3 12-01-2009 04:05 PM
group zhiichiro Questions and Supports 7 05-30-2009 08:21 PM
Adding new user group mugwumpr Questions and Supports 2 04-19-2009 08:02 PM


All times are GMT -5. The time now is 12:47 PM.

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