#51
|
||||
|
||||
Ah makes sense :)
|
#52
|
||||
|
||||
Has anyone made any progress with this..? :3 It's a feature I've been trying to implement but have been failing badly at... XD
__________________
It's been a long time. I had so much fun making a site back in 2016 that recently, when I started thinking about it again, I decided to come back and work on something small. It'll probably just be a personal project but who knows? We'll see, anyway.
|
#53
|
||||
|
||||
I managed to convert the main part of the script, which involves creating groups and sorting pets on the myadopts index.
That's the table setup for adopts_pet_groups. You need new column in owned_adoptables called "pet_group". (Not "group! "group" is a reserved name in phpMyAdmin.) Also make sure that "default as defined" is set to 0. I did the entire thing in blank.php/blankview.php for testing purposes, so that's why it looks the way it does. PHP Code:
PHP Code:
__________________
|
#54
|
||||
|
||||
YAAAAS! :D Thanks Dinocanid! :D Makes me want to make a new site now that people can group their pets...I've wanted this kind of feature for sooo long! x'3
__________________
Noot noot! Gotta get a new signooture. >-> |
#55
|
||||
|
||||
I'll definitely be adding it to my site too! Thank you! It'll make it so much easier to sort pets. I might now replace the faulty sort option with groups because then people can custom group all their pets together! :D
__________________
It's been a long time. I had so much fun making a site back in 2016 that recently, when I started thinking about it again, I decided to come back and work on something small. It'll probably just be a personal project but who knows? We'll see, anyway.
|
#56
|
||||
|
||||
Yeah, the sort mod didn't work out so well ^^; hopefully a fix is found soon. This one works better imo though. I didn't include a function to actually add pets to those groups yet, but I'm planning to. It's also possible to do it yourself in the meantime with a form that updates the pet's group to whatever the user selected.
__________________
|
#57
|
||||
|
||||
and here come's the part, which allows you, to assign a group (from the existing groups) to your adopt.
I hope, it works indeed for all in myadopts.php ... after the closing tag ( } ) for the freeze-function PHP Code:
PHP Code:
PHP Code:
have fun
__________________
|
#58
|
||||
|
||||
@draugluin, so what I'm getting (from looking at that briefly) is that it allows you to assign your pet to a group via that pet's manage page? That is very handy!
EDIT: Made some fixes to it so that it works properly, just replace the database update line with; PHP Code:
Last edited by Abronsyth; 09-04-2018 at 04:53 PM. |
#59
|
||||
|
||||
@ Abronsyth
right... it should be the continuation of Dinocanids script. but ... $wahl is just the id-number of the pet-groups ... $new is the name. edit:
__________________
Last edited by draugluin; 09-10-2018 at 05:10 AM. |
#60
|
||||
|
||||
Aye, the pet-group's ID is what needs to be added to the database for the pet to be "assigned" to it, though, hence replacing with $wahl :)
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
What age group do you belong to? | Hall of Famer | Other Chat | 19 | 09-28-2017 09:37 AM |
1.3.4 - group sort | draugluin | Questions and Supports | 6 | 01-16-2017 01:02 PM |
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 |
What's New? |
What's Hot? |
What's Popular? |